

/* =======================================
   ESTILOS DE SECCIÓN 'SOBRE NOSOTROS' (Diseño Original y Ordenado)
   ======================================= */

.sobre-nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px; /* Padding general para el contenedor */
}

/* Título de la sección */
.sobre-nosotros-container h2 {
    text-align: left; /* Título dentro de la caja de texto */
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333; /* Color oscuro para el título de la subsección */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
    display: inline-block;
}

/* Cada bloque (texto + imagen) */
.nosotros-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    padding: 20px 0; /* Padding interno */
}

/* Estilo para invertir el orden (Texto derecha, Imagen izquierda) */
.nosotros-section.reverse-layout {
    flex-direction: row-reverse;
}

/* Texto */
.nosotros-texto {
    flex: 1;
    min-width: 300px;
}

.nosotros-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Lista de lo que ofrecemos */
.nosotros-texto ul {
    list-style: disc; /* Usamos viñetas reales */
    padding-left: 20px;
    margin: 15px 0 15px 20px;
}

.nosotros-texto ul li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #333;
}

/* Imágenes */
.nosotros-imagen {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.nosotros-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nosotros-imagen img:hover {
    transform: scale(1.02); /* Efecto más sutil */
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
    .nosotros-section,
    .nosotros-section.reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-texto {
        order: 2;
    }

    .nosotros-imagen {
        order: 1;
        margin-bottom: 20px;
    }

    .sobre-nosotros-container h2 {
        text-align: center;
        width: 100%;
    }
    
    .nosotros-texto ul {
        text-align: left;
    }
}

/* ====== SOBRE NOSOTROS ====== */
.sobre-nosotros {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Imagen de portada arriba de la sección */
.sobre-nosotros .nosotros-portada {
  width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.sobre-nosotros .nosotros-portada img {
  width: 100%;
  height: auto;
  max-height: 450px; /* puedes ajustar la altura para que se vea similar al inicio */
  object-fit: cover; /* recorta sin deformar */
  border-radius: 8px; /* mismo estilo que inicio */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* sombra elegante */
}

/* Título principal */
.sobre-nosotros h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
}

/* Portada de Sobre Nosotros igual que la portada de Inicio */
.nosotros-portada {
  width: 100%;
  height: auto; /* que se adapte a la altura natural */
  overflow: hidden;
}

.nosotros-portada img {
  width: 100%;
  height: auto;       /* mantiene proporciones de la imagen */
  object-fit: cover;  /* asegura que siempre se recorte bien */
  display: block;
  max-height: 600px;  /* opcional: limita altura en pantallas grandes */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 15px 30px;
}
.header .logo img {
    height: 60px;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.nav a.active {
    border-bottom: 2px solid #ff9900;
}

/* ====== Estilos generales ====== */
body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

/* === CONTACTO === */
.contacto-page {
  font-family: 'Montserrat', sans-serif;
  background: #f6f8fa;
  padding: 60px 20px;
  color: #1a1a1a;
}

.contact-hero {
  text-align: center;
  margin-bottom: 50px;
}

.contact-hero h1 {
  font-size: 2.4rem;
  color: #153b6b;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #555;
}

/* === Layout principal === */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Formulario === */
.form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.form-wrapper h2 {
  font-size: 1.5rem;
  color: #153b6b;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
}

.form-wrapper input,
.form-wrapper textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
  border-color: #153b6b;
  outline: none;
}

.btn-enviar {
  display: inline-block;
  background: #153b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-enviar:hover {
  background: #1e4b88;
}

/* === Información lateral === */
.info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-block, .map-block, .social-block {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.info-block h3, .social-block h3 {
  color: #153b6b;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-block li {
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
}

.map-block iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    order: 1;
  }

  .info-wrapper {
    order: 2;
  }
}



/* accesibilidad: contenido visible para lectores pero oculto visualmente */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.nosotros-texto ul {
  list-style: none;   /* Quita las viñetas */
  padding-left: 0;    /* Elimina la sangría izquierda */
  margin: 0;          /* Opcional: quita márgenes extra */
}

.nosotros-texto li {
  margin-bottom: 8px; /* Espacio entre elementos de la lista */
}

/* Ajuste específico para imágenes en Sobre Nosotros */
.nosotros-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.nosotros-section .nosotros-texto {
  flex: 1;
  max-width: 50%;
  padding: 15px;
}

.nosotros-section .nosotros-imagen {
  flex: 1;
  max-width: 50%;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.nosotros-section .nosotros-imagen img {
  width: 100%;        /* hace que todas las imágenes usen el mismo ancho */
  max-width: 400px;   /* controlas el tamaño máximo para que no se desborde */
  height: auto;
  object-fit: contain; /* mantiene proporción */
}

/* --- Animación de carga moderna --- */
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.loader-dots span {
  width: 12px;
  height: 12px;
  background: #135710;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-text {
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  animation: fade 1.5s ease-in-out infinite;
}

@keyframes fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Check de éxito */
.checkmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  animation: pop 0.4s ease;
}

.checkmark span {
  color: #28a745;
  font-size: 2.5rem;
  line-height: 1;
  animation: appear 0.5s ease;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes appear {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}


/* Blog Section */
.blog-section {
  padding: 60px 20px;
  background-color: #fafafa;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #135710;
  font-family: 'Montserrat', sans-serif;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post h3 {
  font-size: 1.4rem;
  margin: 15px;
  color: #444;
}

.blog-post p {
  font-size: 1rem;
  margin: 0 15px 15px;
  color: #666;
}

.blog-btn {
  display: inline-block;
  margin: 0 15px 20px;
  padding: 10px 20px;
  background: #0d5107;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-btn:hover {
  background: #007c3c;
}

.blog-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-detail h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #135710;
}

.blog-detail h2 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #333;
}

.blog-detail p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

.blog-detail img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
}

