/* =========================================
   1. GLOBAL & TYPOGRAPHY
   ========================================= */

:root {
  --primary-color: #04072d;
  /* Navy Blue */
  --accent-color: #c10016;
  /* Red */
  --text-color: #333333;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --gray: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

p,
ul,
ol {
  text-align: left;
}

p {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #a00012;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #060a40;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
/* Default Header (Internal Pages) */
/* Default Header (Internal Pages) */
header {
  background-color: transparent;
  /* Transparent Global */
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
  box-shadow: none;
}

/* Home Header Specifics (Transparent) */
.home-header {
  background-color: transparent;
  position: absolute;
  box-shadow: none;
}

header:hover {
  background-color: var(--primary-color);
}

.home-header:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Specific adjustment for header container to spread logo and menu further apart */
@media (min-width: 1200px) {
  header .container {
    max-width: 95%;
    /* Wider container for desktop to push logo left */
    width: 100%;
  }
}

header:hover {
  background-color: rgba(0, 0, 0, 0.8);
  /* Optional: background on hover for readability if needed */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  /* Removed text styles as it is now an image */
  display: flex;
  align-items: center;
}

.logo-img {
  height: 85px;
  /* Reduced size by 15% from 100px */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  /* Slight zoom effect on hover */
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  color: var(--white);
  /* White text for transparent header */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  /* Adjusted for box */
  cursor: pointer;
  color: var(--white);
  background-color: var(--primary-color);
  /* Blue box */
  width: 40px;
  height: 40px;
  border-radius: 4px;
  /* Slightly rounded corners */
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: var(--accent-color);
  /* Interaction feedback */
}

/* =========================================
   2.1 DROPDOWN MENU & CONTACT BUTTON
   ========================================= */

/* Dropdown Styles */
.dropdown-parent {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: rgba(0, 0, 0, 0.9) !important;
  /* Black translucency */
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  display: none;
  /* Hidden by default */
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  /* Ensure on top */
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
  /* Show on hover */
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--white) !important;
  font-size: 0.9rem;
  text-transform: none;
  border-bottom: none !important;
  /* Ensure no white lines */
  border: none !important;
  /* Reset uppercase if needed, or keep */
  transition: color 0.3s;
  /* Transition text color only */
}

.dropdown-menu li a:hover {
  background-color: transparent !important;
  /* Remove block bg */
  color: var(--accent-color) !important;
  /* Red text on hover */
}

/* Contact Button Adjustment in Menu */
.nav-links {
  align-items: center;
  /* Fix vertical alignment */
}

.nav-links .btn-secondary {
  background-color: var(--accent-color) !important;
  /* Force Red */
  border: none;
  padding: 10px 20px;
  /* Ensure consistent sizing */
  margin-left: 10px;
}

.nav-links .btn-secondary:hover {
  background-color: #a00012 !important;
  /* Darker red hover */
  transform: translateY(-2px);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    /* Changed from block to flex for centering */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 20%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    /* Translucent black background */
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom-left-radius: 8px;
    /* Optional: subtle rounded corner */
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    color: var(--white);
    /* Ensure links are white on blue bg */
    font-size: 1.1rem;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-color);
    /* Keep accent color for hover/active */
  }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: left;
  color: var(--white);
  margin-top: 0;
  padding-top: 270px;
  /* Increased for proper spacing between menu logo and H1 - Desktop only (mobile uses 140px) */
  background-image: url('../img/Camioneta-Fumigaciones-Metropolitan.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  /* Creates stacking context for video */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* =========================================
   3.1 INTERNAL PAGES (GLOBAL CLEANUP)
   ========================================= */
.hero.internal {
  height: 60vh;
  min-height: 400px;
}

.hero-title-custom {
  margin-bottom: 2rem;
  color: var(--white);
}

.hero-text-custom {
  color: var(--white);
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 3rem;
}

.hero-text-bold {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.section-no-padding {
  padding: 0;
}

.reviews-wrapper-full {
  width: 100%;
}

.footer-logo-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism for service-cards on blue BG */
.section-primary .service-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border-top: 4px solid var(--accent-color);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.section-primary h2,
.section-primary h3,
.section-primary p {
  color: var(--white);
}

.section-primary .service-card h3,
.section-primary .service-card p {
  color: var(--white);
}

.diag-note-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.diag-note-wrapper p {
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.section-primary .diag-note-wrapper p {
  color: var(--white);
}

/* Diagnostic Cards (Autodiagnóstico) */
.diag-card {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  border: none !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.diag-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  z-index: 1;
  transition: background 0.3s ease;
}

.diag-card:hover .card-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.diag-card .service-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  background: transparent !important;
  backdrop-filter: none !important;
}

.diag-card .card-overlay.overlay-light {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.diag-card h3 {
  color: var(--white) !important;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.diag-card p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.05rem;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Feature Lists */
.why-feature-list {
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 0;
  list-style: none;
  color: #555;
}

.why-feature-item {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero-style button for inner sections */
.btn-premium {
  font-size: 1.0625rem;
  font-weight: 500;
  text-transform: none;
  border: 1px solid var(--white) !important;
  padding: 16px 32px !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-block;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background-color: #a00012;
}

/* Individual Page Backgrounds (Replacing Inline Styles) */
.hero-chinches {
  background-image: url('../img/fumigaciones-chinches-puebla.webp');
}

.hero-cucarachas {
  background-image: url('../img/fumigaciones-cucarachas-puebla.webp');
}

.hero-servicios::before {
  background-image: url('../img/Camioneta-Fumigaciones-Metropolitan.webp');
}

.hero-empresas::before {
  background-image: url('../img/fumigacion-empresas-puebla-hero.webp');
}

.hero-termitas {
  background-image: url('../img/parque-industrial.webp');
}

.hero-nosotros {
  background-image: url('../img/Camioneta-Fumigaciones-Metropolitan.webp');
}

.hero-opiniones {
  background-image: url('../img/Fumigadores-en-Puebla.webp');
}

/* --- EFECTO KEN BURNS (ZONA DE PORTADAS) --- */
/* Desactivamos background en contenedor para animarlo en pseudo-elemento */
.hero.internal {
  background-image: none !important;
  position: relative;
  overflow: hidden;
}

.hero.internal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurnsZoom 20s ease-out forwards;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  z-index: 1;
}
.hero-content {
  z-index: 2;
  position: relative;
}

.hero-puebla::before {
  background-image: url('../img/Fumigadores-en-Puebla.webp');
}

.hero-residencial::before {
  background-image: url('../img/fraccionamiento-residencial-puebla.webp');
}

.italic {
  font-style: italic;
}

.hr-divider {
  border: 0;
  border-top: 1px solid var(--gray);
  margin: 3rem 0;
  opacity: 0.5;
}

/* Banner backgrounds for Home and others */
.bg-residencial {
  background-image: url('../img/fraccionamiento-residencial-puebla.webp');
}

.bg-industrial {
  background-image: url('../img/parque-industrial.webp');
}

.bg-chinches {
  background-image: url('../img/fumigaciones-chinches-puebla.webp');
}

.bg-cucarachas {
  background-image: url('../img/fumigaciones-cucarachas-puebla.webp');
}

.bg-roedores {
  background-image: url('../img/Control-de-roedores-en-Puebla.webp');
}

.bg-preventiva {
  background-image: url('../img/fumigacion-preventiva-puebla.webp');
}

/* Service banner variations with gradients */
.service-banner-residencial {
  background-image: linear-gradient(rgba(4, 7, 45, 0.7), rgba(4, 7, 45, 0.7)), url('../img/fraccionamiento-residencial-puebla.webp');
  background-size: cover;
  background-position: center;
}

.service-banner-empresarial {
  background-image: linear-gradient(rgba(193, 0, 22, 0.7), rgba(193, 0, 22, 0.7)), url('../img/parque-industrial.webp');
  background-size: cover;
  background-position: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.justify-center {
  justify-content: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .diag-card {
    min-height: 300px;
  }
}

.form-group-hidden {
  display: none;
}

/* Page "Nosotros" Specific Cleanups */
.hero.internal h1 {
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.why-choose-us .stat-item {
  padding: 1.5rem;
  flex: 1;
  min-width: 240px;
}

.why-choose-us .stat-item .stat-number {
  color: var(--primary-color) !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
  white-space: normal;
  line-height: 1.3;
}

.why-choose-us .stat-item p {
  color: #333 !important;
  font-size: 1rem;
  line-height: 1.5;
}

.cta-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.cta-benefits li svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Prevent unwanted glows from previous iterations */
.cta-split::before,
.cta-split::after,
.section-bg::before,
.section-bg::after,
main::before,
main::after,
body::before,
body::after {
  display: none !important;
  content: none !important;
}

.color-white,
.color-white * {
  color: var(--white) !important;
}

.primary-color {
  color: var(--primary-color) !important;
}

.font-small-mobile {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .font-small-mobile {
    font-size: 1.25rem;
  }
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info,
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
}

.map-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Testimonials Page Specific */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #444;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

/* Service Detail Pages (Termites, etc.) */
.process-card-custom {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.why-img-custom {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cobertura-h3 {
  color: var(--primary-color);
}

.cobertura-h3-spacer {
  color: var(--primary-color);
  margin-top: 2rem;
}

.prices-grid-custom {
  align-items: stretch;
}

.prices-card-custom {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}

.prices-detail-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 0 2rem;
  opacity: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero .btn {
  font-size: 1.0625rem;
  font-weight: 500;
  text-transform: none;
  border: 1px solid var(--white);
  padding: 16px 32px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.hero .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline {
  background-color: transparent !important;
  color: var(--white);
}

.hero .btn-outline:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.hero-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.hero-phone-icon {
  color: var(--white);
  width: 29px;
  height: 29px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-phone-number {
  font-family: var(--font-heading);
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* =========================================
   TEXT ROTATOR H2
   ========================================= */
.rotator-container {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  overflow: hidden;
  height: 1.1em;
  color: var(--accent-color);
  margin-left: 8px;
  /* Space from static text */
  top: -0.14em;
}

.rotator-stretcher {
  visibility: hidden;
  pointer-events: none;
  line-height: 1.1em;
  padding: 0 4px;
}

.seo-text {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.rotating-words {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: rotate-text-vertical 15s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.rotator-item {
  line-height: 1.1em;
  display: block;
  text-align: left;
}

@keyframes rotate-text-vertical {

  /* 5 words, 3s each. 0.5s transition (3.33%) */
  0%,
  16.67% {
    transform: translateY(0);
  }

  20%,
  36.67% {
    transform: translateY(-20%);
  }

  40%,
  56.67% {
    transform: translateY(-40%);
  }

  60%,
  76.67% {
    transform: translateY(-60%);
  }

  80%,
  96.67% {
    transform: translateY(-80%);
  }

  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator-container {
    display: inline;
    color: inherit;
    height: auto;
    overflow: visible;
  }

  .seo-text {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    overflow: visible;
    color: var(--accent-color);
  }

  .rotator-stretcher,
  .rotating-words {
    display: none;
  }
}

/* Mobile Hero Adjustment */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 140px;
    padding-bottom: 80px;
    /* Adjusted padding to reach a balance between visibility and aesthetics */
    background-image: url('../img/Vehiculo-Fumigaciones-Metroppolitan.webp');
    overflow: visible;
  }

  .hero-phone-number {
    font-size: 1.6rem;
  }
}

/* Desktop: Extend hero to fill space before license banner */
@media (min-width: 769px) {
  .hero {
    padding-bottom: 160px;
  }
}


/* Internal Hero Modifier */
.hero.internal {
  height: auto;
  min-height: 600px;
  /* Removed max-height to show full image */
  padding-top: 120px;
  /* Matches Home page spacing */
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .hero.internal {
    height: auto;
    min-height: 350px;
    padding: 140px 0 3rem;
    /* Mobile navbar + spacing */
  }
}

/* =========================================
   4. SECTIONS (General)
   ========================================= */
section:not(.hero) {
  margin-top: 0;
  padding: 1.1rem 0;
}

.section-bg {
  background-color: var(--bg-light);
  padding: 3.2rem 0;
}

.section-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3.2rem 0 4.5rem 0;
}

.section-primary h2,
.section-primary h3,
.section-primary p,
.section-primary .section-title h2,
.section-primary .section-title p {
  color: var(--white);
}

.section-primary .btn {
  border: 1px solid var(--white);
}

.section-title {
  text-align: left;
  margin-bottom: 3rem;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 1rem 0 0;
}

/* =========================================
   5. SERVICES GRID
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  /* Removed padding for full bleed */
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--accent-color);
  display: flex;
  /* Ensure flex behavior */
  flex-direction: column;
  height: 100%;
  text-align: center;
  overflow: hidden;
  /* Ensure image corners respect radius */
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card p {
  flex-grow: 1;
  color: #555;
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--accent-color);
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.service-card a:hover {
  border-bottom-color: var(--accent-color);
}

/* =========================================
   6. TESTIMONIALS
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  text-align: left;
  /* Changed to left for a more professional look */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Testimonials on Primary (Blue) Background */
.section-primary .testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  /* Sophisticated glassmorphism */
  backdrop-filter: blur(5px);
  border-left: 4px solid var(--accent-color);
  /* Red accent border */
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1.1rem;
}

.section-primary .testimonial-text {
  color: var(--white);
}

.testimonial-author {
  font-weight: 700;
  text-align: right;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-primary .testimonial-author {
  color: var(--accent-color);
  /* Red color for author on blue bg */
}

/* =========================================
   7. FAQ SECTION
   ========================================= */
.faq-container {
  width: 100%;
  max-width: 100%;
  padding: 0 5%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .faq-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  height: fit-content;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .faq-item {
    border-color: var(--accent-color);
  }
}

.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}

.faq-question::after {
  content: '';
  width: 28px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23C52828' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  /* Arbitrary large height */
  padding-bottom: 1.5rem;
}

/* =========================================
   8. BREADCRUMBS
   ========================================= */
/* =========================================
   8. BREADCRUMBS (Premium)
   ========================================= */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .breadcrumb-nav {
    display: none;
  }
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-list li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.breadcrumb-list li a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--white);
  font-weight: 500;
}


/* =========================================
   9. CONTACT & FOOTER
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info,
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-family: inherit;
}

footer {
  position: relative;
  /* Needed for absolute positioning of the line */
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 30px 0;
  /* Adjusted bottom padding to 30px */
  margin-top: 0;
}

/* User-Defined Scanner Effect (Red Adaptation) */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* Increased to 3px per user request */
  /* Gradient: Transparent - Red - Transparent */
  background: linear-gradient(90deg, transparent, #e30613, transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  /* Glow Effect */
  box-shadow: 0 0 10px rgba(227, 6, 19, 0.5);
  z-index: 20;
  animation: scanLine 1.5s linear infinite;
  /* Increased speed to 1.5s */
}

/* Movement Animation */
@keyframes scanLine {
  0% {
    background-position: -50% 0;
  }

  100% {
    background-position: 150% 0;
  }
}


.footer-grid {
  display: grid;
  /* Increased min-width to 280px to force stacking on mobile and avoid overlap */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.footer-contact-item a {
  /* Ensure long emails break to next line on small screens */
  overflow-wrap: break-word;
  word-break: break-all;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  color: var(--white);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--white);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a:hover {
  color: #e30613;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 30px;
  /* Added extra space below text */
  margin-top: 20px;
  /* Reduced from 2rem to 20px per user request */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
  color: var(--white);
  margin-bottom: 0;
}

/* =========================================
   10. DROPDOWN MENU
   ========================================= */
.dropdown-parent {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  border-radius: var(--radius);
  padding: 10px 0;
  z-index: 10000;
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: #f9f9f9;
  color: var(--accent-color);
  padding-left: 25px;
  /* Slight movement effect */
}

/* Mobile Dropdown Adjustment */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 10000;
  }

  .dropdown-parent:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    padding: 0;
    width: 100%;
  }

  .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
  }
}

/* =========================================
   11. LICENSE BANNER
   ========================================= */
section.license-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  width: 100%;
}

.license-banner h2 {
  margin: 0 !important;
}

.license-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.license-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.license-logos {
  display: flex;
  gap: 100px;
}

.license-logo-placeholder {
  width: 120px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.license-logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .license-content {
    flex-direction: column;
    text-align: center;
  }

  .license-text {
    font-size: 1.4rem;
  }
}



.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: #f9f9f9;
  color: var(--accent-color);
  padding-left: 25px;
  /* Slight movement effect */
}

