/* ============================================================
   NODO THEME – main.css
   Design: Image 2 (Elementor) colors/sizes + Image 1 footer/logos slider
   ============================================================ */

/* Accessibility helper – hide visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 0. CSS Custom Properties ────────────────────────────── */
:root {
  --color-navy: #12203d;
  --color-navy-dark: #0d1929;
  --color-orange: #ff7850;
  --color-blue-dec: #2563a8;
  --color-gray-bg: #f3f3f3;
  --color-gray-card: #f4f4f4;
  --color-white: #ffffff;
  --color-text: #12203d;
  --color-text-muted: #555e6e;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --header-h: 72px;
  --max-w: 1280px;
  --section-pad: 80px 24px;
  --radius-card: 18px;
  --shadow-card: 0 4px 24px rgba(20, 34, 63, 0.1);
  --transition: 0.25s ease;
}

/* ── 1. Reset / Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── 2. Site Header ─────────────────────────────────────── */
/* Color scheme variables – overridden by .header--gray */
.site-header {
  --hdr-bg: var(--color-navy);
  --hdr-text: var(--color-white);
  --hdr-border: var(--color-white);
  --hdr-hover-bg: var(--color-white);
  --hdr-hover-text: var(--color-navy);

  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  width: calc(100% - 48px);
  max-width: calc(var(--max-w) - 48px);
  z-index: 1000;
  background: var(--hdr-bg);
  height: var(--header-h);
  border-radius: 40px;
  animation: headerSlideIn 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-radius 0.35s ease,
    width 0.35s ease,
    max-width 0.35s ease,
    top 0.35s ease;
}

.site-header.header--gray {
  --hdr-bg: #f3f3f3;
  --hdr-text: var(--color-navy);
  --hdr-border: var(--color-navy);
  --hdr-hover-bg: var(--color-navy);
  --hdr-hover-text: var(--color-white);
}

@keyframes headerSlideIn {
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* When scrolled: solid header pinned to top, full width */
.site-header.is-scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  background: var(--hdr-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img {
  height: 40px;
  width: auto;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a,
.nav-list li a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  transition: color var(--transition);
}

.nav-list a:hover {
  color: var(--color-orange);
}

/* Nav text – reads from header's custom properties */
.site-header .nav-list a,
.site-header .nav-list li a {
  color: var(--hdr-text);
}
.site-header .nav-list a:hover {
  color: var(--color-orange);
}

/* Active nav item */
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list a.is-active {
  color: var(--color-orange) !important;
}

/* ACCESO button in nav */
.nav-acceso {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 20px;
  border: 2px solid var(--hdr-border);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hdr-text);
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition);
}
.nav-acceso:hover {
  background: var(--hdr-hover-bg);
  color: var(--hdr-hover-text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger-line {
  display: block;
  height: 2px;
  background: var(--hdr-text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* Open state */
.nav-toggle[aria-expanded='true'] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 3. Mobile Nav ───────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-navy);
  z-index: 1100;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.is-open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav-list a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.mobile-nav-list a:hover {
  color: var(--color-orange);
}

.nav-acceso-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 22px;
  border: 2px solid var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.06em;
  margin-top: auto;
  transition:
    background var(--transition),
    color var(--transition);
}
.nav-acceso-mobile:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── 4. Page offset — no offset needed, header overlays hero ── */
body {
  padding-top: 0;
}

/* ── 5. Section shared styles ────────────────────────────── */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-navy);
  margin-bottom: 40px;
}

/* ── 6. Hero Slider ─────────────────────────────────────── */
.hero-slider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) 24px 0;
  overflow: hidden;
  position: relative;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.hero-pagination {
  bottom: 16px !important;
}
.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--color-orange);
}

/* Hero decorative gray line */
.hero-line-divider {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 24px;
  text-align: center;
}
.hero-line-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 7. Nosotros Section ────────────────────────────────── */
.section-nosotros {
  background: var(--color-white);
  padding: 0;
}

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  gap: 60px;
}

