/* ESTRUCTURA: Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores de Bonds & Care */
  --azul-claro: #64b8ff;
  --azul-medio: #2a94e7;
  --azul-oscuro: #174b9e;
  --blanco-hueso: #F5F5DC;
  --texto-general: #333;
  
  /* Variables de Contraste y Efectos */
  --blanco-puro: #ffffff;
  --texto-brillo-sutil: 0 0 5px rgba(255, 255, 255, 0.5);
  --sombra-icono: 0 2px 2px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--blanco-hueso);
  overflow-x: hidden;
  position: relative;
  color: var(--texto-general);
}

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

/* ESTRUCTURA: Fondo de Huellitas SVG */
.paws-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Cada huella individual es posicionada por JS */
.paw-item {
  position: absolute;
  will-change: transform;
  transition: none;
}

.paw-item svg {
  width: 100%;
  height: 100%;
}

/* ESTRUCTURA: Fondo Parallax (patrón) */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image: url('fondohero.jpg');
  background-size: 200px 200px;
  pointer-events: none;
}

/* ESTRUCTURA: Decoración de Logo */
.bone-decoration {
  position: fixed;
  right: 5%;
  top: 50px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.1;
  transition: all 1s ease-out;
  width: 60px;
  height: 60px;
}

.bone-decoration .subtle-icon {
   width: 100%;
   height: 100%;
   object-fit: contain;
   color: var(--azul-oscuro); 
}

/* INICIO DE SECCIÓN: Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: white;
  padding: 16px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar.compact {
  padding: 8px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.nav-links a {
  color: var(--azul-oscuro);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--azul-medio);
}

.btn-primary {
  padding: 8px 24px;
  background-color: var(--azul-medio);
  color: white;
  border: none;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--azul-oscuro);
  transform: scale(1.05);
}

/* INICIO DE SECCIÓN: Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
  color: var(--blanco-puro);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1; 
  background-image: url('fondohero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  will-change: transform; 
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--azul-oscuro); 
  opacity: 0.65; 
  mix-blend-mode: multiply; 
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-title {
  font-size: 64px; 
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 26px; 
  color: var(--blanco-puro); 
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); 
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-cta {
  padding: 16px 32px;
  background-color: white;
  color: var(--azul-oscuro);
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-cta:hover {
  background-color: var(--azul-claro);
  color: white;
  transform: scale(1.05);
}

/* INICIO DE SECCIÓN: Stats */
.stats-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--azul-claro);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 52px; 
  font-weight: 700;
  color: var(--azul-oscuro); 
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3); 
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 18px;
  color: var(--azul-oscuro); 
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); 
}

/* INICIO DE SECCIÓN: About */
.about-section {
  position: relative;
  padding: 80px 0;
  background-color: white; 
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--azul-oscuro);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 18px;
  color: var(--texto-general);
  margin-bottom: 16px;
  line-height: 1.7; 
}

.about-text p strong {
    font-weight: 700;
    color: var(--azul-oscuro); 
    font-family: 'Poppins', sans-serif; 
}

.about-image {
  background-color: var(--azul-medio);
  border-radius: 24px;
  height: 450px; 
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 30px;
  text-align: center;
}

.image-placeholder img {
  max-width: 100%;
  height: auto;
}

.image-placeholder p {
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.about-image:before {
  content: ' ';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  opacity: 0.9;
}


/* INICIO DE SECCIÓN: Llamada a la Acción (CTA) */

.cta-section {
  padding: 60px 0;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cta-section h3 {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 32px;
  font-weight: 400;
}

.cta-confidence {
  background-color: var(--azul-medio); 
  color: var(--blanco-puro);
}

.cta-confidence h3, .cta-confidence p {
  color: var(--blanco-puro);
}

.cta-intention {
  background-color: var(--azul-oscuro); 
  color: var(--blanco-puro);
}

.cta-intention h3, .cta-intention p {
  color: var(--blanco-puro);
}

.btn-secondary-cta {
  background-color: var(--azul-claro); 
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-claro);
}

.btn-secondary-cta:hover {
  background-color: var(--blanco-puro);
  transform: scale(1.05);
  border-color: var(--blanco-puro);
  color: var(--azul-oscuro);
}


/* INICIO DE SECCIÓN: Services */
.services-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--blanco-hueso); 
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--azul-oscuro);
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 32px;
}