/* Mobile Dropdown Adjustment */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background-color: transparent;
    display: none;
    /* Hidden by default */
  }

  /* On mobile we might want to show it always or handle interaction differently
     For simplicity in this vanilla CSS version, we will make it appear when hovering/tapping parent
     or ensure it doesn't break layout. 
     Better approach for mobile: Make it always visible or indent it. */
  .dropdown-parent:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: none;
    color: var(--white) !important;
    /* Force white text for submenu items in mobile */
  }

  .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle hover effect */
    color: var(--white);
  }
}

/* Footer Contact Icons */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #ccc;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #e30613;
}

.footer-icon {
  color: #e30613;
  /* Red color for icons */
  margin-right: 12px;
  min-width: 18px;
  margin-top: 3px;
}

/* =========================================
   10b. STATS COUNTER SECTION
   ========================================= */
section.stats-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}

.stats-section .stat-number,
.stats-section .stat-item p {
  margin: 0 !important;
}

.stat-item {
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  /* Forced centering */
}

@media (min-width: 900px) {
  .stat-number {
    font-size: 4rem;
  }
}

/* =========================================
   10c. SERVICE WIDE BANNERS
   ========================================= */
/* =========================================
   10c. SERVICE WIDE BANNERS
   ========================================= */
.service-banners-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Zero gap between banners */
  margin-top: 3rem;
  /* Spacing from title */
}

