/*
Theme Name: AgroConciencia
Theme URI: http://agroconciencia.com.ar/
Author: Antigravity IDE
Author URI: http://agroconciencia.com.ar/
Description: Tema premium a medida para Agro Conciencia. Soluciones integrales de Agricultura de Precisión.
Version: 1.0.1
Text Domain: agroconciencia
*/

:root {
  /* Brand Colors */
  --ac-blue: #003DA6;
  /* R:0, G:61, B:166 */
  --ac-green-dark: #00422d;
  /* R:0, G:66, B:45 */
  --ac-green-lime: #93D500;
  /* R:147, G:213, B:0 */
  --ac-cream: #ecf3eb;
  /* R:236, G:243, B:235 */

  /* Gradients */
  --ac-grad-primary: linear-gradient(135deg, var(--ac-blue) 0%, #001f4d 100%);
  --ac-grad-accent: linear-gradient(135deg, var(--ac-green-lime) 0%, #5ba600 100%);
  --ac-grad-glass: rgba(255, 255, 255, 0.7);
  --ac-grad-glass-dark: rgba(0, 61, 166, 0.7);

  /* Fonts */
  --font-headline: 'Roboto Flex', sans-serif;
  --font-body: 'Roboto Flex', sans-serif;

  /* Shadows */
  --ac-shadow-soft: 0 15px 35px rgba(0, 61, 166, 0.08);
  --ac-shadow-hover: 0 25px 50px rgba(0, 61, 166, 0.15);
  --ac-shadow-glow: 0 10px 25px rgba(147, 213, 0, 0.4);

  /* Border Radius */
  --ac-radius-sm: 0.75rem;
  --ac-radius-md: 1.25rem;
  --ac-radius-lg: 2rem;
  --ac-radius-pill: 50rem;
}

/* @font-face rules (User needs to place files in /fonts/) */
/* Adelle fonts removed in favor of Roboto */

@font-face {
  font-family: 'Roboto Flex';
  src: url('./fonts/RobotoFlex-VariableFont.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background-color: var(--ac-cream);
  color: var(--ac-green-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.headline {
  font-family: var(--font-headline);
  color: var(--ac-blue);
  font-weight: 700;
  letter-spacing: -0.04em;
}

p {
  color: #4a5568;
}

/* Utility Classes */
.text-ac-blue {
  color: var(--ac-blue) !important;
}

.text-ac-green-dark {
  color: var(--ac-green-dark) !important;
}

.text-ac-green-lime {
  color: var(--ac-green-lime) !important;
}

.text-ac-cream {
  color: var(--ac-cream) !important;
}

.bg-ac-blue {
  background-color: var(--ac-blue) !important;
}

.bg-ac-green-dark {
  background-color: var(--ac-green-dark) !important;
}

.bg-ac-green-lime {
  background-color: var(--ac-green-lime) !important;
}

.bg-ac-cream {
  background-color: var(--ac-cream) !important;
}

.bg-gradient-primary {
  background: var(--ac-grad-primary) !important;
}

/* Buttons Premium */
.btn {
  border-radius: var(--ac-radius-pill);
  padding: 12px 32px;
  font-weight: 700;

  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-ac-primary {
  background: var(--ac-grad-accent);
  color: #ffffff !important;
  border: none;
  box-shadow: var(--ac-shadow-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-ac-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(147, 213, 0, 0.6);
  color: #ffffff !important;
}

.btn-ac-secondary {
  background: var(--ac-grad-primary);
  color: #fff !important;
  border: none;
  box-shadow: var(--ac-shadow-soft);
}

.btn-ac-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-hover);
  color: #fff;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--ac-grad-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow-soft);
}

.glass-panel-dark {
  background: var(--ac-grad-glass-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow-soft);
}

/* Base Settings */
body,
html {
  overflow-x: hidden;
  /* Evitar scroll horizontal en mobile */
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  /* Offset for fixed header */
}

/* Header Sticky Pill Overlay */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1.5rem 0;
}

#masthead.scrolled {
  padding: 0.5rem 0;
}

.navbar-ac {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--ac-radius-pill);
  box-shadow: 0 10px 30px rgba(0, 61, 166, 0.08);
  padding: 0.5rem 1.5rem !important;
  transition: all 0.5s ease;
  flex-wrap: nowrap;
  /* COMPACT: el menú se posiciona abajo, no adentro */
  position: relative;
  /* Para que el collapse se posicione relativo a esto */
  overflow: visible !important;
  /* Permite que el panel colapsado salga del pill */
}

@media (max-width: 991px) {
  .navbar-ac {
    border-radius: 1.25rem !important;
    padding: 0.65rem 1rem !important;
  }
}

.navbar-ac .nav-link {
  color: var(--ac-blue);
  font-weight: 600;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-ac .nav-link:hover {
  color: var(--ac-green-lime);
}

/* Underline animation on nav links */
.navbar-ac .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--ac-green-lime);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.navbar-ac .nav-link:hover::after {
  width: 80%;
}


/* Specific Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Each slide item: full viewport height */
.hero-slide-item {
  position: relative;
  min-height: 100vh;
}

/* Background layers inside each slide */
.hero-bg-desktop,
.hero-bg-mobile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg-mobile {
  display: none;
}

@media (max-width: 767px) {
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }
}

/* Dark gradient overlay per slide */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 80, 0.72) 0%, rgba(0, 20, 40, 0.35) 100%);
  z-index: 1;
}

