/* ===== VARIABLES ===== */
:root {
  --azul-profundo: #00004a;
  --azul-marino: #12128b;
  --cafe-camello: #a88461;
  --neutro: #efebe9;
  --blanco: #ffffff;
  --texto: #2a2a2a;
  --sombra: 0 4px 24px rgba(0, 0, 74, 0.08);
  --radio: 12px;
  --transicion: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Urbanist", sans-serif;
  font-weight: 400;
  background: var(--neutro);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== TIPOGRAFIA ===== */
h1 {
  color: var(--azul-profundo);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}
h2 {
  color: var(--azul-profundo);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}
h3,
h4,
h5 {
  color: var(--cafe-camello);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}
p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/* ===== UTILIDADES ===== */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}
.section {
  padding: 4.5rem 0;
}

/* ===== BOTONES ===== */
.btn-cta {
  display: inline-block;
  background: var(--azul-marino);
  color: var(--blanco);
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-cta:hover {
  background: #354531;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 86, 65, 0.35);
}
.btn-sec {
  display: inline-block;
  background: transparent;
  color: var(--azul-marino);
  font-family: "Urbanist", sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--azul-marino);
  transition: var(--transicion);
}
.btn-sec:hover {
  background: var(--azul-marino);
  color: var(--blanco);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--neutro);
  box-shadow: 0 2px 12px rgba(0, 0, 74, 0.06);
  padding: 0.6rem 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img {
  height: 44px;
  width: auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--neutro) 0%,
    #e0dcd9 50%,
    var(--neutro) 100%
  );
}
.hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(18, 18, 139, 0.05);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(68, 86, 65, 0.07);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__content img {
  box-shadow: var(--azul-profundo) 3px 3px 13px 0px;
  border-radius: 20px;
  width: 80%;
  margin-bottom: 20px;
  float: left;
}
.hero__subtitle {
  color: #555;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
}
.hero__bullets {
  margin-bottom: 2rem;
}
.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
}
.hero__bullets li span {
  color: var(--azul-marino);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

/* ===== FORMULARIO ===== */
.form-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 2rem 1.8rem;
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--cafe-camello);
}
.form-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul-profundo);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d5d0cc;
  border-radius: 8px;
  font-family: "Urbanist", sans-serif;
  font-size: 0.95rem;
  transition: var(--transicion);
  background: var(--neutro);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul-marino);
  box-shadow: 0 0 0 3px rgba(18, 18, 139, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 70px;
}
.form-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(68, 86, 65, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.45;
  color: #2d3b2c;
}
.form-disclaimer span {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.form-card .btn-cta {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
}

/* ===== DATOS DUROS ===== */
.datos {
  background: var(--cafe-camello);
  color: var(--blanco);
  text-align: center;
}
.datos h2 {
  color: #efebe9;
  margin-bottom: 2.5rem;
}
.datos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.dato {
  padding: 1.5rem 1rem;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transicion);
}
.dato:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.dato__numero {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #003366;
  line-height: 1;
}
.dato__texto {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== POR QUE MSPV ===== */
.porque h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.porque h3.porque__sub {
  text-align: center;
  color: #666;
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.porque__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.porque__card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 2rem 1.5rem;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  border-bottom: 3px solid transparent;
}
.porque__card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--cafe-camello);
}
.porque__card h3 {
  margin-bottom: 0.8rem;
}
.porque__card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}
.porque__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cafe-camello), var(--cafe-camello));
  color: var(--blanco);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== SECTORES ===== */
.sectores {
  background: linear-gradient(135deg, #e8e4e2 0%, var(--neutro) 100%);
}
.sectores h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.sectores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.sector-card {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}
.sector-card:hover {
  transform: translateY(-4px);
}
.sector-card__bg {
  position: relative;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.15);
}
.sector-card--industrial {
  background: linear-gradient(135deg, var(--azul-profundo), #0d0d5a);
}
.sector-card--corporativo {
  background: linear-gradient(135deg, var(--cafe-camello), #bea551);
}
.sector-card__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: var(--blanco);
}
.sector-card__content h3 {
  color: #efebe9;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.sector-card__content p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--azul-profundo);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2.5rem 0;
}
.footer__logo img {
  /*height: 40px;*/
  margin: 0 auto 1rem;
}
.footer__text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: var(--transicion);
}
.footer__links a:hover {
  color: #b8d4b6;
}
.footer__links span {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== POPUPS ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 74, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.active {
  display: flex;
  opacity: 1;
}
.popup-box {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 74, 0.2);
  animation: popIn 0.35s ease;
}
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.popup-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.popup-box p {
  text-align: center;
  font-size: 1rem;
  color: var(--texto);
}
.popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: var(--transicion);
  line-height: 1;
}
.popup-close:hover {
  color: var(--azul-marino);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__content {
    text-align: center;
  }
  .hero__content img {
    float: none;
    margin: 0 auto 20px auto;
  }
  .hero__bullets {
    display: inline-block;
    text-align: left;
  }
  .datos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .porque__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  .sectores__grid {
    grid-template-columns: 1fr;
  }
  .datos__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .header__logo img {
    height: 36px;
  }
  .btn-sec {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
  .datos__grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.5rem 1.2rem;
  }
}