.service-banner {
  position: relative;
  height: 400px;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  box-shadow: none;
  padding: 0;
  width: 100%;
}

/* Background layer for animation */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  transform: scale(1.1);
  /* Start slightly zoomed to avoid edges during pan */
  animation-play-state: paused;
  /* Managed by JS IntersectionObserver */
  transition: transform 0.8s ease-out;
  /* Smooth transition for hover state */
}

/* Play animation only when parent has .is-visible class */
.service-banner.is-visible .banner-bg {
  animation-play-state: running;
}

/* Ken Burns Keyframes - Up-Left Movement */
@keyframes kenBurnsUpLeft {
  0% {
    transform: scale(1.1) translate(0, 0);
  }

  50% {
    transform: scale(1.18) translate(-2%, -2%);
  }

  100% {
    transform: scale(1.1) translate(0, 0);
  }
}

/* Ken Burns Keyframes - Up-Right Movement */
@keyframes kenBurnsUpRight {
  0% {
    transform: scale(1.1) translate(0, 0);
  }

  50% {
    transform: scale(1.18) translate(2%, -2%);
  }

  100% {
    transform: scale(1.1) translate(0, 0);
  }
}

/* Applying animations with alternating directions */
.banner-chinches .banner-bg,
.banner-roedores .banner-bg,
.banner-residencial .banner-bg {
  animation: kenBurnsUpLeft 14s ease-in-out infinite;
}

.banner-cucarachas .banner-bg,
.banner-preventiva .banner-bg,
.banner-empresarial .banner-bg {
  animation: kenBurnsUpRight 14s ease-in-out infinite;
}

/* Accessibility: Support reduced motion */
@media (prefers-reduced-motion: reduce) {
  .banner-bg {
    animation: none !important;
    transform: scale(1.1) !important;
  }
}

/* Hover Effect: Gentle enhancement without breaking the flow */
.service-banner:hover .banner-bg {
  transform: scale(1.22) !important;
  /* Slightly more zoom on hover */
  transition: transform 0.6s ease-out;
}

/* Darken overlay slightly on hover for better text contrast if needed */
.service-banner:hover .banner-overlay {
  background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Alternating Alignment Logic */
/* Odd items (1, 3): Left Aligned (Default) */
.service-banner:nth-of-type(odd) {
  justify-content: flex-start;
  text-align: left;
}

/* Even items (2, 4, etc): Right Aligned */
.service-banner:nth-of-type(even) {
  justify-content: flex-end;
  text-align: right;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background 0.3s ease;
}

/* Default Overlay */
.banner-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Specific Service Overlays */
/* Chinches: Blood Red - High Transparency */
.service-banner.banner-chinches .banner-overlay {
  background-color: rgba(138, 3, 3, 0.35);
}

/* Cucarachas: Brown (Coffee) */
.service-banner.banner-cucarachas .banner-overlay {
  background-color: rgba(101, 67, 33, 0.6);
}

/* Roedores: Grey (Industrial) */
.service-banner.banner-roedores .banner-overlay {
  background-color: rgba(60, 60, 60, 0.6);
}

/* Preventiva: Navy Blue Overlay */
.service-banner.banner-preventiva .banner-overlay,
.service-banner.banner-empresarial .banner-overlay {
  background-color: rgba(4, 7, 45, 0.7);
}

/* Residencial: Dark Professional Blue */
.service-banner.banner-residencial .banner-overlay {
  background-color: rgba(4, 7, 45, 0.65);
}

/* Adjust background position for desktop focus */
@media (min-width: 769px) {
  .banner-preventiva .banner-bg {
    background-position: top !important;
  }
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 10%;
  /* Significant padding from sides */
  max-width: 800px;
  /* Constrain text width */
  width: 100%;
  /* Margin auto handles centering if needed, but flex handles alignment */
}

.service-banner h3 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.1;
  text-shadow: none;
}

.service-banner p {
  font-size: 1.3rem;
  font-family: var(--font-body);
  margin-bottom: 2rem;
  color: var(--white);
  max-width: 100%;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure paragraph aligns with parent text-align */
.service-banner:nth-of-type(even) p {
  margin-left: auto;
  /* Pushes text to right if it has max-width */
  margin-right: 0;
}

.btn-banner {
  background-color: transparent;
  color: var(--white);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--white);
  border-radius: 6px;
  /* Slightly rounded corners */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  font-size: 0.95rem;
}

.btn-banner:hover {
  background-color: var(--white);
  color: #111;
  /* Dark text on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .service-banner {
    height: auto;
    min-height: 350px;
    padding: 3rem 0;
  }

  .service-banner h3 {
    font-size: 2.2rem;
  }

  .banner-content {
    padding: 0 5%;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-banner:nth-of-type(even) p,
  .service-banner:nth-of-type(odd) p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .service-banner:nth-of-type(even) {
    justify-content: center;
  }
}


.footer-logo-square {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  /* Optional: adds subtle rounding */
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: #ffffff;
  overflow: hidden;
  /* Prevent horizontal scroll just in case */
}

.why-flex-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.why-content-col {
  flex: 1;
  min-width: 300px;
}

.why-image-col {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  /* Added to contain animation */
  border-radius: 15px;
  /* Radius moved here */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom: 6px solid var(--accent-color);
}

.why-img {
  width: 100%;
  display: block;
  transform: scale(1.1);
  /* Zoomed start to avoid edges */
  transition: transform 0.8s ease-out;
  animation-play-state: paused;
}

.why-image-col.is-visible .why-img {
  animation: kenBurnsUpLeft 14s ease-in-out infinite;
  animation-play-state: running;
}