.blog-detail ul {
  margin-left: 20px;
  padding-left: 20px;
  color: #444;
  line-height: 1.6;
}


/* Estilo del botón */
#btnTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 16px;
  font-size: 18px;
  background: #135710;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#btnTop:hover {
  background: #0a3d0a;
}

/* Botón dark mode */
#darkModeBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #135710;
  color: #fff;
  cursor: pointer;
}

.dark-mode {
  background: #111;
  color: #eee;
}
.dark-mode .blog-detail {
  background: #222;
  color: #ddd;
}

/* ====== Sección FAQ ====== */

   /* ===== Estilos de FAQ mejorados ===== */
      .faq-section {
        max-width: 900px;
        margin: 60px auto;
        padding: 0 20px;
        font-family: 'Montserrat', sans-serif;
      }

      .faq-section h1 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: #135710;
      }

      .faq-question {
        width: 100%;
        background: #f5f5f5;
        border: none;
        padding: 15px 20px;
        text-align: left;
        font-size: 1.1rem;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        margin-bottom: 8px;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .faq-question:hover {
        background: #e6e6e6;
      }

      .faq-item.active .faq-question {
        background: #135710;
        color: #fff;
      }

      .faq-answer {
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        transition: all 0.4s ease;
        font-size: 1rem;
        line-height: 1.6;
      }

      .faq-item.active .faq-answer {
        max-height: 500px;
        margin-bottom: 15px;
        padding-top: 10px;
      }

      .faq-question .icon {
        font-size: 1.3rem;
        transition: transform 0.3s ease;
      }

      .faq-item.active .icon {
        transform: rotate(180deg);
      }


      /* ========================
   Ajustes globales
======================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================
   Sección Blog/Recomendaciones
======================== */
.blog-section {
  padding: 40px 20px;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blog-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.blog-post img {
  border-radius: 8px;
  margin-bottom: 15px;
  width: 100%;
  height: auto;
}

.blog-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 15px;
  background: #444;
  color: #fafafa;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background 0.3s ease;
}

.blog-btn:hover {
  background: #222;
}


/* =========================
   Ajustes responsive extra
   ========================= */

/* Móviles y pantallas pequeñas */
@media (max-width: 768px) {

  /* Recomendaciones */
  .recomendaciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .recomendaciones .item {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Preguntas frecuentes */
  .preguntas {
    padding: 10px;
  }
  .preguntas .pregunta {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Blogs */
  .blog, .blog-list, .blog-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
  }
  .blog img, .blog-item img {
    max-width: 100%;
    height: auto;
  }
  .blog .texto, .blog-item .texto {
    width: 100%;
  }
}


/* ===== Estilos FAQ Responsive ===== */
.faq-section {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #135710;
  color: #fff;
  padding: 15px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #0d5107;
}

.faq-answer {
  display: none;
  padding: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .faq-section h1 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 12px;
  }

  .faq-answer {
    font-size: 0.9rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 10px;
  }

  .faq-question {
    font-size: 0.9rem;
  }
}

/* ===== Recomendaciones (Blog) Responsive ===== */
.blog-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #135710;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blog-post {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 350px;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.blog-post h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-post p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #555;
}

