/* ==========================================================================
   ITP Básico — main.css
   Migrated and adapted from templates/css/custom.css.
   Mobile-first. Bootstrap 5 as base layer.

   DESIGN TOKENS (CSS custom properties):
     --color-primary:    #275075  — navy blue (main brand colour)
     --color-accent:     #a47e5a  — bronze/gold (highlight colour)
     --font-heading:     Cinzel, serif
     --font-body:        Open Sans, system-ui

   7 BREAKPOINTS:
     320px   (max-width: 374.98px)   — iPhone SE and smallest devices
     375px   (min-width: 375px)      — Standard iPhones
     480px   (max-width: 575.98px)   — Large phones
     768px   (min-width: 768px)      — Tablets (md)
     1024px  (min-width: 992px)      — Desktop (lg)
     1200px  (min-width: 1200px)     — Large desktop (xl)
     1440px  (min-width: 1400px)     — XL desktop (xxl)

   NOTE: Google Fonts (@import) is loaded via wp_enqueue_style() in functions.php,
   NOT via @import here, to avoid render-blocking and allow WordPress caching.
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS — Override these variables to retheme without touching rules
   -------------------------------------------------------------------------- */
:root {
  /* Primary colour — navy blue */
  --color-primary:        #275075;
  --color-primary-dark:   #1e3d5c;
  --color-primary-light:  #e8eef5;

  /* Accent colour — bronze/gold */
  --color-accent:         #a47e5a;
  --color-accent-dark:    #8a6847;
  --color-accent-light:   #f5ede4;

  /* Surfaces */
  --color-surface:        #ffffff;
  --color-surface-alt:    #f5f3f0;

  /* Text */
  --color-text:           #275075;
  --color-text-muted:     rgba(39, 80, 117, 0.65);
  --color-text-white:     #ffffff;

  /* Borders */
  --color-border:         #e2ddd8;

  /* Shadows */
  --shadow-sm:            0 2px 8px rgba(39, 80, 117, 0.08);
  --shadow-md:            0 4px 20px rgba(39, 80, 117, 0.14);

  /* Border radii */
  --radius-sm:            0.25rem;
  --radius-md:            0.5rem;

  /* Transition */
  --transition:           0.25s ease;

  /* Typography */
  --font-heading:         'Cinzel', 'Georgia', serif;
  --font-body:            'Open Sans', 'Segoe UI', system-ui, sans-serif;

  /* Section vertical padding */
  --section-py:           5rem;

  /* Navbar height */
  --navbar-h:             72px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* width: 100% ensures html occupies the full physical width on iOS with
     viewport-fit=cover, avoiding narrow-viewport quirks in Chrome iOS landscape. */
  width: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Locked scroll when mobile nav overlay is open */
body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

/* Hover only on pointer devices — prevents sticky hover on touch */
@media (hover: hover) {
  a:hover {
    color: var(--color-accent-dark);
  }
}

/* Base img — height:auto for content images; imgfondo overrides both properties */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   REUSABLE BASE ELEMENTS
   -------------------------------------------------------------------------- */

/* Full-bleed sections */
section {
  display: block;
  width: 100%;
  max-width: 100vw;
  margin-left: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Section with background image */
.section-bg {
  position: relative;
  overflow: hidden;
}

.section-bg .container,
.section-bg .container-fluid {
  position: relative;
  z-index: 1;
}

/* Eyebrow label — gold, uppercase, above section heading */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.6rem;
}

.section-eyebrow--light {
  color: var(--color-accent);
}

/* Section H2 */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* --------------------------------------------------------------------------
   NAVBAR
   Transparent over hero → black on scroll (.scrolled class added by JS).
   Mobile: full-screen overlay. Desktop (≥992px): horizontal inline.
   -------------------------------------------------------------------------- */
.navbar-custom {
  background-color: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-custom.scrolled {
  background-color: #000000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
  padding-left: 0;
  padding-right: 0;
  align-items: flex-start;
}

/* Logo — mobile base */
.navbar-brand-custom {
  padding-left: 0;
  margin-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.navbar-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.06em;
}

/* Tablet ≥768px */
@media (min-width: 768px) {
  .navbar-brand-custom {
    margin-left: 2rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

/* Desktop ≥992px */
@media (min-width: 992px) {
  .navbar-brand-custom {
    margin-left: 5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Large desktop ≥1200px */
@media (min-width: 1200px) {
  .navbar-brand-custom {
    margin-left: 9rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
}

/* XL desktop ≥1400px — exact Canva reference values */
@media (min-width: 1400px) {
  .navbar-brand-custom {
    margin-left: 242px;
    margin-top: 69px;
    margin-bottom: 1rem;
  }
}

/* Compact logo on scroll */
.navbar-custom.scrolled .navbar-brand-custom {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  transition: margin 0.35s ease;
}

/* Desktop nav menu margins */
@media (min-width: 992px) {
  .navbar-mobile-menu {
    margin-right: 5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .navbar-mobile-menu {
    margin-right: 9rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .navbar-mobile-menu {
    margin-right: 242px;
    margin-top: 69px;
    margin-bottom: 1rem;
  }
}

.navbar-custom.scrolled .navbar-mobile-menu {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  transition: margin 0.35s ease;
}

/* Logo image */
.navbar-custom .navbar-logo {
  height: 44px;
  width: auto;
}

/* Nav links */
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  transition: color var(--transition);
}

.navbar-custom .nav-item:last-child .nav-link {
  padding-right: 0 !important;
}

@media (hover: hover) {
  .navbar-custom .nav-link:hover {
    color: var(--color-accent) !important;
  }
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  margin-right: 1rem;
  margin-top: 0.75rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* --------------------------------------------------------------------------
   MOBILE MENU — Full-screen overlay (portrait + landscape)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* dvh = dynamic viewport height — accounts for browser chrome on mobile */
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }

  .navbar-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
  }

  .navbar-mobile-menu .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
  }

  .navbar-mobile-menu .nav-link {
    font-size: 1.4rem !important;
    letter-spacing: 0.12em !important;
    padding: 0.25rem 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: none !important;
  }

  @media (hover: hover) {
    .navbar-mobile-menu .nav-link:hover {
      color: var(--color-accent) !important;
    }
  }

  /* Close button — top right corner */
  .nav-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  }

  .nav-close-btn:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* Desktop menu — always visible, horizontal */
@media (min-width: 992px) {
  .navbar-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: auto;
  }

  .nav-close-btn {
    display: none;
  }
}

/* Safe area insets — notch and home indicator (iOS viewport-fit: cover) */
@supports (padding-left: env(safe-area-inset-left)) {
  .navbar-inner {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .whatsapp-float {
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
    right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 1rem));
  }
}

/* --------------------------------------------------------------------------
   SECTION 1: HERO
   100svh on mobile, 768px fixed on desktop (≥992px).
   Background via <img class="imgfondo"> pattern.
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-primary); /* Fallback colour while image loads */
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 768px;
  }
}

.hero-content-col {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

/* Landscape mobile/tablet adjustment */
@media (orientation: landscape) and (max-width: 991.98px) {
  .hero-section {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-content-col {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-ctas {
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    min-height: 42px;
    padding: 0.6rem 1.6rem;
    font-size: 0.78rem;
  }
}

/* Background image wrapper — used in hero and other sections */
.hero_fondoimg,
.seccion_fondoimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.imgfondo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important; /* Override img { max-width: 100% } */
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero_fondoimg .imgfondo {
  object-position: center 27%;
}

/* Dark overlay for hero — activate by adding <div class="hero-overlay"> inside .hero-section */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 30, 50, 0.80) 0%,
    rgba(27, 51, 77, 0.72) 100%
  );
  z-index: 0;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 1;
}

/* H1 hero */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-white);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

