@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap");

/* Reset básico para partir de una base consistente en todos los navegadores. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

:root {
  /* Variables de diseño: colores, radios, sombras y fondo global. */
  --ink: #12203a;
  --ink-soft: #4a5b7a;
  --brand-navy: #13285f;
  --brand-cyan: #2e58ba;
  --brand-sun: #f26a21;
  --brand-sun-soft: #ff9a5f;
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --line: #d3ddf2;
  --white: #ffffff;
  --night: #0f1b3d;
  --bg-main:
    radial-gradient(circle at 8% 0%, #d7e4ff 0, transparent 36%),
    radial-gradient(circle at 92% 10%, #ffe2cf 0, transparent 32%),
    linear-gradient(180deg, #f8faff 0%, #f1f5ff 100%);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --soft-shadow: 0 16px 34px rgba(19, 40, 95, 0.13);
  --lift-shadow: 0 26px 46px rgba(19, 40, 95, 0.2);
}

/* Tipografía y fondo generales del sitio. */
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-main);
}

/* Contenedor reusable con ancho máximo fluido. */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Trama sutil superpuesta para dar textura al fondo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19, 40, 95, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 40, 95, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 45%, transparent 100%);
}

/* Barra superior y cabecera fija. */
.topbar {
  background: linear-gradient(92deg, #0f1f4e, #1d3f93 60%, #2e58ba);
  letter-spacing: 0.2px;
  color: #f4f8ff;
  text-align: center;
  padding: 0.52rem 1rem;
  font-size: 0.9rem;
}

.header {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 40, 95, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navegación principal y enlaces activos. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
  color: var(--brand-navy);
}

.brand span {
  color: var(--brand-sun);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #ebf0ff;
  border-color: #c8d6fb;
  color: #1f3f95;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-navy);
}

/* Hero principal con atmósfera visual y composición en grid. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      120deg,
      rgba(15, 31, 78, 0.7),
      rgba(29, 63, 147, 0.7),
      rgba(42, 86, 190, 0.7)
    ),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  padding: 6.2rem 0 5.3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  background: radial-gradient(
    circle,
    rgba(242, 106, 33, 0.35),
    transparent 68%
  );
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(
    circle,
    rgba(123, 177, 255, 0.45),
    transparent 70%
  );
}

/* Jerarquía tipográfica de títulos clave. */
.hero h1,
.page-hero h1,
.section-title {
  font-family: "Outfit", "Manrope", sans-serif;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 1.4rem;
  max-width: 58ch;
}

/* Panel destacado dentro del hero. */
.hero-card {
  background: rgba(12, 26, 62, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 34px rgba(4, 10, 30, 0.28);
  padding: 1.3rem;
}

.hero-card h3 {
  margin-bottom: 0.5rem;
}

.hero-card p {
  margin-bottom: 0.5rem;
}

.hero-card p:last-child {
  margin-bottom: 0;
}

/* Sistema de botones principal y secundario. */
.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-sun), var(--brand-sun-soft));
  color: #fff;
  box-shadow: 0 12px 24px rgba(242, 106, 33, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(242, 106, 33, 0.44);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  margin-left: 0.6rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Espaciados y títulos de secciones. */
.section {
  padding: 6rem 0;
  background: linear-gradient(
    180deg,
    rgba(249, 115, 22, 0.02) 0%,
    transparent 100%
  );
}

.section-compact {
  padding: 1rem 0 0;
}

.section-title {
  color: var(--brand-navy);
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #13255f 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: #4a5568;
  margin-bottom: 2.8rem;
  font-size: 1.08rem;
  font-weight: 600;
  max-width: 100%;
}

/* Grillas reutilizables para composición de contenidos. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

/* Tarjetas de contenido con elevación al hover. */
.card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  border: none;
  border-left: 5px solid #f97316;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(19, 40, 95, 0.1);
  padding: 2.4rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.08),
    transparent 70%
  );
  border-radius: 50%;
}