/* Video */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-navy);
  box-shadow: var(--shadow-card);
  position: relative;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thumbnail + play button */
.video-thumb-wrapper {
  cursor: pointer;
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.video-thumb-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Text column */
.nosotros-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.nosotros-logo {
  height: auto;
  width: 260px;
  max-width: 100%;
  display: block;
  margin: 0 auto 18px;
}
.nosotros-tagline {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-navy);
}
.nosotros-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
  text-align: justify;
}

/* CTA row – align button to end */
.nosotros-cta-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 24px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--color-orange);
  transform: translateY(-2px);
}

/* ── 8. Servicios Section ───────────────────────────────── */
.section-servicios {
  background: var(--color-white);
}

.servicios-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  background: #f6f6f7;
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.1);
  padding: 50px 10px;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  width: 220px;
  text-align: center;
  transition: transform 0.25s ease;
  cursor: pointer;
}
.servicio-item:hover {
  transform: translateY(-10px);
}

.servicio-icon {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-icon img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.servicio-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  line-height: 1.35;
}

/* ── 9. Noticias Section ────────────────────────────────── */
.section-noticias {
  background: var(--color-white);
}

.noticias-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.noticias-lines-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.noticias-title {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  padding: 0 24px;
  margin-bottom: 0;
}

.noticias-swiper {
  padding-bottom: 40px !important;
}
.noticias-swiper .swiper-wrapper {
  align-items: stretch;
}
.noticias-swiper .swiper-slide {
  height: auto;
}
.noticias-pagination {
  bottom: 0 !important;
}
.noticias-pagination .swiper-pagination-bullet {
  background: var(--color-navy);
}
.noticias-pagination .swiper-pagination-bullet-active {
  background: var(--color-orange);
}

/* News card */
.noticia-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 34, 63, 0.14);
}

.noticia-card__image-link {
  display: block;
  overflow: hidden;
}
.noticia-card__image-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.noticia-card:hover .noticia-card__image-link img {
  transform: scale(1.04);
}

.noticia-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.noticia-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
}
.noticia-card__title a:hover {
  color: var(--color-orange);
}

.noticia-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.noticia-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
}

.noticia-card__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticias-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px;
  font-size: 15px;
}

/* ── 10. Clientes Section ───────────────────────────────── */
.section-clientes {
  background: var(--color-white);
}

/* Testimonials Slider */
.testimonials-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 60px;
}

.testimonials-swiper {
  overflow: hidden;
}

/* Testimonial */
.testimonial {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.testimonial__quote {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-muted);
  quotes: '\201C' '\201D';
}
.testimonial__author {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--color-navy);
}
.testimonial__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(20%);
}

/* Logo slider – full width */
.logos-slider-full {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 40px;
}
.logos-swiper {
  width: 100%;
  padding: 20px 0 !important;
}
.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.logo-slide img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.8;
  transition:
    filter var(--transition),
    opacity var(--transition),
    transform var(--transition);
}
.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
.logo-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonial arrows */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    color var(--transition),
    transform var(--transition);
}
.testimonial-arrow svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}
.testimonial-arrow:hover {
  background: transparent;
  color: var(--color-navy);
}
.testimonial-arrow--prev {
  left: -8px;
}
.testimonial-arrow--prev:hover {
  transform: translateY(-50%) translateX(-4px);
}
.testimonial-arrow--next {
  right: -8px;
}
.testimonial-arrow--next:hover {
  transform: translateY(-50%) translateX(4px);
}