/* Hero subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.17rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* CTA row */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Primary CTA — navy */
.btn-hero-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  padding: 0.75rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-hero-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 80, 117, 0.45);
  }
}

/* Secondary CTA — gold */
.btn-hero-secondary {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  padding: 0.75rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-hero-secondary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164, 126, 90, 0.45);
  }
}

/* --------------------------------------------------------------------------
   SECTION 2: SERVICES
   White background. Clean card layout, no borders/shadows.
   -------------------------------------------------------------------------- */
.servicios-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: var(--color-surface);
}

.service-card {
  text-align: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: transform var(--transition);
  height: 100%;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
  }
}

.service-card:active {
  transform: translateY(-1px);
}

/* Icon wrapper */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem auto;
  color: var(--color-accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Service modal */
.modal-service .modal-header {
  background-color: var(--color-primary);
  border-bottom: none;
}

.modal-service .modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.modal-service .btn-close {
  filter: invert(1);
}

.modal-service .modal-footer {
  border-top: 1px solid var(--color-border);
}

.btn-modal-cta {
  background-color: var(--color-accent);
  color: white;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .btn-modal-cta:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
  }
}

/* Gallery shortcode area */
.gallery-shortcode-area {
  background-color: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   SECONDARY STRIP (Asesoría / strip section between services and trust)
   Light overlay — background image remains clearly visible.
   -------------------------------------------------------------------------- */
.asesoria-strip {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background-color: #e8e8e8; /* Fallback while strip image loads */
}

.asesoria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
}