.card:hover {
  transform: translateY(-12px) translateX(-4px);
  border-left-color: #f97316;
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.18);
  background: linear-gradient(135deg, #fffbf8 0%, #f5f8ff 100%);
}

.badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: inline-block;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Tarjetas con imágenes */
.card-with-image {
  overflow: hidden;
  padding: 0;
}

.card-with-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-with-image h2,
.card-with-image h3,
.card-with-image p,
.card-with-image ul {
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

.card-with-image h2,
.card-with-image h3 {
  padding-top: 1.5rem;
}

.card-with-image p:first-of-type {
  padding-top: 1rem;
}

.card-with-image ul {
  padding-top: 1rem;
  padding-bottom: 2.4rem;
}

.card-with-image p:last-of-type {
  padding-bottom: 2.4rem;
}

.card h3 {
  color: var(--brand-navy);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #13255f 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.97rem;
  font-weight: 500;
}

/* Hero de páginas internas. */
.page-hero {
  padding: 3.4rem 0 2.2rem;
}

.page-hero-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 2.2rem;
  color: #eef5ff;
  background: linear-gradient(120deg, #152a63, #21459e);
  box-shadow: var(--lift-shadow);
}

.page-hero-box::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 106, 33, 0.38),
    transparent 70%
  );
}

.page-hero-box p {
  color: rgba(236, 246, 255, 0.88);
  max-width: 62ch;
}

/* Pantalla de mantenimiento centrada. */
.maintenance-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.maintenance-card {
  width: min(720px, 100%);
  text-align: center;
  border-radius: 30px;
  padding: clamp(1.6rem, 4vw, 3rem);
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(255, 156, 97, 0.28),
      transparent 34%
    ),
    linear-gradient(135deg, #162f70 0%, #2149aa 52%, #1f3f95 100%);
  box-shadow:
    0 22px 48px rgba(16, 33, 78, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(208, 224, 255, 0.3);
  color: #f4f8ff;
}

.maintenance-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.maintenance-card h1 {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.06;
}

.maintenance-card p {
  margin: 0.95rem auto 0;
  max-width: 34ch;
  color: rgba(240, 246, 255, 0.9);
  font-size: clamp(1.02rem, 2.4vw, 1.26rem);
  font-weight: 500;
}

/* Estilos específicos para páginas con imágenes de fondo */
.page-hero-contact {
  background:
    linear-gradient(120deg, rgba(21, 42, 99, 0.7), rgba(33, 69, 158, 0.7)),
    url("../img/contact-hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Bloques visuales: galería e indicadores numéricos. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.metric {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0.9rem;
}

.metric strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
}

/* Tarjetas de galería con gradientes por categoría visual. */
.gallery-item {
  min-height: 280px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: end;
  padding: 1rem;
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.01);
  filter: saturate(1.12);
}

.g1 {
  background:
    linear-gradient(120deg, rgba(22, 47, 113, 0.6), rgba(44, 94, 199, 0.6)),
    url("../img/gallery-1.jpg");
  background-size: cover;
  background-position: center;
}

.g2 {
  background:
    linear-gradient(120deg, rgba(29, 63, 147, 0.6), rgba(90, 142, 255, 0.6)),
    url("../img/gallery-2.jpg");
  background-size: cover;
  background-position: center;
}

.g3 {
  background:
    linear-gradient(120deg, rgba(161, 68, 23, 0.6), rgba(242, 106, 33, 0.6)),
    url("../img/gallery-3.jpg");
  background-size: cover;
  background-position: center;
}

.g4 {
  background:
    linear-gradient(120deg, rgba(48, 78, 168, 0.6), rgba(122, 158, 255, 0.6)),
    url("../img/gallery-4.jpg");
  background-size: cover;
  background-position: center;
}

.g5 {
  background:
    linear-gradient(120deg, rgba(111, 46, 19, 0.6), rgba(233, 93, 31, 0.6)),
    url("../img/gallery-5.jpg");
  background-size: cover;
  background-position: center;
}