.blog-btn {
  display: inline-block;
  background: #135710;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-btn:hover {
  background: #0d5107;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .blog-post {
    flex: 1 1 calc(45% - 20px);
  }
}

@media (max-width: 768px) {
  .blog-post {
    flex: 1 1 100%;
    max-width: 100%;
  }
}





/* ===== Recomendaciones (Blog) Responsive ===== */
.blog-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #135710;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blog-post {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 350px;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.blog-post h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-post p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #555;
}

.blog-btn {
  display: inline-block;
  background: #135710;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-btn:hover {
  background: #0d5107;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .blog-post {
    flex: 1 1 calc(45% - 20px);
  }
}

@media (max-width: 768px) {
  .blog-post {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


@media (max-width: 480px) {
  .blog-detail h1 {
    font-size: 1.4rem;
  }

  .blog-btn {
    width: 100%;
    text-align: center;
  }
}


@media (max-width: 480px) {
  .faq-section h1 {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .faq-question .icon {
    font-size: 1rem;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

header {
  background: #0d5107;
  color: white;
  padding: 20px;
  text-align: center;
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: inherit;
}

strong, b {
    font-weight: bolder;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    color: #333;
    background: #f4f4f4;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* =========================
   LAYOUT GENERAL
   ========================= */
.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 18px; 
}
.site-header { 
    background: #0d5107; 
    color: #fff; 
    padding: 14px 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}
.header-inner { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}
.brand-logo { 
    height: 64px; 
    width: auto; 
    object-fit: contain; 
    border-radius: 8px; 
    background: #fff; 
    padding: 6px; 
}
.site-title { 
    font-size: 1.35rem; 
    font-weight: 700; 
    margin-bottom: 6px; 
}
.contactos { 
    font-size: 0.9rem; 
    opacity: 0.9; 
}

/* =========================
   BUSCADOR INTEGRADO EN HEADER
   ========================= */

/* Estilo para el contenedor general en el header */
#search-container-header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50px; /* Forma de píldora */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px; /* Ancho por defecto para escritorio */
    max-width: 100%;
    padding: 8px 15px;
    margin: 10px 0;
}

/* Icono de Lupa */
#search-container-header svg {
    min-width: 20px;
    height: 20px;
    fill: #0d5107; 
    margin-right: 10px;
}

/* Campo de entrada */
#floating-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0;
    font-size: 1rem;
    color: #333;
}

/* Ajuste para que el input tome el 100% del ancho del contenedor en la rejilla */
.jss96 {
    display: flex;
    justify-content: flex-end; /* Alinea el buscador a la derecha del header */
    align-items: center;
}

/* Responsive para centrar y hacerlo más ancho en móvil */
@media (max-width: 768px) {
    .jss96 {
        justify-content: center; /* Centrar en pantallas pequeñas */
        order: 3; /* Asegura que aparezca debajo del logo y menú hamburguesa */
        flex-basis: 100%;
        max-width: 100%;
    }
    #search-container-header {
        width: 90vw; /* Más ancho en móvil */
        margin: 10px auto;
    }
}

/* =========================
   GRID DE MARCAS (CATÁLOGO)
   ========================= */
.catalogo-marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.catalogo-marca-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}
.catalogo-marca-item:hover {
    box-shadow: 0 8px 25px rgba(16,24,40,0.1);
}