.asesoria-strip .container {
  position: relative;
  z-index: 1;
}

.asesoria-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

.asesoria-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--color-primary);
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 2rem auto;
}

.btn-asesoria-cta {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .btn-asesoria-cta:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-white);
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   SECTION 3: TRUST — WHY CHOOSE US
   White background. 3 credibility columns with circular icons.
   -------------------------------------------------------------------------- */
.confianza-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: var(--color-surface);
}

.confianza-block {
  padding: 1rem 0.5rem;
}

/* Circular icon — navy background, white icon */
.confianza-icon-wrap {
  width: 96px;
  height: 96px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  color: white;
  transition: background-color var(--transition), transform var(--transition);
}

.confianza-icon-wrap svg {
  width: 44px;
  height: 44px;
}

@media (hover: hover) {
  .confianza-block:hover .confianza-icon-wrap {
    background-color: var(--color-accent);
    transform: translateY(-2px);
  }
}

.confianza-stat {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.confianza-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Logo carousel label */
.carousel-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(39, 80, 117, 0.40);
  margin-bottom: 1.25rem;
}

/* Infinite logo carousel */
.logo-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.logo-carousel-wrapper:hover .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 110px;
}

.logo-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.40;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  .logo-item img:hover {
    opacity: 0.80;
  }
}

.logo-name {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(39, 80, 117, 0.40);
  text-align: center;
  white-space: nowrap;
}

.logo-placeholder-box {
  height: 48px;
  width: 120px;
  border: 1px solid rgba(39, 80, 117, 0.18);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(39, 80, 117, 0.04);
}

.logo-placeholder-box span {
  font-size: 0.70rem;
  color: rgba(39, 80, 117, 0.35);
}

/* --------------------------------------------------------------------------
   SECTION 4: CONTACT
   Dark overlay background image. White form controls on dark background.
   -------------------------------------------------------------------------- */
.contacto-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: #1a1a1a;
}

.contacto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 48, 0.82);
  z-index: 0;
}

.contacto-section .container {
  position: relative;
  z-index: 1;
}

.contacto-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-white);
  margin-bottom: 0;
}

/* Form labels — light text on dark background */
.form-label-canva {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  display: block;
}

.required-mark {
  color: var(--color-accent);
}

/* Form controls */
.form-control-canva {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control-canva:focus {
  background-color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(164, 126, 90, 0.18);
  outline: none;
  color: var(--color-primary);
}

.form-control-canva::placeholder {
  color: rgba(39, 80, 117, 0.40);
  opacity: 1;
}

textarea.form-control-canva {
  min-height: 110px;
  resize: vertical;
}

.form-check-label--light {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.5;
}

.link-light-canva {
  color: var(--color-accent);
}

@media (hover: hover) {
  .link-light-canva:hover {
    color: var(--color-accent-dark);
  }
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Submit button */
.btn-submit-canva {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-submit-canva:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 80, 117, 0.30);
  }
}