/* Content container: absolute centered to avoid Bootstrap layout jumps */
.hero-slide-body {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0 auto;
  /* keeps .container centered */
  padding-top: 40px;
}

.hero-slide-text {
  max-width: 1200px;
}

.hero-slide-text h1 {
  margin-bottom: 0px !important;
}

.hero-slide-text h1 span {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 300 !important;
}

.hero-slide-text .lead {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 300 !important;
  color: white !important;
  font-size: 36px;
  line-height: 1.5 !important;
}

/* Base state: invisible until animation starts */
.hero-anim-title,
.hero-anim-sub,
.hero-anim-btn {
  opacity: 0;
}

/* Text animation: triggered by .carousel-item.active (Bootstrap adds this) */
.carousel-item.active .hero-anim-title {
  animation: heroContentIn 0.55s 0.05s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.carousel-item.active .hero-anim-sub {
  animation: heroContentIn 0.55s 0.18s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.carousel-item.active .hero-anim-btn {
  animation: heroContentIn 0.55s 0.30s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy .hero-overlay (kept for other templates) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 61, 166, 0.5) 0%, rgba(0, 66, 45, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 80px;
  /* Offset for floating header */
}

/* Cards Premium */
.service-card {
  border-radius: var(--ac-radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--ac-shadow-soft);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--ac-shadow-hover);
}

.service-card .card-img-top {
  transition: transform 0.8s ease;
}

.service-card:hover .card-img-top {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 2.5rem 2rem;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow-soft);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ac-shadow-hover);
}

/* ============================================
   MAP EMBED — Hero-Width, Modern, Immersive
   ============================================ */
.map-hero-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 61, 166, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: #e2e8f0;
}

.map-hero-wrapper iframe {
  width: 100%;
  height: 520px;
  display: block;
  border: none;
  filter: saturate(1.1) contrast(1.05);
  transition: filter 0.3s ease;
}

.map-hero-wrapper:hover iframe {
  filter: saturate(1.2) contrast(1.08);
}

/* Smaller zone cards embed */
.map-zone-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--ac-radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 61, 166, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: #e2e8f0;
}

.map-zone-wrapper iframe {
  width: 100%;
  height: 340px;
  display: block;
  border: none;
  filter: saturate(1.1);
}

.map-zone-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 61, 166, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--ac-radius-pill);
  text-transform: uppercase;
  z-index: 2;
}

/* Contrast fixes for dark sections */
.bg-ac-blue h1,
.bg-ac-blue h2,
.bg-ac-blue h3,
.bg-ac-blue h4,
.bg-ac-blue h5,
.bg-ac-blue h6,
.bg-ac-blue .headline {
  color: #ffffff !important;
}

.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary .headline {
  color: #ffffff !important;
}