/* Encabezado de marca */
.marca-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #f6f6f6 100%);
}
.marca-logo {
    width: 110px;
    max-height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.marca-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.05rem;
}
.marca-toggle {
    background: #0d5107;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}
.marca-toggle:hover {
    background: #0a3d0a;
}

/* Contenido de la marca (Acordeón principal) */
.marca-content { 
    /* ESTO HACE QUE SE PLIEGUE Y DESPLIEGUE SIN TRANSICIÓN SUAVE */
    display: none; 
    padding: 12px 14px; 
    border-top: 1px solid #f1f1f1; 
}
.marca-content.open { 
    /* ESTADO ABIERTO */
    display: block; 
}

/* =========================
   REPUESTOS INDIVIDUALES (Acordeón secundario)
   ========================= */
.repuesto-item { 
    margin-bottom: 10px; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #fbfbfb; 
    border: 1px solid #eee;
    transition: background 0.2s;
}
.repuesto-item:hover {
    background: #f2f6f2;
}

.repuesto-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    color: #333;
    font-size: 1rem;
}
.repuesto-btn span:last-child { /* Icono +/− */
    font-size: 1.2rem;
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

/* Detalle del repuesto (ficha) */
.repuesto-detalle {
    /* ESTO HACE QUE SE PLIEGUE Y DESPLIEGUE */
    display: none; 
    padding: 12px 14px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.repuesto-detalle.open { 
    /* ESTADO ABIERTO */
    display: block; 
}

.repuesto-ficha { 
    display: flex; 
    gap: 14px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}
.repuesto-ficha img { 
    width: 150px; 
    height: 110px;   
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid #eee; 
}
  
.repuesto-info { 
    flex: 1; 
    min-width: 180px; 
}
.repuesto-info h4 { 
    font-size: 1rem; 
    margin: 0 0 6px 0; 
    color: #0d5107;
}
.repuesto-info p { 
    margin-bottom: 8px; 
    color: #444; 
    font-size: 0.95rem; 
    line-height: 1.4;
}
.whatsapp-btn {
    display: inline-flex; 
    gap: 8px; 
    align-items: center;
    text-decoration: none; 
    background: #25d366; 
    color: #fff;
    padding: 8px 12px; 
    border-radius: 8px; 
    font-weight: 700;
    transition: background 0.2s ease;
}
.whatsapp-btn:hover {
    background: #128c7e;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .header-right {
        margin-top: 10px;
    }
    .brand-logo {
        height: 50px;
    }
    .catalogo-marcas-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .repuesto-ficha { 
        flex-direction: column; 
        align-items: center; 
    }
    .repuesto-ficha img { 
        width: 100%; 
        max-width: 250px; 
        height: auto; 
    }
 
}
/* =======================================
   FIX: FORZAR DESACTIVACIÓN DE LÍNEA VERDE EN EL MENÚ
   ======================================= */
/* * Anulamos la línea verde del elemento "activo" si la clase 'jss94' 
 * se aplicó incorrectamente a más de un elemento.
 * * Si deseas que *ningún* elemento del menú tenga la línea verde, usa este estilo.
 * Si quieres que la línea aparezca *solo* en la página actual (Catálogo),
 * debes corregir las clases en el HTML, pero esta solución la eliminará.
 */
.jss94.jss93 {
    border-bottom-color: transparent !important; /* Quita el borde inferior (línea) */
    color: #444444 !important; /* Restablece el color del texto al color normal */
}


/* ====== BUSCADOR ANIMADO ====== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
}

#search-toggle {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-icon {
  width: 22px;
  height: 22px;
  fill: #084c24;
  transition: transform 0.3s ease;
}

#search-toggle.active .search-icon {
  transform: rotate(90deg);
}

#search-input {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
  font-size: 1rem;
  border-radius: 30px;
  padding: 0;
  height: 44px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: width 0.3s ease, opacity 0.2s ease;
}

/* Cuando está activa */
.search-box.active #search-input {
  width: 200px;
  opacity: 1;
  padding: 0 15px 0 45px;
}

/* Animación de giro cuando busca */
.search-icon.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Adaptable en pantallas pequeñas */
@media (max-width: 600px) {
  .search-box.active #search-input {
    width: 140px;
  }
}