.service-card {
  background-color: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-align: center;
  border: 1px solid var(--azul-claro);
}

.service-card:hover {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--azul-medio);
}

/* Icono SVG clásico (por si se necesita) */
.service-icon {
  color: var(--azul-medio);
  margin-bottom: 16px;
}

.service-icon svg {
   width: 48px;
   height: 48px;
   stroke-width: 2.5;
   filter: drop-shadow(var(--sombra-icono)); 
}

/* Emoji como icono de servicio */
.service-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}

.service-card:hover .service-emoji {
  transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--azul-oscuro);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.service-card p {
  color: var(--texto-general);
  line-height: 1.4;
  font-size: 16px;
}

/* INICIO DE SECCIÓN: Mapa */
.map-container {
  padding: 80px 0;
  text-align: center;
  background-color: white;
}

.map-container h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--azul-oscuro);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 40px;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* INICIO DE SECCIÓN: Testimonios */
.testimonials-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--azul-medio); 
}

.testimonials-section .section-title {
  color: white;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background-color: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 100px;
  color: var(--azul-claro);
  opacity: 0.5;
  font-family: serif;
  line-height: 1;
  z-index: 1;
}

.testimonial-text {
  color: var(--texto-general);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-align: right;
  display: block;
}

/* INICIO DE SECCIÓN: Footer */
.footer {
  position: relative;
  background-color: var(--azul-oscuro);
  color: var(--blanco-puro); 
  padding: 60px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-column h3 {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
  text-shadow: var(--texto-brillo-sutil); 
}

.footer-column h4 {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
  text-shadow: var(--texto-brillo-sutil);
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p:before {
  content: '•';
  color: var(--azul-claro);
  font-size: 20px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-icon {
  color: var(--azul-claro);
  text-decoration: none;
  transition: color 0.3s;
}

.social-icon:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--azul-medio); 
  color: rgba(255, 255, 255, 0.7); 
}

/* ESTRUCTURA: Animaciones y Responsive */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

[data-animate].visible {
  opacity: 1 !important;
}

[data-animate="fade-up"] {
  transform: translateY(50px);
}

[data-animate="fade-up"].visible {
  transform: translateY(0) !important;
}

[data-animate="slide-right"] {
  transform: translateX(-50px);
}

[data-animate="slide-right"].visible {
  transform: translateX(0) !important;
}

[data-animate="slide-left"] {
  transform: translateX(50px);
}

[data-animate="slide-left"].visible {
  transform: translateX(0) !important;
}

/* Media Queries para Móviles */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }

  .hero-title {
      font-size: 42px;
  }

  .hero-subtitle {
      font-size: 20px;
  }

  .section-title {
      font-size: 36px;
  }

  .about-text h2 {
      font-size: 36px;
  }

  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
       text-align: center;
  }
  
  .contact-info p {
       justify-content: center;
  }

  .cta-section {
      padding: 40px 0;
  }
  .cta-section h3 {
      font-size: 24px;
  }
  .cta-section p {
      font-size: 16px;
  }

  .service-emoji {
    font-size: 40px;
  }
}

/* ============================================================
   Huellitas — Sección #nosotros
   Agrega esto a tu archivo CSS principal
   ============================================================ */

   .about-section {
    position: relative;   /* necesario para contener el canvas */
    overflow: hidden;     /* recorta huellitas fuera de la sección */
  }
  
  .about-paws-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;           /* debajo del contenido */
    pointer-events: none; /* no interfiere con clics */
  }
  
  /* Asegura que el contenido quede encima del canvas */
  .about-section .container {
    position: relative;
    z-index: 1;
  }