@media (max-width: 768px) {
  .why-choose-us {
    padding: 2.5rem 0 0 0;
  }

  .why-choose-us .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .why-content-col {
    padding: 0 20px;
    margin-bottom: 2rem;
    flex: none;
    width: 100%;
  }

  .why-flex-layout {
    gap: 0;
  }

  .why-image-col {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    /* Full width mobile */
    box-shadow: none;
    /* Cleaner mobile look */
  }

  .why-img {
    border-bottom: 8px solid var(--accent-color);
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================
   PREMIUM IMAGE CARD (SPECIFIC)
   ========================================= */
.image-card-premium {
  border-radius: 18px !important;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  height: 420px;
  max-height: 420px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-bottom: none !important;
  overflow: hidden;
}

.process-card .image-card-premium {
  height: 280px;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.process-card {
  padding: 0 !important;
}

.process-card h3 {
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  margin: 0;
}

.process-card p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
}

.process-card .image-inner-zoom {
  border-radius: 0 !important;
}

.image-inner-zoom {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  transition: transform 0.4s ease;
}

.image-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

.image-card-premium:hover .image-inner-zoom {
  transform: scale(1.03);
}

.image-card-premium .why-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  .image-card-premium {
    height: auto !important;
    min-height: 300px;
    margin: 20px !important;
    border-radius: 18px !important;
  }
}

/* Proceso Progresivo Section */
.proceso-section {
  background-color: #f9f9f9;
}

.proceso-steps-container {
  display: flex;
  flex-wrap: wrap;
  /* Allows wrapping on tablet/mobile */
  width: 100%;
  margin-top: 3rem;
  gap: 12px;
  /* Slightly increased gap for better individual identity */
  justify-content: center;
  padding: 5px 10px 15px;
  /* Added breathing room for sides and bottom borders */
  box-sizing: border-box;
}

.proceso-step {
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
  overflow: visible;
  /* Changed from hidden to show border glow if needed */
  flex: 1;
  /* Expand equally */
  min-width: 250px;
  /* Ensures grid-like feel on large screens */
}

.proceso-step:last-child {
  border-right: none;
}

/* 4-Line Border System (Bulletproof for Mobile) */
.card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.card-border span {
  position: absolute;
  background-color: var(--accent-color);
  transition: all 0.25s linear;
  opacity: 0;
  /* Hidden initially */
}

/* Initial States (Clockwise Logic) */
.line-t {
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
}

.line-r {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
}

.line-b {
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
}

.line-l {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
}

/* Animation Trigger: DRAW sequence */
.proceso-step.is-visible .card-border span,
.proceso-step:hover .card-border span {
  opacity: 1;
}

/* Sequential delays for the "Draw" effect */
.proceso-step.is-visible .line-t,
.proceso-step:hover .line-t {
  width: 100%;
  transition-delay: 0s;
}

.proceso-step.is-visible .line-r,
.proceso-step:hover .line-r {
  height: 100%;
  transition-delay: 0.25s;
}

.proceso-step.is-visible .line-b,
.proceso-step:hover .line-b {
  width: 100%;
  transition-delay: 0.5s;
}

.proceso-step.is-visible .line-l,
.proceso-step:hover .line-l {
  height: 100%;
  transition-delay: 0.75s;
}

/* MOBILE REFINEMENT: Scroll trigger with card-stagger */
@media (max-width: 1024px) {

  /* After draw, keep it semi-transparent as requested */
  .proceso-step.is-visible .card-border span {
    opacity: 0.6;
  }

  /* Each card starts its sequence with a delay when scrolling into view */
  .proceso-step:nth-child(2).is-visible .line-t {
    transition-delay: 0.3s;
  }

  .proceso-step:nth-child(2).is-visible .line-r {
    transition-delay: 0.5s;
  }

  .proceso-step:nth-child(2).is-visible .line-b {
    transition-delay: 0.7s;
  }

  .proceso-step:nth-child(2).is-visible .line-l {
    transition-delay: 0.9s;
  }

  .proceso-step:nth-child(3).is-visible .line-t {
    transition-delay: 0.6s;
  }

  .proceso-step:nth-child(3).is-visible .line-r {
    transition-delay: 0.8s;
  }

  .proceso-step:nth-child(3).is-visible .line-b {
    transition-delay: 1.0s;
  }

  .proceso-step:nth-child(3).is-visible .line-l {
    transition-delay: 1.2s;
  }

  .proceso-step:nth-child(4).is-visible .line-t {
    transition-delay: 0.9s;
  }

  .proceso-step:nth-child(4).is-visible .line-r {
    transition-delay: 1.1s;
  }

  .proceso-step:nth-child(4).is-visible .line-b {
    transition-delay: 1.3s;
  }

  .proceso-step:nth-child(4).is-visible .line-l {
    transition-delay: 1.5s;
  }
}

/* DESKTOP HOVER REFINEMENT */
@media (min-width: 1025px) {

  /* On desktop, reset the is-visible scroll draw so it stays clean for hover IF desired, 
     but keeping it for both is safer as a reveal. Let's make hover instant draw. */
  .proceso-step:hover .card-border span {
    transition: all 0.2s linear !important;
    transition-delay: 0s !important;
    opacity: 1 !important;
  }

  .proceso-step:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
  }
}

@media (min-width: 1025px) {
  .proceso-step:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    z-index: 3;
  }

  .proceso-step:hover .step-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 15px rgba(193, 0, 22, 0.2));
  }
}

/* SVG Draw Animation Override for Icons kept separate */

.step-icon-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  /* Consistent height to avoid layout shift */
}

.step-icon {
  width: 80px;
  height: 80px;
  color: var(--accent-color);
  transition: all 0.4s ease;
}

/* Stroke Draw Animation */
.step-icon path,
.step-icon circle,
.step-icon rect,
.step-icon line,
.step-icon polyline {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 2.1s ease-in-out;
}

.proceso-step.is-visible .step-icon path,
.proceso-step.is-visible .step-icon circle,
.proceso-step.is-visible .step-icon rect,
.proceso-step.is-visible .step-icon line,
.proceso-step.is-visible .step-icon polyline {
  animation: drawStroke 2.1s ease-out forwards;
}

/* Staggered Delays */
.proceso-step:nth-child(1).is-visible .step-icon * {
  animation-delay: 0.1s;
}

.proceso-step:nth-child(2).is-visible .step-icon * {
  animation-delay: 0.4s;
}

.proceso-step:nth-child(3).is-visible .step-icon * {
  animation-delay: 0.7s;
}

.proceso-step:nth-child(4).is-visible .step-icon * {
  animation-delay: 1.0s;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .step-icon path,
  .step-icon circle,
  .step-icon rect,
  .step-icon line,
  .step-icon polyline {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  .card-border span {
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .step-icon-wrapper {
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .step-icon {
    width: 56px;
    height: 56px;
  }
}

.proceso-step h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.4s ease;
}

.proceso-step p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  max-width: 250px;
  transition: color 0.4s ease;
}

@media (max-width: 1024px) {
  .proceso-steps-container {
    padding: 10px 20px 30px;
    /* Increased side and bottom room */
  }

  .proceso-step {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
    /* More space between cards for clarity */
    box-sizing: border-box;
  }
}

/* =========================================
   12. LOCAL INFO SECTION (MAP)
   ========================================= */
.local-info-section {
  padding: 5rem 0 2rem 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.local-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .local-info-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.local-info-content h2 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.2;
}

.local-info-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin-top: 0.5rem;
}

.local-info-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.local-contact-details {
  margin-bottom: 0;
}

.local-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.local-detail-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.local-detail-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.local-detail-item p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.local-detail-item a:hover {
  color: var(--accent-color);
}

.local-info-map {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 450px;
}

.local-info-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .local-info-content h2 {
    font-size: 2.2rem;
  }

  .local-info-map {
    height: 350px;
  }
}

/* =========================================
   12. WHATSAPP MODAL
   ========================================= */
.wa-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-modal.active {
  display: flex;
}

.wa-modal-content {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-top: 5px solid var(--accent-color);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.wa-modal-close:hover {
  color: var(--accent-color);
}

.wa-modal h3 {
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.wa-modal p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: left;
}

.wa-modal .form-group {
  margin-bottom: 1.1rem;
  text-align: left;
  position: relative;
}

.wa-modal label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.wa-modal input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.wa-modal input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(4, 7, 45, 0.1);
}

/* Radio Button Styling */
.radio-group-grid,
.radio-group-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid var(--gray);
  border-radius: 6px;
  cursor: pointer;
  height: 40px;
  min-width: 100px;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 2px solid #bbb !important;
  border-radius: 50% !important;
  margin-right: 12px !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  vertical-align: middle;
}

.radio-option:hover {
  background: #eee;
  border-color: #bbb;
}

.radio-option:hover .radio-custom {
  border-color: var(--accent-color);
}

.radio-option input:checked~.radio-custom {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

.radio-option input:checked~.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #fff;
  /* White center for visual feedback */
  border-radius: 50%;
}

.radio-option input:checked+.radio-custom+span,
.radio-option input:checked~span {
  color: var(--accent-color);
}

.radio-option:has(input:checked) {
  border-color: var(--accent-color);
  background: rgba(193, 0, 22, 0.05);
}

/* Validation Styles */
.form-group.error input[type="text"] {
  border-color: #ff3333 !important;
  background-color: #fff9f9;
}

.form-group.error .error-msg {
  display: block;
}

.error-msg {
  display: none;
  color: #ff3333;
  font-size: 0.8rem;
  margin-top: 3px;
  font-weight: 500;
}

.shake {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.btn-wa-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 12px;
  margin-top: 0.8rem;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   12. CTA SPLIT SECTION
   ========================================= */

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.cta-info {
  flex: 1;
  min-width: 320px;
}

.cta-info h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: left;
}

.cta-info p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 3rem;
  line-height: 1.6;
  text-align: left;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  color: #444;
}

.cta-benefits svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.cta-card-wrapper {
  flex: 0 0 450px;
  max-width: 450px;
  /* Fixed width on desktop */
}