/* =========================
   CATALOGO DE MARCAS (GRID)
   ========================= */

/* Transición para el contenido principal de la marca */
.catalogo-marca-item .marca-content { 
    /* Eliminamos el display: none; para usar max-height */
    max-height: 0; /* Cerrado por defecto */
    overflow: hidden;
    padding: 0 14px; /* Eliminamos el padding vertical para que la animación sea desde 0 */
    border-top: 1px solid #f1f1f1;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Añadimos la transición */
}

/* Estado abierto de la marca */
.catalogo-marca-item .marca-content.open { 
    max-height: 10000px; /* Un valor muy grande para simular altura automática */
    padding: 12px 14px; /* Añadimos el padding al abrir */
}

/* Transición para el detalle del repuesto individual */
.repuesto-item .repuesto-detalle {
    /* Eliminamos el display: none; para usar max-height */
    max-height: 0; /* Cerrado por defecto */
    overflow: hidden;
    padding: 0 14px; /* Eliminamos el padding vertical */
    border-top: 1px solid #e0e0e0;
    background: #fff;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; /* Transición más rápida */
}

/* Estado abierto del detalle del repuesto */
.repuesto-item .repuesto-detalle.open { 
    max-height: 500px; /* Altura suficiente para mostrar el contenido */
    padding: 12px 14px; /* Añadimos el padding al abrir */
}

/* Ajuste del botón de repuesto para que el icono gire */
.repuesto-btn span:last-child {
    font-size: 1.2rem;
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.2s ease; /* Transición para el icono */
    transform: rotate(0deg); /* Estado inicial (cruz horizontal) */
}

/* Gira el icono de "+" a "−" al abrir el detalle */
.repuesto-item .repuesto-detalle.open + .repuesto-btn span:last-child, 
.repuesto-item .repuesto-detalle.open + .repuesto-btn span:last-child {
    transform: rotate(180deg); /* Opcional: Gira el icono para indicar cierre */
}

/* --- ESTILOS DE REPUESTO INDIVIDUAL (FICHA) --- */

/* Contenedor del detalle de repuesto - Habilita la animación */
.repuesto-item .repuesto-detalle {
    max-height: 0; /* Cerrado por defecto */
    overflow: hidden;
    padding: 0 14px; 
    border-top: 1px solid #e0e0e0;
    background: #fff;
    /* Transición para un despliegue suave (más rápido que las marcas) */
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; 
}

/* Estado abierto */
.repuesto-item .repuesto-detalle.open { 
    max-height: 500px; /* Altura suficiente para mostrar el contenido */
    padding: 12px 14px; /* Añadir padding vertical al abrir */
}

/* --- ESTILOS DEL BOTÓN REPUESTO (Ícono) --- */

.repuesto-btn span:last-child { 
    font-size: 1.2rem;
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.2s ease; 
    transform: rotate(0deg); 
}

.repuesto-btn[aria-expanded="true"] span:last-child {
    transform: rotate(45deg);
}

.repuesto-ficha img {
  display: none !important;
}



/* === FOOTER COMPACTO === */
.footer {
  background-color: #0d5107;
  color: #fafafa;
  padding: 40px 20px 15px;
  font-family: "Montserrat", sans-serif;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  /* text-align: left; */
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #a8ffb0;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-logo {
  width: 70px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #e8f6e9;
}

/* Contacto */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  color: #fafafa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.contact-list img {
  width: 18px;
  height: 18px;
}

.contact-list a:hover {
  color: #a8ffb0;
}

/* Enlaces */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #fafafa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a8ffb0;
}

/* Botón garantía */
.garantia-btn {
  background-color: transparent;
  border: 1px solid #fafafa;
  color: #fafafa;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.garantia-btn:hover {
  background-color: #007c3c;
  border-color: #007c3c;
  color: #fff;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.social-icons img {
  width: 28px;
  height: 28px;

  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  margin-top: 25px;
  font-size: 0.85rem;
  color: #cde8cf;
}