.bg-ac-blue p,
.bg-ac-blue .lead,
.bg-ac-blue li,
.bg-gradient-primary p,
.bg-gradient-primary .lead {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Outline buttons on dark backgrounds */
.bg-ac-blue .btn-outline-light,
.bg-gradient-primary .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.bg-ac-blue .btn-outline-light:hover,
.bg-gradient-primary .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* text-muted on dark: make it readable */
.bg-ac-blue .text-muted,
.bg-gradient-primary .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Decorative Blobs (optional background accents) */
.bg-blob {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
}

.blob-blue {
  background: var(--ac-blue);
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.blob-green {
  background: var(--ac-green-lime);
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: -50px;
}

/* --- WordPress Menu Fixes --- */
.navbar-ac .menu-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--ac-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-ac .menu-item a:hover,
.navbar-ac .current-menu-item>a {
  color: var(--ac-green-lime);
}

.navbar-ac .menu-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--ac-green-lime);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.navbar-ac .menu-item a:hover::after,
.navbar-ac .current-menu-item>a::after {
  width: 80%;
}

/* --- Footer Nav List --- */
.footer-nav-list li {
  margin-bottom: 0.6rem;
}

.footer-nav-list li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-nav-list li a:hover {
  color: var(--ac-green-lime);
  padding-left: 6px;
}

/* =============================================
   HEADER — Mobile-first
   ============================================= */

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  /* contexto para hijos absolute si fuese necesario */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 1;
  /* Permitir shrink en pantallas diminutas (320px) */
  min-width: 0;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ac-blue);
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Toggler hamburger custom ---- */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
}

.toggler-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ac-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================
   MOBILE MENU: panel absoluto DEBAJO del pill
   — El pill NUNCA cambia de color ni tamaño —
   ============================================== */

@media (max-width: 991px) {

  /* El collapse se sale del pill y se posiciona abajo */
  #primary-menu-wrap {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    /* Bootstrap maneja display:none / display:block */
  }

  /* Panel abierto y durante animación */
  #primary-menu-wrap.show,
  #primary-menu-wrap.collapsing {
    background: rgba(0, 18, 55, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    /* Sin transición de color: el pill ya es el color que es */
  }

  /* Links del menú mobile */
  #primary-menu-wrap.show .menu-item a,
  #primary-menu-wrap.show .nav-link,
  #primary-menu-wrap.collapsing .menu-item a,
  #primary-menu-wrap.collapsing .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.05rem;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    display: block;
    transition: background 0.2s, color 0.2s;
  }

  #primary-menu-wrap.show .menu-item:last-of-type a,
  #primary-menu-wrap.collapsing .menu-item:last-of-type a {
    border-bottom: none;
  }

  #primary-menu-wrap.show .menu-item a:hover,
  #primary-menu-wrap.collapsing .menu-item a:hover {
    color: var(--ac-green-lime) !important;
    background: rgba(255, 255, 255, 0.07);
  }

  /* Sin la animación de subrayado en mobile */
  #primary-menu-wrap.show .menu-item a::after,
  #primary-menu-wrap.collapsing .menu-item a::after {
    display: none;
  }

  /* CTA dentro del menú mobile */
  .navbar-cta {
    padding: 0.75rem 0.25rem 0.25rem;
    text-align: center;
  }

  .navbar-cta .btn {
    width: 100%;
    max-width: 220px;
  }
}

/* Desktop: el toggler se oculta, el collapse actua como flex */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }

  /* Bootstrap .navbar-expand-lg ya maneja esto, sólo estilos */
  .navbar-cta {
    margin-left: 1rem;
    margin-top: 0;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}

/* =============================================
   FOOTER — Mobile fixes
   ============================================= */

@media (max-width: 767px) {

  /* Acortar el footer en mobile: los social icons se apilan */
  #colophon .d-flex.gap-3 {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  /* Brand info: centrar en mobile */
  #colophon .col-lg-4.col-md-6:first-child {
    text-align: center;
  }

  #colophon .col-lg-4.col-md-6:first-child .d-flex.align-items-center {
    justify-content: center;
  }

  #colophon .col-lg-4.col-md-6:first-child p {
    max-width: 100%;
    margin: 0 auto;
  }

  #colophon .col-lg-4.col-md-6:first-child .d-flex.gap-3 {
    justify-content: center;
  }

  /* Columna contacto: centrar pero alineada a izquierda */
  #colophon .contact-col {
    text-align: center;
  }

  #colophon .contact-info-wrapper {
    display: inline-block;
    text-align: left;
  }

  #colophon .contact-col .btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =============================================
   GENERAL — Small screen helpers
   ============================================= */