/* ── 11. Map Section ────────────────────────────────────── */
.section-mapa {
  position: relative;
  background: var(--color-navy-dark);
  overflow: hidden;
}
.section-mapa > img,
.section-mapa .mapa-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* Interactive hotspot */
.mapa-hotspot {
  position: absolute;
  top: var(--hs-top, 50%);
  left: var(--hs-left, 50%);
  width: 21px;
  height: 21px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  background: transparent;
  border: 0;
  padding: 0;
}
.mapa-hotspot__dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mapa-hotspot__dot img {
  width: 13px;
  height: 13px;
  display: block;
}
.mapa-hotspot__pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: mapa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.mapa-hotspot__pulse--delay {
  animation-delay: 1.1s;
}
@keyframes mapa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.mapa-hotspot__tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-4px);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 6;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}
.mapa-hotspot[aria-expanded='true'] .mapa-hotspot__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 600px) {
  .mapa-hotspot__tooltip {
    font-size: 11px;
    padding: 6px 10px;
  }
  .mapa-hotspot,
  .mapa-hotspot__dot,
  .mapa-hotspot__pulse {
    width: 12px;
    height: 12px;
  }
  .mapa-hotspot__dot img {
    width: 7px;
    height: 7px;
  }
}

.mapa-bar {
  display: flex;
  height: 5px;
}
.mapa-bar__orange {
  flex: 1;
  background: var(--color-orange);
}
.mapa-bar__blue {
  flex: 1;
  background: var(--color-navy);
}

/* ── 12. Floating Contact Button ────────────────────────── */
.btn-contact-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 28px;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(20, 34, 63, 0.25);
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-contact-float:hover {
  background: var(--color-orange);
  transform: translateY(-2px);
}

/* ── 13. Contact Modal ──────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal__inner {
  background: var(--color-white);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: min(540px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.contact-modal.is-open .contact-modal__inner {
  transform: translateY(0);
}

.contact-modal__inner h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 24px;
}
.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 8px;
  border-radius: 50%;
  line-height: 1;
  transition:
    background var(--transition),
    color var(--transition);
}
.contact-modal__close:hover {
  background: var(--color-gray-bg);
  color: var(--color-navy);
}

.contact-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-modal__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* CF7 form styling inside modal */
.contact-modal .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-modal .wpcf7-form p {
  margin: 0;
}
.contact-modal .wpcf7-form input[type='text'],
.contact-modal .wpcf7-form input[type='email'],
.contact-modal .wpcf7-form input[type='tel'],
.contact-modal .wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde2eb;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
}
.contact-modal .wpcf7-form input:focus,
.contact-modal .wpcf7-form textarea:focus {
  border-color: var(--color-navy);
}
.contact-modal .wpcf7-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-modal .wpcf7-form input[type='submit'] {
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: 24px;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition);
}
.contact-modal .wpcf7-form input[type='submit']:hover {
  background: var(--color-orange);
}

/* ── 14. Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 24px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--color-orange);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition:
    background var(--transition),
    transform var(--transition);
}
.footer-social a:hover {
  background: var(--color-orange);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 20px;
  transition: all var(--transition);
  margin-top: 12px;
}
.footer-back-top:hover {
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* Footer bar */
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bar__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bar__logo img {
  height: 32px;
  width: auto;
}