/* Modal garantía */
.modal-garantia {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  position: relative;
  background-color: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: left;
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

.cerrar-modal:hover {
  color: #0d5107;
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    text-align: center;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-list a {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
}


/* Animaciones suaves */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.9);}
  to {transform: scale(1);}
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .footer-section h3 {
    font-size: 1.1rem;
  }
  .footer {
    text-align: center;
  }
  .contact-list a {
    justify-content: center;
  }
}


/* =========================
   HEADER Y NAVEGACIÓN
   ========================= */

/* Contenedor principal del header */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Menú de navegación */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px; /* Espacio entre elementos */
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

/* Línea animada debajo del enlace */
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d5107; /* Color verde corporativo */
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: #0d5107;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Estilo para la página activa */
.nav-list a.active {
  color: #0d5107;
  font-weight: 700;
}

.nav-list a.active::after {
  width: 100%;
}

/* Botón de menú para móviles (hamburguesa) */
.menu-toggle {
  display: none; /* Oculto en escritorio */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}


/* =========================
   ESTILOS RESPONSIVOS
   ========================= */

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Visible en móviles */
  }

  .nav-list {
    display: none; /* Oculto por defecto en móviles */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .nav-list.active {
    display: flex; /* Se muestra al hacer clic */
  }

  .nav-list a {
    font-size: 24px; /* Letra más grande para mejor legibilidad */
  }

  /* Animación del botón de hamburguesa a "X" */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* =========================
   SECCIÓN DE SERVICIOS MEJORADA
   ========================= */
.services-section {
  padding: 60px 20px;
  background-color: #f9f9f9; /* Un fondo ligeramente gris para destacar la sección */
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: 2.5rem;
  color: #135710; /* Verde corporativo */
  margin-bottom: 10px;
}

.services-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  /* Crea columnas flexibles que se adaptan al tamaño */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; /* Espacio entre las tarjetas */
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Asegura que la imagen no se salga del borde redondeado */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px); /* Efecto de elevación al pasar el mouse */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

.service-content {
  padding: 25px;
  flex-grow: 1; /* Permite que el contenido crezca y ocupe el espacio */
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.service-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  flex-grow: 1;
}

/* ===================================================================
   ESTILOS FINALES - CÓDIGO LIMPIO
   =================================================================== */

/* --- Contenedores Generales --- */
.intro-final, .features-final {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- 1. Sección de Introducción --- */
.intro-container-final {
  display: flex;
  gap: 40px;
  align-items: center;
}

.intro-text-final {
  flex: 3; /* Más espacio para el texto */
}

.intro-text-final h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
}

.intro-text-final h3 {
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 1rem;
}

.intro-text-final p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.intro-image-final {
  flex: 2; /* Menos espacio para la imagen */
  text-align: center;
}

.intro-image-final img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


/* --- 2. Sección de Características --- */
.feature-row-final {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px; /* Espacio entre cada fila */
}

.feature-image-wrapper-final {
  flex-shrink: 0;
}