@media (max-width: 575px) {

  /* Hero: padding top reducido */
  .hero-content {
    padding-top: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Evitar overflow horizontal */
  .hero-section {
    background-attachment: scroll;
    /* Parallax off en móvil */
  }

  /* Títulos: escalar */
  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.6rem !important;
  }

  /* Maps: altura reducida en móvil */
  .map-hero-wrapper iframe {
    height: 280px;
  }

  .map-zone-wrapper iframe {
    height: 220px;
  }



  /* Glass card: padding reducido */
  .glass-card.p-4 {
    padding: 1.25rem !important;
  }
}

/* =============================================
   HOVER EFFECTS & PROCESS CARDS
   ============================================= */

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--ac-shadow-hover) !important;
}

.process-card {
  background: #ffffff;
  border-bottom: 4px solid var(--ac-blue);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
}

.process-card i,
.process-card .h6 {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.process-card:hover {
  background: var(--ac-grad-accent) !important;
  border-bottom-color: transparent !important;
}

.process-card:hover i,
.process-card:hover .h6 {
  color: #ffffff !important;
}

/* =============================================
   TEAM CARDS PREMIUM
   ============================================= */

.team-card img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover img {
  transform: scale(1.08) !important;
}

/* Fix global text-white nested colors */
.text-white,
.text-white * {
  color: #ffffff !important;
}

/* =============================================
   CONTACT FORM 7 STYLING (PREMIUM INTEGRATION)
   ============================================= */

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  font-weight: 600;
  color: var(--ac-blue);
  width: 100%;
  display: block;
}

.wpcf7-form label br {
  display: none;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #f8f9fa;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--ac-radius-md);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-top: 0.5rem;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
  color: #212529;
  background-color: #fff;
  border-color: var(--ac-green-lime);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(147, 213, 0, 0.25);
}

.wpcf7-form-control.wpcf7-textarea {
  min-height: 150px;
}

.wpcf7-form-control.wpcf7-submit {
  display: inline-block;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: var(--ac-green-lime);
  border: 1px solid var(--ac-green-lime);
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  border-radius: 50rem;
  /* pill shape */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  margin-top: 1rem;
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: var(--ac-green-dark);
  border-color: var(--ac-green-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-hover);
}

.wpcf7-spinner {
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc3545;
  background-color: #f8d7da;
  color: #842029;
  border-radius: var(--ac-radius-md);
  margin-top: 1.5rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--ac-green-dark);
  background-color: #e6f4e6;
  color: var(--ac-green-dark);
  border-radius: var(--ac-radius-md);
  margin-top: 1.5rem;
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */

@media (max-width: 767.98px) {
  .pt-mobile-hero {
    padding-top: 8rem !important;
  }
}

/* =============================================
   SPLASH SCREEN
   ============================================= */
#ac-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ac-blue);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.8s;
}

#ac-splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* El contenedor tiene el mismo tamaño que el círculo */
.ac-splash-content {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ac-splash-logo {
  max-width: 180px;
  width: 80%;
  height: auto;
  filter: brightness(0) invert(1);
  animation: ac-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ac-splash-slogan {
  font-family: var(--font-headline), 'Arial Narrow', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  line-height: 120%;
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0;
  margin-top: 0px;
  opacity: 0.85;
  font-synthesis: none;
  margin-top: 20px;

}

.ac-splash-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 2px solid transparent;
  border-top-color: var(--ac-green-lime);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--ac-green-lime);
  border-left-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: ac-spin 1.5s linear infinite;
  z-index: 1;
}

@keyframes ac-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes ac-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 575px) {
  .ac-splash-content {
    width: 240px;
    height: 240px;
  }

  .ac-splash-logo {
    max-width: 130px;
  }

  .ac-splash-spinner {
    width: 240px;
    height: 240px;
  }

  .ac-splash-slogan {
    max-width: 150px;
    font-size: 0.5rem;
    letter-spacing: 1px;
  }
}

/* =============================================
   NAVBAR SEARCH — Premium Expandable
   ============================================= */
.ac-search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.ac-search-form {
  display: flex;
  align-items: center;
  background: rgba(0, 61, 166, 0.07);
  border: 1.5px solid transparent;
  border-radius: var(--ac-radius-pill);
  padding: 4px 4px 4px 4px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  min-width: 36px;
  cursor: pointer;
}