/* ── 15. Single Post ─────────────────────────────────────── */
.single-post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}
.single-post-thumb {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 40px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.single-post-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 32px;
}
.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
}
.single-post-content h2,
.single-post-content h3 {
  color: var(--color-navy);
  margin: 32px 0 12px;
  font-family: var(--font-heading);
}
.single-post-content p {
  margin-bottom: 20px;
}
.single-post-content a {
  color: var(--color-orange);
  text-decoration: underline;
}
.single-post-content img {
  border-radius: 12px;
  margin: 24px 0;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--color-gray-bg);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 40px;
  transition: background var(--transition);
}
.btn-back:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ── 16. 404 Page ───────────────────────────────────────── */
.not-found-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 20px;
}
.not-found-wrap h1 {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
}
.not-found-wrap h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
}
.not-found-wrap p {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ── 17. Fade-in animation ───────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 18. Responsive – Tablet (≤ 1024px) ─────────────────── */
@media (max-width: 1024px) {
  .nosotros-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nosotros-text {
    align-items: center;
    text-align: center;
  }
  .nosotros-desc {
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bar {
    justify-content: center;
    text-align: center;
  }
}

/* ── 19. Responsive – Mobile (≤ 768px) ──────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px 20px;
    --header-h: 64px;
  }

  /* Header */
  .header-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-slide img {
    height: 300px;
  }

  /* Servicios */
  .servicios-grid {
    gap: 0;
    padding: 32px 16px;
  }
  .servicio-item {
    width: 150px;
    padding: 16px 8px;
  }
  .servicio-icon {
    width: 120px;
    height: 120px;
  }
  .servicio-icon img {
    width: 100px;
    height: 100px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bar {
    flex-direction: column;
    gap: 12px;
  }

  /* Floating button text */
  .btn-contact-float span {
    display: none;
  }
  .btn-contact-float {
    padding: 0 16px;
  }
}

/* ── 20. Responsive – Small Mobile (≤ 480px) ─────────────── */
@media (max-width: 480px) {
  .servicios-grid {
    justify-content: space-around;
  }
  .servicio-item {
    width: 100px;
  }
  .testimonial__quote {
    font-size: 14px;
  }
  .testimonials-wrap {
    padding: 0 40px;
  }
  .testimonial-arrow {
    width: 36px;
    height: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════
   SECONDARY PAGES – footer
   ══════════════════════════════════════════════════════════════ */
.secondary-page .site-footer {
  background: #f5f5f5;
  color: var(--color-navy);
}
.secondary-page .footer-col h4 {
  color: var(--color-navy);
}
.secondary-page .footer-col ul a {
  color: rgba(18, 32, 61, 0.7);
}
.secondary-page .footer-col ul a:hover {
  color: var(--color-orange);
}
.secondary-page .footer-social a {
  background: rgba(18, 32, 61, 0.1);
  color: var(--color-navy);
}
.secondary-page .footer-social a:hover {
  background: var(--color-orange);
  color: var(--color-white);
}
.secondary-page .footer-back-top {
  color: rgba(18, 32, 61, 0.7);
  border-color: rgba(18, 32, 61, 0.3);
}
.secondary-page .footer-back-top:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.secondary-page .footer-bar {
  border-top-color: rgba(18, 32, 61, 0.1);
}
.secondary-page .footer-bar__copy {
  color: rgba(18, 32, 61, 0.5);
}
.secondary-page-spacer {
  height: var(--header-h);
}

/* ══════════════════════════════════════════════════════════════
   PAGE: NOSOTROS
   ══════════════════════════════════════════════════════════════ */

/* Hero / Title */
.nosotros-hero {
  padding: 100px 24px 24px;
  text-align: center;
}
.nosotros-page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

/* ── ¿Quiénes somos? ───────────────────────────────────── */
.nosotros-quienes {
  padding: 40px 24px 80px;
}
.quienes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.quienes-image {
  display: flex;
  justify-content: center;
}
.quienes-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
}
.quienes-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.quienes-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* ── Propuesta de Valor – Flip Cards ────────────────────── */
.nosotros-propuesta {
  padding: 60px 24px 80px;
}
.nosotros-propuesta .section-title {
  text-align: center;
  margin-bottom: 48px;
}
.flip-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.flip-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.flip-card:hover .flip-card-inner,
.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}
.flip-card.flip-left:hover .flip-card-inner,
.flip-card.flip-left .flip-card-inner.is-flipped {
  transform: rotateY(-180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.flip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.flip-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-card);
}
.flip-card-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
}
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.flip-card-back h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-orange);
}
.flip-card-back p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Timeline ───────────────────────────────────────────── */
.nosotros-timeline {
  padding: 80px 24px 100px;
  background: var(--color-gray-bg);
}
.nosotros-timeline .section-title {
  margin-bottom: 60px;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 48px;
}
/* Single continuous vertical line — clipped by JS to start/end at dots */
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: var(--tl-top, 80px);
  bottom: var(--tl-bottom, 80px);
  width: 2px;
  background: var(--color-navy);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
