/* =================================================================
   VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ================================================================= */
:root {
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Paleta de colores renovada */
  --color-bg: #FFFFFF;
  --color-bg-light: #FFF7F5; /* Fondo crema/durazno muy suave */
  --color-text: #212529;
  --color-text-light: #6c757d;
  
  --color-primary: #0D6EFD; /* Azul para links y elementos de confianza */
  --color-accent: #FF7B54; /* Naranja suave para acentos y llamadas a la acción */
  
  /* Colores funcionales */
  --color-whatsapp: #25D366;
  --color-urgent: #DC3545;
  --color-border: #EAEAEA;
  --color-white: #FFFFFF;
  --star-color: #FFC107;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Espacio para el header fijo */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

p {
  margin-bottom: 1rem;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}


/* =================================================================
   LAYOUT PRINCIPAL (HEADER, SECCIONES, FOOTER)
   ================================================================= */
.main-header {
  background-color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.main-header .header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-section, .services-section, .testimonials-section, .coverage-section, .contact-section {
  padding: 5rem 0;
}

/* Fondos de sección alternados para más dinamismo */
.about-section, .testimonials-section, .contact-section {
  background-color: var(--color-bg-light);
}

.main-footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-contact-info a { color: var(--color-white); transition: opacity 0.2s; }
.footer-contact-info a:hover { opacity: 0.8; }
.footer-contact-info .separator { display: none; }


/* =================================================================
   COMPONENTES
   ================================================================= */

/* --- Header y Navegación --- */
.header__logo img { height: 40px; }
.main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-white); box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1); text-align: center; }
.main-nav.is-open { display: flex; flex-direction: column; padding: 1rem; }
.main-nav a { padding: 0.75rem 0; font-weight: 500; }
.nav__cta { font-weight: 600; }
.mobile-nav-toggle { display: block; background: none; border: none; cursor: pointer; z-index: 1001; }
.mobile-nav-toggle .hamburger { display: block; width: 25px; height: 3px; background: var(--color-text); position: relative; transition: all 0.2s ease-out; }
.mobile-nav-toggle .hamburger::before, .mobile-nav-toggle .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--color-text); transition: all 0.2s ease-out; }
.mobile-nav-toggle .hamburger::before { top: -8px; }
.mobile-nav-toggle .hamburger::after { bottom: -8px; }
.mobile-nav-toggle.is-active .hamburger { background: transparent; }
.mobile-nav-toggle.is-active .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
.mobile-nav-toggle.is-active .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Sección Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 0;
  text-align: center;
  color: var(--color-white);
  background-image: url('../images/destapaciones-ya.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 20, 30, 0.6);
  z-index: 1;
}
.hero__container {
  position: relative;
  z-index: 2;
}
.hero__tagline {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: var(--color-white);
}
.hero__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 1rem 0;
  font-weight: 400;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.hero__description {
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__cta-group { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.8rem 1.8rem; border-radius: 50px; font-family: var(--font-headings); font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: all 0.2s ease-out; cursor: pointer; text-align: center;
}
.cta-button .icon { width: 18px; height: 18px; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.cta-button--primary { background-color: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); animation: pulse 2.5s infinite; }
.cta-button--primary:hover { background-color: #E56A4A; border-color: #E56A4A; animation: none; }
.cta-button--secondary { background-color: transparent; color: var(--color-white); border-color: var(--color-white); }
.cta-button--secondary:hover { background-color: var(--color-white); color: var(--color-text); }
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
  50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(255, 123, 84, 0.4); }
  100% { transform: scale(1); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
}
.hero__trust-signals { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.hero__trust-signals span { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(0,0,0,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; backdrop-filter: blur(5px); }
.hero__trust-signals .trust-icon { width: 14px; height: 14px; opacity: 0.9; }

/* --- Sección Nosotros --- */
.about-content { display: grid; gap: 2rem; align-items: center; }
.about-image-container { position: relative; display: flex; align-items: center; justify-content: center; }
.about-image-container img { border-radius: 12px; box-shadow: 0 15px 35px rgba(45, 52, 60, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07); position: relative; z-index: 2; width: 100%; }
.about-image-decoration { position: absolute; width: 100%; height: 100%; background-color: var(--color-accent); border-radius: 12px; z-index: 1; transform: rotate(-4deg); transition: transform 0.3s ease-in-out; }
.about-image-container:hover .about-image-decoration { transform: rotate(2deg); }

/* --- Sección Servicios --- */
.services-intro { text-align: center; margin-bottom: 3rem; }
.services-intro .contact-bar { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.contact-pill { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; border-radius: 50px; color: var(--color-white); text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.contact-pill:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.contact-pill .icon { width: 24px; height: 24px; }
.contact-pill__text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.contact-pill__text span { font-size: 0.8rem; opacity: 0.9; }
.contact-pill__text strong { font-size: 1.1rem; }
.contact-pill--whatsapp { background-color: var(--color-whatsapp); }
.contact-pill--urgent { background-color: var(--color-urgent); }

.services-grid { display: grid; gap: 1.5rem; }
.service-item { background-color: var(--color-white); padding: 2rem; border: 1px solid var(--color-border); border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease; border-top: 4px solid transparent; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1); border-top-color: var(--color-accent); }
.service-item__icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background-color: rgba(13, 110, 253, 0.1); color: var(--color-primary); border-radius: 50%; margin-bottom: 1.5rem; }
.service-item__icon svg { width: 24px; height: 24px; }
.service-item__title { margin-bottom: 1rem; }


/* --- Sección Testimonios --- */
.testimonials-grid { display: grid; gap: 1.5rem; }
.testimonial-card { background-color: var(--color-white); padding: 2rem; border-radius: 8px; border: 1px solid var(--color-border); }
.testimonial-card__stars { color: var(--star-color); margin-bottom: 1rem; font-size: 1.2rem; }
.testimonial-card__title { font-size: 1rem; color: var(--color-primary); margin-bottom: 1rem; }
.testimonial-card__quote { font-style: italic; color: var(--color-text-light); border-left: 3px solid var(--color-accent); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.testimonial-card__author { display: flex; align-items: center; gap: 1rem; }
.testimonial-card__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.testimonial-card__author-info strong { display: block; }
.testimonial-card__author-info span { font-weight: 400; font-size: 0.9rem; color: var(--color-text-light); }

/* --- Sección Cobertura --- */
.coverage-areas-grid { display: grid; gap: 2rem; }
.area-column h4 { margin-bottom: 1rem; border-bottom: 2px solid var(--color-accent); padding-bottom: 0.5rem; }
.area-column p { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.5; }

/* --- Sección Contacto --- */
.contact-form-container { max-width: 800px; margin: 0 auto; }
.contact-form { display: grid; gap: 1.5rem; }
.contact-form .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.contact-form .form-group input,
.contact-form .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; }
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.2); }
.form-privacy-note { text-align: center; color: var(--color-text-light); font-size: 0.9rem; }
.form_submit { background-color: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.form_submit:hover { background-color: #E56A4A; border-color: #E56A4A; animation: none; }
.form-status { text-align: center; padding: 1rem; margin-top: 1.5rem; border-radius: 8px; font-weight: 500; display: none; }
.form-status.success { display: block; background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.form-status.error { display: block; background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }


/* --- Botón Flotante WhatsApp --- */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: var(--color-whatsapp); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 100; transition: transform 0.3s ease; animation: whatsappGlow 2.5s ease-in-out infinite; }
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes whatsappGlow {
    0% { box-shadow: 0 0 5px 0px rgba(37, 211, 102, 0.7); }
    50% { box-shadow: 0 0 25px 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 5px 0px rgba(37, 211, 102, 0.7); }
}

/* --- Animaciones --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.services-grid .service-item,
.testimonials-grid .testimonial-card,
.coverage-areas-grid .area-column { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.fade-in.is-visible .service-item,
.fade-in.is-visible .testimonial-card,
.fade-in.is-visible .area-column { opacity: 1; transform: translateY(0); }


/* =================================================================
   ESTILOS RESPONSIVE (MEDIA QUERIES)
   ================================================================= */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .section-title { font-size: 2.75rem; }
  .hero { text-align: left; }
  .hero__container, .hero__cta-group, .hero__description, .section-subtitle, .hero__trust-signals { margin-left: 0; margin-right: 0; justify-content: flex-start; text-align: left; }
  .hero__cta-group { flex-direction: row; }
  .footer-contact-info { flex-direction: row; gap: 2rem; }
  .footer-contact-info .separator { display: block; }
  .header__logo img { height: 50px; }
  .about-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .services-grid, .testimonials-grid, .coverage-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-group-full { grid-column: 1 / -1; }
  .contact-form button { grid-column: 1 / -1; max-width: 250px; justify-self: center; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; position: static; flex-direction: row; box-shadow: none; padding: 0; width: auto; }
  .main-nav a { margin: 0 1rem; padding: 0; }
  .nav__cta { background-color: rgba(13, 110, 253, 0.1); padding: 0.5rem 1rem; border-radius: 20px; }
  .nav__cta:hover { background-color: rgba(13, 110, 253, 0.2); }
  .mobile-nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .coverage-areas-grid { grid-template-columns: repeat(4, 1fr); }
}