/* Contact data row — below the form */
.contacto-datos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 200px;
  flex: 1;
}

.contacto-dato-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(164, 126, 90, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contacto-dato-icon svg {
  width: 20px;
  height: 20px;
}

.contacto-dato-label {
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-bottom: 0.15rem;
}

.contacto-dato-valor {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

a.contacto-dato-valor {
  transition: color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  a.contacto-dato-valor:hover {
    color: var(--color-accent);
  }
}

/* Plugin form wrapper — resets styles from CF7/WPForms for dark background */
.contact-plugin-form-wrapper input,
.contact-plugin-form-wrapper textarea,
.contact-plugin-form-wrapper select {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-primary) !important;
  border-radius: var(--radius-sm) !important;
}

/* --------------------------------------------------------------------------
   FOOTER
   Navy background (#275075). 4 columns: logo, services, contact, social.
   -------------------------------------------------------------------------- */
#footer {
  display: block;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.60);
  padding: 3rem 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.06em;
}

.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.4rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-links-list a:hover {
    color: var(--color-accent);
  }
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  .footer-address a:hover {
    color: var(--color-accent);
  }
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.50);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

@media (hover: hover) {
  .footer-social-link:hover {
    color: var(--color-text-white);
    border-color: var(--color-accent);
    background-color: rgba(164, 126, 90, 0.18);
  }
}

.footer-social-placeholder {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

.footer-copy-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-copy-link:hover {
    color: var(--color-accent);
  }
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  .whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  }
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Tooltip label — shown on hover (desktop only) */
.whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1a1a;
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  .whatsapp-float:hover::before {
    opacity: 1;
  }
}

/* Pulse animation ring */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* --------------------------------------------------------------------------
   SCROLL ANIMATIONS — Intersection Observer (main.js)
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — 7 BREAKPOINTS (mobile-first)
   -------------------------------------------------------------------------- */

/* BP1: 320px — iPhone SE (smallest supported device) */
@media (max-width: 374.98px) {
  :root {
    --section-py: 3rem;
    --navbar-h:   60px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-width: auto;
  }

  .contacto-datos-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* BP2: 375px–413px — Standard iPhones (SE 2nd gen, 14/15) */
@media (min-width: 375px) and (max-width: 413.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

/* BP3: 480px / up to 575.98px — Large phones */
@media (max-width: 575.98px) {
  :root { --section-py: 3.5rem; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .contacto-datos-row {
    flex-direction: column;
  }

  .contacto-dato {
    min-width: auto;
    flex: none;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }
}

/* BP4: 576px+ — Bootstrap sm (small tablets, large phones landscape) */
@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: auto;
  }
}

/* BP5: 768px+ — Bootstrap md (tablets) */
@media (min-width: 768px) {
  :root { --section-py: 5rem; }

  .contacto-datos-row {
    flex-wrap: nowrap;
  }
}

/* BP6: 1024px / Bootstrap lg (desktop) */
@media (min-width: 992px) {
  :root { --section-py: 5.5rem; }

  .asesoria-strip {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* BP7a: 1200px+ — Bootstrap xl (large desktop) */
@media (min-width: 1200px) {
  :root { --section-py: 6rem; }
}

/* BP7b: 1440px / Bootstrap xxl */
@media (min-width: 1400px) {
  :root { --section-py: 6.5rem; }

  .logo-carousel-track { gap: 4rem; }
}

/* 1920px+ — Very large screens (4K, ultrawide) */
@media (min-width: 1920px) {
  .hero-section {
    min-height: 900px;
  }
}

/* --------------------------------------------------------------------------
   PREFERS-REDUCED-MOTION — always last, highest specificity
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after {
    animation: none;
  }

  .logo-carousel-track {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