.cta-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--accent-color);
  text-align: center;
}

.technician-info {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.tech-img {
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  padding: 2px;
  object-fit: cover;
}

.tech-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.tech-text span {
  font-size: 0.85rem;
  color: #777;
}

.cta-card-note {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1rem;
  margin-bottom: 0;
  font-style: italic;
  text-align: center;
}

@media (max-width: 992px) {
  .cta-flex {
    gap: 3rem;
  }

  .cta-card-wrapper {
    flex: 1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cta-info h2 {
    font-size: 2rem;
    text-align: left;
  }

  .cta-info p {
    text-align: left;
  }

  .cta-benefits {
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
  }

  .cta-benefits li {
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wa-modal-content {
    padding: 1.2rem 1.5rem;
  }

  .wa-modal h3 {
    font-size: 1.3rem;
  }

  .radio-group-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   XX. PROCESS STEPS & TIMELINE (CHINCHES)
   ========================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.process-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  border: 1px solid #eee;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.2rem;
}

.process-image-placeholder,
.process-img-item {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: block;
  object-fit: cover;
}

.process-step-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.process-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.process-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}

/* Timeline Box */
.treatment-timeline-box {
  background-color: var(--bg-light);
  border-left: 5px solid var(--accent-color);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow);
  width: 100%;
}

.treatment-timeline-box h3 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.treatment-timeline-box p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #444;
}

.treatment-timeline-box p:last-child {
  margin-bottom: 0;
}

.treatment-timeline-box strong {
  color: var(--accent-color);
  font-weight: 700;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-image-placeholder {
    height: 180px;
  }
}

/* =========================================
   13. HOME PAGE SPECIFIC STYLES (MIGRATED)
   ========================================= */
.hero-desc-custom {
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-title-spacer {
  margin-bottom: 0;
}

.banners-container-spacer {
  margin-top: 0;
}

.section-no-padding {
  padding: 0;
}

.why-title-main {
  color: var(--primary-color);
  margin-bottom: 0;
}

.why-title-accent {
  color: var(--accent-color);
  margin-top: 0;
}

.why-subtitle-wrapper {
  margin-bottom: 2rem;
}

.why-feature-wrapper {
  margin-bottom: 2.5rem;
}

.why-feature-title {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.why-feature-list {
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 0;
  list-style: none;
  color: #555;
}

.why-feature-item {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-wrapper-full {
  width: 100%;
}

.servicios-cta-wrapper {
  margin-top: 1rem;
}

.cta-card-btn-full {
  width: 100%;
  margin-top: 1.5rem;
  border: 1px solid var(--white);
}

.proceso-title-left {
  text-align: left;
}

.footer-logo-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-iframe-custom {
  border: 0;
}

.license-text-static {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 768px) {
  .license-text-static {
    font-size: 1.1rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
  }
}

/* =========================================
   13. CONTACT CARD PREMIUM UPDATE
   ========================================= */
.cta-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-image: url('../img/personal-administrativo-fumigaciones-metropolitan.webp');
  background-size: cover;
  background-position: center;
  /* Fallback color while loading */
  background-color: var(--primary-color);
  padding: 2.5rem;
  border-radius: 15px;
  /* Increased shadow for depth */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-top: 5px solid var(--accent-color);
  text-align: center;
  color: #ffffff;
}

/* Premium Dark Overlay */
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Black overlay with reduced opacity as requested */
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.cta-card .technician-info {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-card .tech-img {
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  padding: 2px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-card .tech-text strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  font-family: var(--font-heading);
}

.cta-card .tech-text span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-card .cta-card-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  margin-bottom: 0;
  font-style: italic;
  text-align: center;
}

/* Mobile Adjustment for Card Width */
@media (max-width: 768px) {
  .cta-card-wrapper {
    /* Pulling out of container padding (15px) */
    width: calc(100% + 30px) !important;
    flex: 0 0 calc(100% + 30px) !important;
    max-width: calc(100% + 30px) !important;
    margin-left: -15px;
    margin-right: -15px;
  }

  .cta-card {
    border-radius: 0;
  }

}

/* =========================================
   14. FLOATING WHATSAPP BUTTON (PREMIUM RE-DESIGN)
   ========================================= */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: var(--primary-color);
  /* Corporate Blue */
  color: var(--white);
  /* Solid White Icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  /* Subtle White Border */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  /* Soft Diffuse Shadow */
  z-index: 2000;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: wa-float 4s ease-in-out infinite;
  /* Smooth Floating */
}

.floating-wa-btn:hover {
  transform: translateY(-4px);
  background-color: #0d1252;
  /* Slightly lighter/richer blue on hover */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.floating-wa-btn img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Forces the icon to be white */
}

/* Animations */
@keyframes wa-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
    /* Subtle vertical movement */
  }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .floating-wa-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .floating-wa-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* =========================================
   19. FLOATING CALL BUTTON (MOBILE ONLY)
   ========================================= */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--white);
}