.ac-search-form:hover,
.ac-search-form:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--ac-blue);
  box-shadow: 0 4px 20px rgba(0, 61, 166, 0.15);
}

.ac-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--ac-blue);
  font-family: var(--font-body);
  font-weight: 500;
  width: 0;
  max-width: 0;
  padding: 0;
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    max-width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    padding 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.ac-search-form:hover .ac-search-input,
.ac-search-form:focus-within .ac-search-input,
.ac-search-form.is-open .ac-search-input {
  width: 180px;
  max-width: 180px;
  padding: 0 8px;
  opacity: 1;
  pointer-events: auto;
}

.ac-search-input::placeholder {
  color: rgba(0, 61, 166, 0.45);
  font-weight: 400;
}

/* Remove default search clear button */
.ac-search-input::-webkit-search-cancel-button {
  display: none;
}

.ac-search-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ac-blue);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex-shrink: 0;
}

.ac-search-icon:hover {
  color: var(--ac-green-lime);
  transform: scale(1.15);
}

.ac-search-form:focus-within .ac-search-icon {
  color: var(--ac-blue);
  background: var(--ac-green-lime);
  color: #fff;
}

/* Mobile: search is always expanded inside the mobile menu */
@media (max-width: 991px) {
  .ac-search-wrapper {
    width: 100%;
    margin: 0.75rem 0 0.5rem;
  }

  .ac-search-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 6px 6px 6px 14px;
  }

  .ac-search-form:hover,
  .ac-search-form:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--ac-green-lime);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .ac-search-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
  }

  .ac-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .ac-search-icon {
    color: rgba(255, 255, 255, 0.85);
  }

  .ac-search-icon:hover {
    color: var(--ac-green-lime);
  }
}

/* =============================================
   HERO — Slide backgrounds (desktop/mobile)
   ============================================= */
.hero-bg-desktop {
  display: block;
  position: absolute;
  inset: 0;
}

.hero-bg-mobile {
  display: none;
  position: absolute;
  inset: 0;
}

@media (max-width: 767px) {
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }
}

/* =============================================
   HERO — Navigation Arrows
   ============================================= */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.75;
}

.hero-nav-btn:hover {
  background: var(--ac-green-lime);
  border-color: var(--ac-green-lime);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(147, 213, 0, 0.45);
  color: #fff;
}

/* Bootstrap uses these classes on carousel-control-prev/next */
.carousel-control-prev.hero-nav-btn {
  left: 1.5rem;
  /* override Bootstrap's default width/opacity */
  width: 48px;
  opacity: 0.75;
}

.carousel-control-next.hero-nav-btn {
  right: 1.5rem;
  width: 48px;
  opacity: 0.75;
}

.carousel-control-prev.hero-nav-btn:hover,
.carousel-control-next.hero-nav-btn:hover {
  opacity: 1;
}

@media (max-width: 575px) {

  .hero-nav-btn,
  .carousel-control-prev.hero-nav-btn,
  .carousel-control-next.hero-nav-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-control-prev.hero-nav-btn {
    left: 0.75rem;
  }

  .carousel-control-next.hero-nav-btn {
    right: 0.75rem;
  }
}

/* =============================================
   HERO — Indicator Dots
   ============================================= */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-dot.active {
  background: var(--ac-green-lime);
  border-color: var(--ac-green-lime);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(147, 213, 0, 0.6);
}

.hero-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.15);
}

/* =============================================
   Floating WhatsApp Button
   ============================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 50px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: none;
  /* Stop pulse on hover */
}

.floating-whatsapp:hover svg {
  animation: shake-whatsapp 0.5s ease-in-out both;
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  transition: all 0.3s ease;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes shake-whatsapp {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-10deg);
  }
}

@media (max-width: 575px) {
  .floating-whatsapp {
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

/* =============================================
   MOBILE TYPOGRAPHY NORMALIZER
   ============================================= */
@media (max-width: 767px) {

  /* Fix huge display classes */
  .display-4 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }

  .display-5 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  /* Standardize paragraphs and leads */
  .lead,
  .fs-5 {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }

  /* Prevent text in values/services from being too large */
  p,
  .text-muted p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* Hero specific */
  .hero-slide-text h1.display-4 {
    font-size: 2.1rem !important;
  }

  .hero-slide-text p.lead {
    font-size: 1rem !important;
  }
}