.g6 {
  background:
    linear-gradient(120deg, rgba(21, 41, 96, 0.6), rgba(53, 95, 199, 0.6)),
    url("../img/gallery-6.jpg");
  background-size: cover;
  background-position: center;
}

/* Estilos de formularios y FAQ. */
form {
  display: grid;
  gap: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.1rem;
  font-weight: 700;
  color: #173170;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  padding: 0.8rem;
  font: inherit;
  border: 1px solid #cfdbf4;
  background: #fcfdff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4c75d8;
  box-shadow: 0 0 0 3px rgba(46, 88, 186, 0.16);
}

/* Pie de página, listas y avisos flash. */
.footer {
  background: linear-gradient(180deg, #0c1a3f, #08132f);
  color: #e1e9ff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.legal-links {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.legal-links a:hover {
  text-decoration: underline;
}

.small {
  font-size: 0.93rem;
  color: #6b7280;
  font-weight: 500;
}

.list-clean {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}

.list-clean li {
  color: #4a5568;
  font-weight: 600;
  padding-left: 2.2rem;
  position: relative;
  line-height: 1.6;
  font-size: 0.98rem;
}

.list-clean li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 900;
  font-size: 1.1rem;
  background: rgba(249, 115, 22, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #eaf8f2;
  color: #165f41;
  display: none;
}

.notice-success {
  background: #e9f2ff;
  color: #1d3b83;
  border: 1px solid #c7d7f7;
}

.notice-error {
  background: #fff0e8;
  color: #983913;
  border: 1px solid #f8cdb9;
}

.notice.show {
  display: block;
}

.hp-field {
  display: none !important;
}

/* Banner y panel de consentimiento de cookies. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-content {
  width: 100%;
  margin: 0;
  padding: 0.7rem min(3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(92deg, #0f214e 0%, #17377f 58%, #1e489f 100%);
  box-shadow: 0 -10px 28px rgba(5, 13, 32, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "text actions";
  column-gap: 1rem;
  row-gap: 0.08rem;
  align-items: center;
  animation: cookieBannerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner-content::before {
  content: none;
}

.cookie-banner-content h2 {
  grid-area: title;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 0.97rem;
  margin: 0;
  color: #f2f6ff;
  letter-spacing: 0.2px;
}

.cookie-banner-content p {
  grid-area: text;
  color: rgba(230, 239, 255, 0.92);
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.35;
  font-weight: 500;
  max-width: 92ch;
}

.cookie-banner-content p a {
  color: #ffffff;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-actions .btn {
  padding: 0.52rem 1.05rem;
  min-width: 106px;
  font-size: 0.86rem;
  box-shadow: 0 8px 16px rgba(242, 106, 33, 0.28);
}

@keyframes cookieBannerIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Botón flotante de WhatsApp con variantes responsive. */
.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 120;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2ad16c, #1baa51);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 40, 22, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 34px rgba(15, 40, 22, 0.34);
  filter: saturate(1.08);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #c8d6fb;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: max(0.8rem, env(safe-area-inset-right));
    bottom: max(0.8rem, env(safe-area-inset-bottom));
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    box-shadow: 0 10px 22px rgba(15, 40, 22, 0.28);
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Animación de revelado al hacer scroll. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Adaptación a tablet y móvil. */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 4%;
    background: var(--white);
    width: min(280px, 92vw);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.6rem;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .page-hero-box {
    padding: 1.4rem;
  }

  .maintenance-card {
    border-radius: 22px;
    padding: 1.45rem 1.15rem;
  }

  .maintenance-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.77rem;
  }

  .maintenance-card p {
    margin-top: 0.75rem;
  }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .cookie-banner-content {
    padding: 0.75rem 0.85rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "text"
      "actions";
    row-gap: 0.42rem;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0.56rem 0.95rem;
  }

  .cookie-banner-content h2 {
    font-size: 0.93rem;
  }

  .cookie-banner-content p {
    font-size: 0.84rem;
  }
}