.floating-call-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes floatCall {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Modal Call styles */
.call-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.call-modal.active {
  display: flex;
}

.call-modal-content {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.call-modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: var(--primary-color);
}

.call-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-call-confirm {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.btn-call-cancel {
  background-color: transparent;
  color: #777;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid red;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

/* Media Query: show only on mobile */
@media (max-width: 768px) {
  .floating-call-btn {
    display: flex;
  }
}

@media (min-width: 769px) {
  .floating-call-btn {
    display: none !important;
  }
}

/* Horizontal Cards for Cockroach Section */
.horizontal-card {
  display: flex;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  align-items: stretch;
}

.card-body {
  flex: 1.5;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-body h3 {
  color: var(--primary-color) !important;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  text-transform: none;
}

.card-body p {
  color: var(--text-color) !important;
  margin-bottom: 1rem;
}

.card-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SVG icons inside horizontal cards */
.horizontal-card .why-feature-item svg {
  stroke: var(--accent-color) !important;
}

.horizontal-card .why-feature-item {
  color: var(--text-color) !important;
}

/* Responsive adjustment for horizontal cards */
@media (max-width: 992px) {
  .horizontal-card {
    flex-direction: column;
  }

  .card-image-wrapper {
    order: -1;
    /* Image on top in mobile */
    min-height: 250px;
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* Cockroach Page Cleanup Styles */
.section-primary .section-title h2 {
  color: var(--white);
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-primary .section-title p {
  color: var(--white);
  text-align: left;
  max-width: 800px;
  margin: 0 0 3rem 0;
}

.industrial-intro-text {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.commercial-features-list {
  margin-bottom: 1.5rem;
}

.commercial-cta-wrapper {
  margin-top: 1.5rem;
}

/* Extracted from servicios-fumigacion-puebla.html */
.servicios-premium-header {
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-end;
                        margin-bottom: 2rem;
                        padding-bottom: 1.5rem;
                        border-bottom: 1px solid #eaeaea;
                    }

                    .servicios-premium-header h2 {
                        color: var(--primary-color);
                        font-family: var(--font-heading);
                        font-size: 2.2rem;
                        font-weight: 700;
                        text-transform: uppercase;
                        margin: 0;
                    }

                    .servicios-premium-header .link-todos {
                        color: var(--accent-color);
                        font-weight: 700;
                        text-decoration: none;
                        font-size: 1rem;
                        display: inline-flex;
                        align-items: center;
                        gap: 0.5rem;
                    }

                    .servicios-premium-header .link-todos:hover {
                        text-decoration: underline;
                    }

                    @media (max-width: 768px) {
                        .servicios-premium-header {
                            flex-direction: column;
                            align-items: flex-start;
                            gap: 1rem;
                        }
                    }

                    .plagas-grid-premium {
                        display: grid;
                        grid-template-columns: repeat(1, 1fr);
                        gap: 1.5rem;
                    }

                    @media (min-width: 576px) {
                        .plagas-grid-premium {
                            grid-template-columns: repeat(2, 1fr);
                        }
                    }

                    @media (min-width: 992px) {
                        .plagas-grid-premium {
                            grid-template-columns: repeat(4, 1fr);
                        }
                    }

                    .servicios-premium-card {
                        position: relative;
                        display: block;
                        height: 320px;
                        border-radius: 12px;
                        overflow: hidden;
                        text-decoration: none;
                        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
                    }

                    .servicios-premium-card img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 0.5s ease;
                    }

                    .servicios-premium-overlay {
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background: linear-gradient(to top, rgba(4, 7, 45, 0.95) 0%, rgba(4, 7, 45, 0.3) 50%, rgba(4, 7, 45, 0.05) 100%);
                        transition: background 0.5s ease;
                    }

                    .servicios-premium-content {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        padding: 1.5rem;
                        color: #fff;
                        display: flex;
                        flex-direction: column;
                        justify-content: flex-end;
                    }

                    .servicios-premium-content h3 {
                        font-family: var(--font-heading);
                        font-size: 1.35rem;
                        font-weight: 700;
                        margin: 0;
                        text-transform: uppercase;
                        color: #fff;
                        letter-spacing: 0.5px;
                    }

                    .servicios-premium-desc {
                        font-size: 0.9rem;
                        color: #e5e7eb;
                        margin-top: 0;
                        margin-bottom: 0;
                        line-height: 1.4;
                        max-height: 0;
                        opacity: 0;
                        overflow: hidden;
                        transition: all 0.4s ease;
                    }

                    .btn-servicios-premium {
                        display: inline-flex;
                        align-items: center;
                        padding: 0.6rem 1rem;
                        background-color: transparent;
                        color: #fff;
                        border: 1px solid #fff;
                        font-size: 0.85rem;
                        font-weight: 700;
                        border-radius: 4px;
                        align-self: flex-start;
                        transition: all 0.4s ease;
                        margin-top: 1rem;
                    }

                    .servicios-premium-card:hover img {
                        transform: scale(1.08);
                    }

                    .servicios-premium-card:hover .servicios-premium-overlay {
                        background: linear-gradient(to top, rgba(4, 7, 45, 0.98) 0%, rgba(4, 7, 45, 0.6) 60%, rgba(4, 7, 45, 0.2) 100%);
                    }

                    .servicios-premium-card:hover .servicios-premium-desc {
                        max-height: 80px;
                        opacity: 1;
                        margin-top: 0.5rem;
                        margin-bottom: 0.5rem;
                    }

                    .servicios-premium-card:hover .btn-servicios-premium {
                        background-color: var(--accent-color);
                        color: #fff;
                        border-color: var(--accent-color);
                    }

                    @media (max-width: 575px) {
                        .plagas-grid-premium {
                            width: 100vw;
                            margin-left: calc(-50vw + 50%);
                            margin-right: calc(-50vw + 50%);
                            gap: 1rem;
                            padding-left: 0;
                            padding-right: 0;
                        }

                        .servicios-premium-card {
                            border-radius: 0;
                            height: 280px;
                        }

                        .servicios-premium-content {
                            padding-left: 2.5rem;
                            padding-right: 2.5rem;
                        }
                    }

                    .preventiva-img-container {
                        width: 100%;
                        height: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background: #1a1e38;
                        transition: transform 0.5s ease;
                    }

                    .servicios-premium-card:hover .preventiva-img-container {
                        transform: scale(1.08);
                    }

.proceso-steps {
                        display: flex;
                        justify-content: space-between;
                        max-width: 1100px;
                        margin: 0 auto;
                        gap: 2rem;
                        position: relative;
                        padding-bottom: 2rem;
                    }

                    .proceso-separator {
                        position: absolute;
                        top: 85px;
                        /* exactly behind the middle bottom of the 70px circles */
                        left: 5%;
                        right: 5%;
                        height: 1px;
                        background-color: #d1d5db;
                        z-index: 1;
                    }

                    @media (max-width: 768px) {
                        .proceso-steps {
                            flex-direction: column;
                            align-items: center;
                        }

                        .proceso-separator {
                            display: none;
                        }
                    }

                    .step-item {
                        flex: 1;
                        text-align: center;
                        position: relative;
                        z-index: 2;
                        max-width: 250px;
                    }

                    .step-icon-wrapper {
                        width: 70px;
                        height: 70px;
                        background: #fff;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        margin: 0 auto 2rem auto;
                        position: relative;
                        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
                    }

                    .step-number {
                        position: absolute;
                        top: -5px;
                        right: -5px;
                        width: 24px;
                        height: 24px;
                        background: var(--primary-color);
                        color: #fff;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-family: var(--font-heading);
                        font-size: 0.9rem;
                        font-weight: 700;
                    }

                    .step-icon-wrapper svg {
                        width: 28px;
                        height: 28px;
                        color: var(--accent-color);
                    }

                    .step-title {
                        text-transform: uppercase;
                        color: var(--primary-color);
                        font-family: var(--font-heading);
                        font-size: 1.05rem;
                        font-weight: 700;
                        margin-bottom: 0.8rem;
                        letter-spacing: 0.5px;
                    }

                    .step-desc {
                        font-size: 0.9rem;
                        color: #64748b;
                        line-height: 1.5;
                    }

.precios-card {
                        background-color: #1a1e38;
                        border: 1px solid rgba(255, 255, 255, 0.1);
                        border-radius: 8px;
                        padding: 3rem 2rem;
                        max-width: 650px;
                        margin: 0 auto 3rem auto;
                        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
                    }

                    .precios-card p {
                        color: #d1d5db;
                        font-size: 1.05rem;
                        line-height: 1.6;
                        margin-bottom: 2rem;
                    }

                    .precios-amount {
                        font-family: var(--font-heading);
                        color: #fff;
                        font-size: 3.5rem;
                        font-weight: 700;
                        display: flex;
                        justify-content: center;
                        align-items: baseline;
                        gap: 0.5rem;
                        margin-bottom: 0.5rem;
                    }

                    .precios-amount span {
                        font-size: 1.2rem;
                        color: #9ca3af;
                        font-family: var(--font-body);
                        font-weight: 400;
                    }

                    .precios-legal {
                        color: #6b7280;
                        font-size: 0.85rem;
                        margin-top: 1rem;
                    }

                    .precios-btn-group {
                        display: flex;
                        justify-content: center;
                        gap: 1rem;
                        flex-wrap: wrap;
                    }

                    .btn-precios-primary {
                        background-color: var(--accent-color);
                        color: #fff;
                        padding: 1rem 2rem;
                        border-radius: 4px;
                        font-family: var(--font-heading);
                        font-weight: 700;
                        text-transform: uppercase;
                        text-decoration: none;
                        font-size: 1rem;
                        letter-spacing: 0.5px;
                        transition: background-color 0.3s ease;
                        border: none;
                        cursor: pointer;
                    }

                    .btn-precios-primary:hover {
                        background-color: #a00012;
                    }

                    .btn-precios-outline {
                        background-color: transparent;
                        color: #fff;
                        padding: 1rem 2rem;
                        border-radius: 4px;
                        font-family: var(--font-heading);
                        font-weight: 700;
                        text-transform: uppercase;
                        text-decoration: none;
                        font-size: 1rem;
                        letter-spacing: 0.5px;
                        border: 2px solid #fff;
                        transition: all 0.3s ease;
                        display: flex;
                        align-items: center;
                        gap: 0.5rem;
                    }

                    .btn-precios-outline:hover {
                        background-color: rgba(255, 255, 255, 0.1);
                    }

.ag-inline-343c77 {
    display:none;visibility:hidden
}

.ag-inline-1c969e {
    margin-top: 2rem; color: #fff; font-weight: 500;
}

.ag-inline-20be3c {
    padding: 2rem 0 1rem 0;
}

.ag-inline-2bb3ba {
    max-width: 900px; margin: 0 auto; line-height: 1.8; color: #555;
}

.ag-inline-e7b721 {
    padding: 1.5rem 0 4rem 0;
}

.ag-inline-40d8eb {
    object-position: top;
}

.ag-inline-4c3e8c {
    background-color: #f6f7f9; padding: 4rem 0;
}

.ag-inline-bced34 {
    margin-bottom: 4rem;
}

.ag-inline-610619 {
    text-transform: uppercase; color: var(--primary-color); font-size: 2.2rem; font-family: var(--font-heading); font-weight: 700;
}

.ag-inline-2cc88b {
    background-color: #04072d; background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px); background-size: 24px 24px; padding: 5rem 0; position: relative;
}

.ag-inline-f9b2b4 {
    color: #fff; text-transform: uppercase; font-family: var(--font-heading); font-weight: 700; font-size: 2.2rem; margin-bottom: 2rem; letter-spacing: 0.5px;
}

.ag-inline-eae641 {
    display: flex; gap: 2rem; align-items: stretch; justify-content: center; max-width: 1050px; margin: 0 auto; flex-wrap: wrap;
}

.ag-inline-1c115b {
    margin: 0; min-width: 320px; flex: 1.5; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}

.ag-inline-50d95f {
    margin-top: 1.5rem; justify-content: center;
}

.ag-inline-4a5fb4 {
    width: auto;
}

.ag-inline-1e2bea {
    flex: 1; min-width: 320px; max-width: 450px;
}

.ag-inline-732056 {
    height: 100%;
}

.ag-inline-9be5c2 {
    padding: 4rem 0;
}

.ag-inline-101a07 {
    color: #fff; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 500;
}

.ag-inline-11a4a6 {
    display: flex; gap: 15px;
}

.ag-inline-33675b {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-13cfae {
    display:none;
}

.ag-inline-f8955b {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-3a9457 {
    display:none;
}

.ag-inline-48d26d {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-4dad69 {
    display:none;
}

.ag-inline-9cd067 {
    margin-bottom: 15px;
}

.ag-inline-e77a0c {
    color: #fff; text-decoration: underline; margin-right: 20px;
}

.ag-inline-15e9fb {
    color: #fff; text-decoration: underline;
}


/* Extracted from fumigacion-empresas-puebla.html */
.direct-answer {
            background: #f8f9fa;
            border-left: 5px solid var(--accent-color);
            padding: 2.5rem;
            margin: 3rem 0;
            border-radius: 4px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            font-size: 1.1rem;
            line-height: 1.8;
            color: #333;
        }

        .feature-grid-empresas {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .feature-card {
            background: #fff;
            padding: 2.5rem;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border-top: 4px solid var(--accent-color);
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-card h3 {
            color: var(--primary-color);
            font-size: 1.4rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .split-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            padding: 5rem 0;
        }

        .split-img {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            object-fit: cover;
        }

        .bullet-list-custom li {
            margin-bottom: 1rem;
            position: relative;
            padding-left: 30px;
        }

        .bullet-list-custom li::before {
            content: '✓';
            color: var(--accent-color);
            position: absolute;
            left: 0;
            top: 0;
            font-weight: bold;
            font-size: 1.2rem;
        }

        /* Seccion Trazabilidad Premium */
        .trazabilidad-premium {
            background: var(--primary-color);
            color: #fff;
            padding: 6rem 0;
            position: relative;
            overflow: hidden;
        }

        .red {
            color: var(--accent-color) !important;
        }

        .tech-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .premium-title {
            font-size: 3.5rem;
            color: #fff;
            line-height: 1.1;
            margin-bottom: 2rem;
        }

        .premium-title span {
            color: var(--accent-color);
        }

        .premium-text {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.25rem;
            max-width: 550px;
            margin-bottom: 3rem;
        }

        .feature-item-premium {
            display: flex;
            gap: 20px;
            margin-bottom: 2.5rem;
            align-items: flex-start;
        }

        .feature-icon-box {
            min-width: 48px;
            height: 48px;
            background: rgba(193, 0, 22, 0.15);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-color);
        }

        .feature-content-premium h4 {
            color: #fff;
            margin-bottom: 5px;
            font-size: 1.15rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .feature-content-premium p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 0;
        }

        .image-mockup-container {
            position: relative;
            z-index: 2;
        }

        .status-badge {
            position: absolute;
            bottom: -20px;
            left: -20px;
            background: #fff;
            padding: 1.5rem 2rem;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .status-badge p {
            color: #666;
            margin: 0;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .status-badge .status-text {
            color: var(--primary-color);
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pulse-dot {
            width: 10px;
            height: 10px;
            background: #28a745;
            border-radius: 50%;
            box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
            }
        }

        .btn-blindar {
            background: var(--accent-color);
            color: #fff;
            padding: 18px 35px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        .btn-blindar:hover {
            background: #e6001a;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(193, 0, 22, 0.3);
        }

        /* Seccion Auditorias Premium */
        .auditorias-premium {
            padding: 4rem 0 6rem 0;
            background: #fff;
        }

        .auditorias-container {
            background: #04072d;
            border-radius: 40px;
            padding: 5rem;
            color: #fff;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        }

        .auditorias-container h2 {
            font-size: 3.8rem;
            color: #fff;
            line-height: 1;
            margin-bottom: 2rem;
            text-transform: uppercase;
        }

        .auditorias-container h2 span.red {
            color: var(--accent-color);
        }

        .auditorias-container p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.8);
            max-width: 750px;
            margin-bottom: 3.5rem;
            line-height: 1.6;
        }

        .badges-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 4rem;
        }

        .badge-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 24px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 0.5px;
        }

        .badge-item strong {
            color: var(--accent-color);
            font-weight: 700;
        }

        .btn-blindar {
            background: var(--accent-color);
            color: #fff;
            padding: 20px 40px;
            border: none;
            border-radius: 12px;
            font-size: 1.15rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
        }

        .btn-blindar:hover {
            background: #e6001a;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(193, 0, 22, 0.4);
        }

        @media (max-width: 992px) {
            .auditorias-container h2 {
                font-size: 3rem;
            }

            .normativa-cards {
                grid-template-columns: 1fr;
            }
        }

        /* Seccion Proteccion Normativa Premium */
        .proteccion-normativa {
            padding: 6rem 0;
            background: #fff;
        }

        .normativa-title {
            font-size: 3rem;
            color: var(--primary-color);
            line-height: 1.1;
            margin-bottom: 2.5rem;
            text-transform: uppercase;
        }

        .normativa-title .red {
            color: var(--accent-color);
        }

        .normativa-text {
            font-size: 1.15rem;
            color: #555;
            max-width: 600px;
            margin-bottom: 3rem;
            line-height: 1.6;
        }

        .normativa-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .normativa-card {
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            gap: 15px;
            align-items: center;
            background: #fff;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
        }

        .normativa-card:hover {
            transform: translateY(-3px);
            border-color: rgba(193, 0, 22, 0.2);
        }

        .card-icon {
            width: 32px;
            height: 32px;
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-color);
            flex-shrink: 0;
        }

        .card-tag {
            display: block;
            font-family: var(--font-heading);
            font-weight: 700;
            font-size: 1rem;
            color: var(--primary-color);
            text-transform: uppercase;
            line-height: 1;
        }

        .card-desc {
            font-size: 0.85rem;
            color: #777;
            margin: 0 !important;
        }

        @media (max-width: 1200px) {
            .normativa-title {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 992px) {
            .auditorias-container h2 {
                font-size: 2.8rem;
            }

            .normativa-cards {
                grid-template-columns: 1fr;
            }

            .split-section {
                gap: 2rem;
            }

            .premium-title {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 768px) {

            /* General Layout Reset */
            .split-section {
                grid-template-columns: 1fr !important;
                padding: 3rem 0;
                gap: 2.5rem;
            }

            .container {
                padding: 0 1.5rem;
            }

            /* Section Specific Adjustments */
            .proteccion-normativa {
                padding: 4rem 0;
            }

            .normativa-title {
                font-size: 2.2rem;
            }

            .trazabilidad-premium {
                padding: 4rem 0;
            }

            .premium-title {
                font-size: 2.2rem;
            }

            .premium-text {
                font-size: 1.1rem;
            }

            .status-badge {
                position: relative;
                left: 0;
                bottom: 0;
                margin-top: 2rem;
                padding: 1rem;
                display: inline-block;
            }

            /* Auditorias - Stacking & Fonts */
            .auditorias-container {
                padding: 3rem 1.5rem;
                border-radius: 24px;
                text-align: center;
            }

            .auditorias-container h2 {
                font-size: 2.1rem;
                margin-bottom: 1.5rem;
            }

            .auditorias-container p {
                font-size: 1.1rem;
                margin-bottom: 2.5rem;
            }

            .badges-grid {
                justify-content: center;
                gap: 10px;
                margin-bottom: 3rem;
            }

            .badge-item {
                font-size: 0.75rem;
                padding: 8px 15px;
                width: 100%;
                justify-content: center;
            }

            .btn-blindar {
                width: 100%;
                justify-content: center;
                padding: 15px 20px;
                font-size: 1rem;
            }

            /* Hero Adjustments */
            .hero-title-custom {
                font-size: 2.4rem !important;
                line-height: 1.1;
            }

            .hero-text-custom {
                font-size: 1rem !important;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 1rem;
            }

            .hero-buttons .btn {
                width: 100%;
            }

            /* License Banner */
            .license-content {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }

            .license-logos {
                justify-content: center;
                gap: 2rem;
            }
        }

.ag-inline-82cc2c {
    display:none;visibility:hidden
}

.ag-inline-109891 {
    padding: 4rem 0;
}

.ag-inline-f7d79a {
    color: #fff; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 500;
}

.ag-inline-f79d45 {
    display: flex; gap: 15px;
}

.ag-inline-45ee3d {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-8d7197 {
    display:none;
}

.ag-inline-59447c {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-f99227 {
    display:none;
}

.ag-inline-37c01a {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-0663fc {
    display:none;
}

.ag-inline-78af60 {
    margin-bottom: 15px;
}

.ag-inline-fe9ad9 {
    color: #fff; text-decoration: underline; margin-right: 20px;
}

.ag-inline-13189f {
    color: #fff; text-decoration: underline;
}


/* Extracted from fumigacion-residencial-puebla.html */
/* Seccion Servicio Profesional Para Tu Hogar - Premium */
        .servicio-hogar {
            padding: 6rem 0;
            background: #fff;
        }

        .servicio-hogar .split-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5rem;
            align-items: center;
        }

        .servicio-hogar h2 {
            font-family: 'Oswald', sans-serif;
            font-size: 3.5rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--primary-color);
            line-height: 1.05;
            margin-bottom: 1.5rem;
        }

        .servicio-hogar p {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.7;
            margin-bottom: 2.5rem;
        }

        .mini-cards-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .mini-card {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .mini-card-icon {
            width: 36px;
            height: 36px;
            flex-shrink: 0;
            color: var(--accent-color);
            margin-top: 3px;
        }

        .mini-card-title {
            font-family: 'Oswald', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--primary-color);
            display: block;
            margin-bottom: 5px;
        }

        .mini-card-desc {
            font-size: 0.85rem;
            color: #777;
            line-height: 1.4;
            margin: 0;
        }

        .servicio-hogar .img-container {
            position: relative;
        }

        .servicio-hogar .img-container img {
            width: 100%;
            border-radius: 20px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
            object-fit: cover;
            display: block;
        }

        @media (max-width: 992px) {
            .servicio-hogar h2 {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 768px) {
            .servicio-hogar {
                padding: 4rem 0;
            }

            .servicio-hogar .split-layout {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .servicio-hogar h2 {
                font-size: 2.3rem;
            }

            .mini-cards-row {
                grid-template-columns: 1fr;
            }
        }

        /* Seccion Plagas Premium - Fondo Azul */
        .plagas-premium {
            background: #04072d;
            padding: 6rem 0;
        }

        .plagas-premium .section-header {
            text-align: left;
            margin-bottom: 4rem;
        }

        .plagas-premium .section-header h2 {
            font-family: 'Oswald', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            text-transform: uppercase;
            color: #fff;
            margin-bottom: 1rem;
        }

        .plagas-premium .section-header p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }

        .plagas-cards-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .plaga-card {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .plaga-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        }

        .plaga-card-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .plaga-card-body {
            padding: 2rem;
        }

        .plaga-card-label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
        }

        .plaga-card-label svg {
            color: var(--accent-color);
            flex-shrink: 0;
        }

        .plaga-card-label span {
            font-family: 'Oswald', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            text-transform: uppercase;
            color: #fff;
            letter-spacing: 1px;
        }

        .plaga-card-desc {
            color: rgba(255, 255, 255, 0.65);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .plaga-card-link {
            font-family: 'Oswald', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent-color);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.2s ease;
        }

        .plaga-card-link:hover {
            gap: 12px;
        }

        @media (max-width: 992px) {
            .plagas-cards-grid {
                grid-template-columns: 1fr;
            }

            .plagas-premium .section-header h2 {
                font-size: 2.4rem;
            }
        }

        @media (max-width: 768px) {
            .plagas-premium {
                padding: 4rem 0;
            }

            .plagas-premium .section-header h2 {
                font-size: 2rem;
            }
        }

.ag-inline-e51600 {
    display:none;visibility:hidden
}

.ag-inline-d1c240 {
    background-image: url('/img/hero-fumigacion-residencial-puebla.webp');
}

.ag-inline-90d1e4 {
    color: var(--accent-color);
}

.ag-inline-198e96 {
    text-align: left !important;
}

.ag-inline-836342 {
    color: var(--accent-color);
}

.ag-inline-873f6a {
    text-align: left !important; margin-left: 0 !important; max-width: 700px;
}

.ag-inline-50477d {
    padding: 4rem 0;
}

.ag-inline-4812de {
    text-align: left; margin-bottom: 3rem;
}

.ag-inline-a7ba75 {
    color: var(--accent-color);
}

.ag-inline-454944 {
    font-size: 1.1rem; color: #555; max-width: 800px;
}

.ag-inline-52ce83 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}

.ag-inline-fe54fe {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-b8e54b {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-12517c {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-4dfb6c {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-a25fdf {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-a1ebf2 {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-4a2a99 {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-2c1f0f {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-4a6e56 {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-e4c80c {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-97fb38 {
    background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-color); transition: transform 0.3s ease;
}

.ag-inline-befef5 {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem;
}

.ag-inline-fee096 {
    background: #04072d; padding: 5rem 0;
}

.ag-inline-ccfcc4 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center;
}

.ag-inline-134d31 {
    font-size: 2.2rem; margin-bottom: 1.5rem; line-height: 1.2; color: #fff;
}

.ag-inline-9abdac {
    color: var(--accent-color);
}

.ag-inline-bf7244 {
    font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 1.5rem;
}

.ag-inline-934a27 {
    list-style: none; padding-left: 0;
}

.ag-inline-b44c94 {
    margin-bottom: 1rem; position: relative; padding-left: 30px;
}

.ag-inline-77eda0 {
    color: var(--accent-color); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem;
}

.ag-inline-ea5107 {
    color: #fff;
}

.ag-inline-14d88d {
    color: rgba(255,255,255,0.75);
}

.ag-inline-2fb640 {
    margin-bottom: 1rem; position: relative; padding-left: 30px;
}

.ag-inline-d602b2 {
    color: var(--accent-color); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem;
}

.ag-inline-8c76d5 {
    color: #fff;
}

.ag-inline-4a781d {
    color: rgba(255,255,255,0.75);
}

.ag-inline-0d291d {
    margin-bottom: 1rem; position: relative; padding-left: 30px;
}

.ag-inline-67f44a {
    color: var(--accent-color); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem;
}

.ag-inline-4883bd {
    color: #fff;
}

.ag-inline-ffec6e {
    color: rgba(255,255,255,0.75);
}

.ag-inline-fe5d09 {
    margin-top: 2.5rem; color: var(--accent-color); font-size: 1.5rem;
}

.ag-inline-8feed9 {
    font-size: 1.1rem; color: rgba(255,255,255,0.75);
}

.ag-inline-df6a3f {
    color: #fff;
}

.ag-inline-59e67f {
    width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); object-fit: cover;
}

.ag-inline-70fc38 {
    background: #fff; padding: 4rem 0;
}

.ag-inline-df0dd8 {
    max-width: 900px; margin: 0 auto;
}

.ag-inline-ce802b {
    color: var(--primary-color); margin-bottom: 1.5rem;
}

.ag-inline-6121e5 {
    color: var(--accent-color);
}

.ag-inline-712e10 {
    color: #555; font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem;
}

.ag-inline-686405 {
    color: var(--accent-color);
}

.ag-inline-5d0d85 {
    font-size: 1.15rem; padding: 18px 40px;
}

.ag-inline-6cb04f {
    color: #fff; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 500;
}

.ag-inline-bc252e {
    display: flex; gap: 15px;
}

.ag-inline-a7b996 {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-4a0908 {
    display:none;
}

.ag-inline-75e525 {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-7aed9f {
    display:none;
}

.ag-inline-1e72cb {
    color: #fff; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
}

.ag-inline-135f55 {
    display:none;
}

.ag-inline-5804f1 {
    margin-bottom: 15px;
}

.ag-inline-82d247 {
    color: #fff; text-decoration: underline; margin-right: 20px;
}

.ag-inline-8d709b {
    color: #fff; text-decoration: underline;
}


/* Interactive Classes Replaced */
.hover-opacity { transition: opacity 0.3s; }
.hover-opacity:hover { opacity: 0.7 !important; }
.hover-transform { transition: transform 0.3s ease; }
.hover-transform:hover { transform: translateY(-5px) !important; }