.feature-image-wrapper-final img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-text-final h4 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.feature-text-final p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* --- 3. Sección de Ubicación --- */
.location-final {
  position: relative;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  background-image: url('img/imagenubicacion.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Cambiado de 'fixed' a 'scroll' para mejor compatibilidad */
  text-align: center;
  color: #fff;
}

.location-overlay-final {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Capa oscura para legibilidad */
  z-index: 1;
}

.location-content-final {
  position: relative;
  z-index: 2;
}

.location-content-final h1 {
  font-size: 2.8rem;
  margin: 0;
}

.location-content-final p {
  font-size: 1.2rem;
  margin: 10px 0 25px 0;
  max-width: 500px;
}

.location-button-final {
  background-color: #fafafa;
  color: #444444;
  border: 1px solid #fafafa;
  padding: 15px 50px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s, color 0.3s;
}

.location-button-final:hover {
  background-color: transparent;
  color: #fafafa;
}

/* --- Responsive para Móviles --- */
@media (max-width: 768px) {
  .intro-container-final {
    flex-direction: column-reverse;
  }
  
  .intro-text-final {
    text-align: center;
  }
  
  .feature-row-final {
    flex-direction: column;
    text-align: center;
  }
  
  .location-content-final h1 {
    font-size: 2.2rem;
  }

  .location-content-final p {
    font-size: 1rem;
  }
}

/* ===================================================================
   ESTILOS HERO BANNER (PORTADA) MEJORADO
   Reemplaza la estructura compleja anterior (jss98, jss106, etc.)
   =================================================================== */

.hero-banner {
    /* 1. Fondo de imagen con efecto overlay y parallax */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/imagen1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: fixed; /* Este es el truco para el efecto parallax */
    
    /* 2. Dimensiones y centrado de contenido */
    min-height: calc(100vh - 80px); /* Ocupa casi toda la altura de la ventana */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
    z-index: 97; 
}

.hero-content {
    max-width: 900px;
    color: #fafafa; /* Blanco */
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem; /* Título principal grande */
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.8rem; /* Subtítulo */
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Botón de Contacto (Clase Limpia) */
.btn-whatsapp {
    background-color: #0d5107; /* Verde oscuro (ajustado para coincidir con tu color) */
    padding: 15px 50px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease; 
}

.btn-whatsapp:hover {
    background-color: #007c3c; /* Un verde más brillante al pasar el ratón */
    transform: translateY(-3px); 
}

.hero-contact-icon {
    margin-top: 20px;
    text-align: center;
}

/* Media Query para tamaños de pantalla pequeños */
@media (max-width: 768px) {
    .hero-banner {
        min-height: calc(100vh - 60px); 
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .btn-whatsapp {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ===================================================================
   ESTILOS ESPECÍFICOS POR PÁGINA
   Sobrescribe la imagen de fondo para la sección 'Sobre Nosotros'
   =================================================================== */

.hero-sobre-nosotros {
    /* Usamos la imagen correcta que se encontraba en el original sobre-nosotros.html */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/sobre-nosotros.jpg);
    /* Ajustes visuales que definimos antes */
    min-height: 400px; 
}

/* ===================================================================
   ESTILOS MEJORADOS PARA SECCIÓN DE UBICACIÓN
   =================================================================== */

.location-section {
  /* Fondo y efecto visual */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; 
  position: relative;
  overflow: hidden; /* Para contener la imagen si hay movimiento */
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  
  /* Imagen de Fondo + Capa Oscura (Overlay) */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/imagenubicacion.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Mantenemos el scroll normal para evitar problemas de rendimiento, 
     pero si quieres el efecto parallax, cambia a: background-attachment: fixed; */
  background-attachment: scroll; 
}

/* Contenido (texto y botón) */
.location-content {
  position: relative;
  z-index: 2; /* Asegura que el contenido esté por encima de la capa oscura */
  max-width: 600px;
}

.location-title {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 900;
}

.location-address {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Estilo del Botón */
.location-button {
  background-color: #fafafa; /* Fondo blanco */
  color: #0d5107; /* Texto verde corporativo */
  border: none;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.location-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .location-title {
    font-size: 2rem;
  }
}


/* ===================================================================
   ESTILOS PARA EL BANNER DE COOKIES
   =================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.95); /* Gris oscuro semi-transparente */
    color: #fff;
    padding: 15px 20px;
    z-index: 2000; /* Asegura que esté por encima de todo (incluyendo el modal) */
    transform: translateY(100%); /* Oculto inicialmente (fuera de la pantalla) */
    transition: transform 0.5s ease-out; /* Transición suave para aparecer */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible {
    transform: translateY(0); /* Muestra el banner */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.cookie-link {
    color: #aad3aa; /* Tono de verde claro */
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-btn {
    background-color: #0d5107; /* Verde corporativo */
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0; /* Evita que el botón se reduzca en móvil */
    transition: background-color 0.2s ease;
}

.cookie-btn:hover {
    background-color: #093b05;
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        margin-bottom: 10px;
    }
}

/* Estilo para el botón de cierre del modal de Privacidad */
.cerrar-modal-privacidad {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #222;
    font-weight: bold;
    transition: color 0.2s ease;
}

.cerrar-modal-privacidad:hover {
    color: #0d5107;
}

/* Ajuste si el contenido de la política es muy largo, para que se desplace bien */
.policy-body {
    padding: 0 5px; /* Quita padding extra para maximizar el área de desplazamiento */
}

.fade-in {
  animation: fadeInModal 0.3s ease forwards;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