/* Dot on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  z-index: 2;
}

.timeline-content {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-img {
  position: relative;
  overflow: hidden;
}
.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.timeline-text {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  margin-bottom: 8px;
}
.timeline-text h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.timeline-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ── Nosotros Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .quienes-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .quienes-image img {
    max-width: 100%;
  }
  .flip-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .flip-card {
    height: 240px;
  }

  /* Timeline mobile: stack image on top */
  .timeline {
    padding-left: 36px;
  }
  .timeline::before {
    left: 14px;
  }
  .timeline-item::before {
    left: -26px;
    width: 10px;
    height: 10px;
  }
  .timeline-content {
    grid-template-columns: 1fr;
  }
  .timeline-img img {
    height: 180px;
    min-height: auto;
  }
  .timeline-text {
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .flip-card {
    height: 220px;
  }
  .flip-card-back {
    padding: 20px;
  }
  .flip-card-back h3 {
    font-size: 15px;
  }
  .flip-card-back p {
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════════════════
   PAGE: SERVICIOS
   ══════════════════════════════════════════════════════════════ */

/* Hero / Title */
.servicios-hero {
  padding: 100px 24px 40px;
  text-align: center;
}
.servicios-page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-navy);
}

/* Service Block */
.service-block {
  margin-bottom: 0;
  scroll-margin-top: 90px;
}

.service-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  background: var(--color-orange);
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
}

/* Navy blue variant for reversed blocks */
.service-block--reversed .service-card {
  background: var(--color-navy);
  direction: rtl;
  grid-template-columns: 3fr 2fr;
}
.service-block--reversed .service-card > * {
  direction: ltr;
}

.service-card__img {
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.service-card__text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
}
.service-card__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-white);
}
.service-card__text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  text-align: justify;
}

/* Benefits section */
.service-benefits {
  padding: 48px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.service-benefits h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 24px;
}
.service-benefits ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-benefits li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.service-benefits li strong {
  color: var(--color-navy);
}

/* Closing aerial image */
.servicios-closing {
  margin: 40px auto 60px;
  padding: 0 24px;
  max-width: 1200px;
}
.servicios-closing img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  border-radius: 20px;
}

/* ── Servicios Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .service-card {
    grid-template-columns: 1fr;
    height: auto;
  }
  .service-card__img {
    padding: 16px 16px 0;
  }
  .service-card__img img {
    height: 260px;
  }
  .service-card__text {
    padding: 32px 24px;
  }
  .service-block--reversed .service-card {
    direction: ltr;
  }
  .servicios-closing img {
    height: 240px;
  }
}

/* ══════════════════════════════════════════════════════════════
   PAGE: NOTICIAS (archive)
   ══════════════════════════════════════════════════════════════ */

.noticias-page-hero {
  padding: 100px 24px 40px;
  text-align: center;
}
.noticias-page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-navy);
}

.noticias-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Featured (latest) card */
.noticia-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(18, 32, 61, 0.08);
  margin-bottom: 56px;
}
.noticia-featured__image-link {
  display: block;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16 / 10;
}
.noticia-featured__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.noticia-featured:hover .noticia-featured__image-link img {
  transform: scale(1.04);
}
.noticia-featured__body {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.noticia-featured__date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.noticia-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--color-navy);
}
.noticia-featured__title a {
  color: inherit;
  text-decoration: none;
}
.noticia-featured__title a:hover {
  color: var(--color-orange);
}
.noticia-featured__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.noticia-featured__cta {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.2s;
}
.noticia-featured__cta:hover {
  color: var(--color-navy);
}

/* Grid of remaining noticias */
.noticias-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

/* Pagination */
.noticias-pagination-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.noticias-pagination-nav .pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid #e2e2e2;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.noticias-pagination-nav .pagination-link:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.noticias-pagination-nav .pagination-link.is-active {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

/* Responsive */
@media (max-width: 900px) {
  .noticia-featured {
    grid-template-columns: 1fr;
  }
  .noticia-featured__body {
    padding: 32px 24px;
  }
  .noticias-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .noticias-page-grid {
    grid-template-columns: 1fr;
  }
}
