/* ==============================================================================================
   CSS GLOBAL DE LA PAGINA 
================================================================================================= */
:root {
  --brand: #7b4b27;
  --brand-2: #a26c3d;
  --ink: #000000;
  --muted: #000000;
  --bg: #fff9f3;
  --surface: #ffffff;
  --border: #e5e7eb;
  --ok: #25D366;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --container: 1180px;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

/* Tipografía base */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  padding-top: 120px;
}

.container { 
  max-width: var(--container); 
  margin-inline: auto; 
  padding-inline: 20px; 
}

.section { padding: 30px 0; }

.title,
.name, 
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  margin: 0 0 15px;
  color: #5f3822;
  margin-top: 20px;
}

.title { font-size: 1.2rem; line-height: 1.3; }

.subtitle, 
.meta, 
.hero .lead {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.subtitle { margin-bottom: 24px; }
.price { color: var(--brand); font-weight: 700; }

/* Responsive Tipografía */
@media (max-width: 768px) {
  .title {
    font-size: 1rem;
  }

  .subtitle,
  .text {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.70rem;
    padding: 8px 14px;
  }

  body {
    padding-top: 90px;
  }
}

/* Logo Centrado */

.brand img.logo {
  display: block;
  max-height: 110px;  /* PC */
  width: auto;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .brand img.logo { max-height: 90px; }
}

/* ==========================
   Reset básico
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   HEADER GLOBAL
========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255, 240, 226);
    z-index: 900;
    transition: all 0.3s ease;
    padding: 20px 0;
    transition: padding 0.3s ease; /* Solo animar padding para estabilidad */
}

.site-navbar {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

/* Botón menú hamburguesa */
.site-menu-toggle {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    transition: all 0.3s ease;
}

/* Logo */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -50px;
    margin-top: -20px; 
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

/* Espaciador */
.site-spacer {
    width: 1px;
}

/* ===== HEADER PEQUEÑO AL SCROLL ===== */
.site-header.shrink {
    padding: 25px 0;
}

/* Logo pequeño */
.site-header.shrink .site-logo img {
    height: 70px;
}

/* Menú hamburguesa pequeño */
.site-header.shrink .site-menu-toggle {
    font-size: 1.2rem;
}

/* Responsive header */
@media (max-width: 768px) {
    .site-navbar {
        position: relative;
        width: 100%;
        max-width: 90%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;        /* sin padding extra */
        height: 70px;       /* altura normal del header */
    }

    .site-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%);
        margin: 0;
    }

    .site-logo img {
        height: 70px;      /* logo normal */
        width: auto;
    }

    /* Header pequeño al hacer scroll */
    .site-header.shrink {
        padding: 5px 0;      /* espacio pequeño arriba y abajo */
        height: auto;        /* deja que el contenido defina altura */
    }

    .site-header.shrink .site-logo img {
        height: 60px;        /* logo más pequeño */
    }

    .site-header.shrink .site-menu-toggle {
        font-size: 1.2rem;
        padding: 6px;
    }
}

/* ==========================
   OVERLAY GLOBAL
========================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* OSCURECE */
    backdrop-filter: blur(2px); /* premium blur */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
    pointer-events: none;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==========================
   MENÚ LATERAL GLOBAL
========================== */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgb(255, 240, 226);
    padding: 25px;
    color: #000000;
    z-index: 1000;

    transform: translateX(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.side-menu.show {
    transform: translateX(0);
    pointer-events: auto;
}

.side-menu-secondary {
    z-index: 1100;
}

/* Botón cerrar X */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #000000;
}

/* ==========================
   LINKS MENÚ (TODO CLICKEABLE)
========================== */
.side-menu-links {
    list-style: none;
    padding: 0;
}

.side-menu-links li:first-child {
    margin-top: 30px;
}

.side-menu-links li {
    width: 100%;
}

.side-menu-links a,
.side-menu-links button {
    display: block;
    width: 100%;
    padding: 18px 10px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 1.2rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Hover opcional (puedes quitar si no quieres) */
.side-menu-links a:hover,
.side-menu-links button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-menu-links a:focus,
.side-menu-links button:focus {
    outline: none;
}

/* ==========================
   DIVIDER LINEAS
========================== */
.divider {
    width: 100%;
    height: 3px;
    background: rgb(165, 121, 49);
    margin: 0;
}

/* ==========================
   SUBMENU BOTON FLECHA
========================== */
.submenu-btn {
    position: relative;
    width: 100%;
    text-align: left;
}

.submenu-btn .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================
   Footer global ajustado
========================== */
.footer {
  background: rgba(255, 240, 226, 0.9);
  color: #000;
  padding: 20px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  box-sizing: border-box; /* evita desbordes */
  overflow-x: hidden;     /* previene scroll horizontal */
}

/* Contenedor principal */
.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

/* Columnas */
.footer-col h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #552f16;
}

/* Logo */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* fuerza a ocupar todo el contenedor */
}
.footer-logo img {
  max-width: 100px;
  height: auto;
}

/* Información centro */
.footer-info {
  text-align: left;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--brand);
}

/* Redes sociales */
.footer-social {
  text-align: left;
}
.social-logos {
  display: flex;
  gap: 15px;
}
.social-logos img {
  width: 32px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.social-logos img:hover {
  opacity: 1;
}

/* Línea separadora */
.footer-separator {
  border-top: 3px solid rgb(165, 121, 49);
  margin: 30px 0 20px;
}

/* Métodos de pago */
.footer-payments {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0;
  flex-wrap: wrap; /* evita que se desborde en móvil */
}
.footer-payments img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.footer-payments img:hover {
  opacity: 1;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center; /* centra todo en móvil */
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 15px;
  }

  .footer-info,
  .footer-social {
    text-align: center;
  }

  .social-logos {
    justify-content: center;
  }

  .footer-payments {
    justify-content: center;
    gap: 15px;
  }
}

/* Quitar el cuadro azul de clic en móvil */

a, button, img {
  -webkit-tap-highlight-color: transparent;
}

/* Elimina cualquier efecto azul de toque o foco en móviles y desktop */
*,
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent; /* iOS / Android */
  -webkit-focus-ring-color: transparent;   /* Safari */
  outline: none;                            /* elimina borde de foco */
  box-shadow: none;                         /* elimina sombras de foco */
}

/* Asegura que los botones no hereden estilo nativo */
button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 60px;
    left: 60px;
    background: #25D366;
    color: white;
    padding: 10px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    animation: floatMove 2s infinite ease-in-out;
}

/* ICONO */
.whatsapp-float img {
    width: 40px;
    height: 40px;
}

/* TEXTO */
.whatsapp-float span {
    font-size: 20px;
}

/* ANIMACIÓN SUAVE PROFESIONAL */
@keyframes floatMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* RESPONSIVE CELULAR */
@media (max-width: 600px) {
    .whatsapp-float {
        padding: 8px 12px;
        font-size: 12px;
        bottom: 25px;
        left: 25px;
    }

    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-float span {
    font-size: 16px;
   }
}

/* ============================================================================================================
   CSS INICIO
============================================================================================================ */

/* ==========================
   CARRUSEL HORIZONTAL
========================== */

.slider {
  position: relative;
  width: 100%;
  height: min(100vh, 600px);
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Espacio extra si es el primer slider (lo mantengo como pediste) */
.slider:first-of-type {
  margin-top: clamp(5px, 8vw, 50px);
}

/* ==========================
   RESPONSIVE CARRUSEL
========================== */
@media (max-width: 768px) {
  .slider {
    height: auto;
  }

  .slide {
    height: auto;
  }

  .slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
  }
}

/* ==========================
   FLECHAS (VISIBLES)
========================== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  z-index: 10;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  font-size: 32px;
  display: inline-block; /* ✅ YA NO OCULTA */
  color:rgb(165, 121, 49);;
}

.arrow:hover,
.arrow:focus,
.arrow:active {
  background: transparent !important;
  outline: none;
  box-shadow: none !important;
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .arrow {
    font-size: 24px;
    top: 45%;
  }
}

/* ==========================
   INDICADORES (BOLITAS)
========================== */
.indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--brand);
}

/* ==========================
   CONTENEDOR BOTONES
========================== */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 20px 0;
}

/* ==========================
   BOTONES INICIO
========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 600px;
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  min-width: 120px;
  margin-bottom: -60px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: #5f4c1c;
  border-color: #fff;
  color: #fff;
}

/* ==========================
   RESPONSIVE BOTONES
========================== */
@media (max-width: 768px) {
  .btn {
    font-size: 0.90rem;
    padding: 8px 14px;
  }
}



/* Contenedor flotante con imagenes */

.highlight-section {
  display: flex; /* Flex para centrar la tarjeta */
  justify-content: center; /* Centra horizontalmente */
  padding: 5px 20px; /* Espacio arriba/abajo y lateral */
  background: #fff9f3; /* Fondo general de la sección */
}

.highlight-card {
  display: flex; /* Flex para dividir texto y carrusel */
  flex-wrap: wrap; /* Permite que en móvil los elementos se acomoden */
  background: rgba(255, 240, 226, 0.9);
  border-radius: 16px; /* Bordes redondeados */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* Sombra de la tarjeta */
  overflow: hidden; /* Evita que contenido salga del borde */
  max-width: 1180px; /* Limita el ancho de la tarjeta */
  width: 100%; /* Ocupar todo el ancho posible dentro del max */
  gap: 50px; /* Espacio entre texto y carrusel */
  padding: 30px; /* Espaciado interno de la tarjeta */
  align-items: center; /* Alinea verticalmente contenido */
}

/* Texto */
.highlight-text {
  flex: 1 1 300px; /* Ocupa espacio disponible, mínimo 400px */
  display: flex; /* Flex para columnas */
  flex-direction: column; /* Texto en vertical */
  gap: 5px; /* Espacio entre título, descripción y subtítulo */
}

/*Carrusel*/
.highlight-carousel {
  flex: 1 1 400px; /* Ocupa espacio disponible, mínimo 400px */
  overflow: hidden; /* Esconde partes que salen del contenedor */
  border-radius: 12px; /* Bordes del carrusel */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* Sombra del carrusel */
}

.carousel-slides {
  display: flex; /* Flex para mostrar imágenes lado a lado */
  width: 700%; /* 7 imágenes */
  max-width: 700%;
  animation: fadeIn 0.1s forwards, slide 14s infinite 0.1s;
}

.carousel-slides img {
  width: 14.285%; /* Cada imagen ocupa 1/7 del carrusel */
}

.carousel-slides img:hover {
  transform: none;
}

/*Animación carrusel*/
@keyframes slide {
  0% { transform: translateX(0); }
  12% { transform: translateX(0); }

  14% { transform: translateX(-14.285%); }
  26% { transform: translateX(-14.285%); }

  28% { transform: translateX(-28.57%); }
  40% { transform: translateX(-28.57%); }

  42% { transform: translateX(-42.855%); }
  54% { transform: translateX(-42.855%); }

  56% { transform: translateX(-57.14%); }
  68% { transform: translateX(-57.14%); }

  70% { transform: translateX(-71.425%); }
  82% { transform: translateX(-71.425%); }

  84% { transform: translateX(-85.71%); }
  96% { transform: translateX(-85.71%); }

  100% { transform: translateX(0); }
}

/*Responsividad*/
@media (max-width: 900px) {
  .highlight-card {
    flex-direction: column; /* Móvil: carrusel arriba, texto debajo */
    padding: 1px; /* Menor padding */
  }
  .carousel-slides img {
    width: 14.285%;
  }
  
}

/* Video de inicio responsivo */
.hero-video {
  width: 100%;           /* Ocupa todo el ancho */
  max-height: 600px;     /* Altura máxima en PC */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;      /* Fondo negro por si hay franjas */
  margin-top: 40px;
}

.hero-video video {
  width: 100%;           /* Siempre ancho completo */
  height: auto;          /* Altura automática para mantener proporción */
  object-fit: cover;   /* Se ve completo sin recorte */
  display: block;
}

/*Responsividad*/
@media (max-width: 900px) {
  .hero-video {
    max-height: 130px;    /* Ajuste para móviles/tablet */
  }
  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: cover;      
  }
}

.benefits2-section {
  background: #fff9f3;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.benefits2-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
}

/*Slider*/
.benefits2-slider {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.benefit2 {
  display: none;
  background: #f7f3ef;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 30px 20px;
  animation: fade2 0.6s ease;
}

.benefit2.active {
  display: block;
}

@keyframes fade2 {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/*Logo circular*/
.benefit2-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #8b510f;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/*Controles*/
.benefits2-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.benefits2-arrow {
  background: rgba(216, 208, 208, 0);
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50%;
  transition: background 0.3s;
}

.benefits2-arrow:hover {
  background: rgba(255, 255, 255, 0);
}

/*Puntos*/
.benefits2-dots {
  display: flex;
  gap: 8px;
}

.dot2 {
  height: 12px;
  width: 12px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.dot2.active {
  background: #8b510f;
}

button,
button:focus,
button:active {
  outline: none;
  box-shadow: none;
}

.benefits2-arrow {
  -webkit-tap-highlight-color: transparent; /* Quita el highlight azul en móviles */
  outline: none;
}

/* ============================================================================================================
   CSS CATALOGO
=============================================================================================================== */

/* ======================================================================
   Tarjetas (Destacados y Catálogo)
====================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* ocupa todo el espacio disponible */
  gap: 10px; /* tarjetas más pegadas */
  justify-content: center;
  max-width: 900px;
  margin-inline: auto;
}

/* ==========================
   Tarjeta
========================== */

.card {
  background: #f7f3ef;
  border: 1px solid #e0d9d2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 380px; /* más pequeñas */
  /* margin: 0 auto; <-- quitar para que queden pegadas */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ==========================
   Imagen
========================== */

.thumb {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background: #f1e7db;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumb img:hover {
  transform: scale(1.05);
}

/* ==========================
   Contenido
========================== */

.body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.body .name {
  font-size: clamp(0.92rem, 2.5vw, 1.2rem);
  font-weight: 800;
  text-align: center;
  color: #4b3f35;
}

.body .price {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: #a05d3b;
  text-align: center;
}

/* ==========================
   Botón
========================== */

.actions {
  padding: 10px 14px 14px;
  display: flex;
  justify-content: center;
}

.actions .btn-wa {
  padding: 8px 16px;
  border-radius: 8px;
}

/* ==========================
   Link de tarjeta
========================== */

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==========================
   Responsividad
========================== */

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px; /* móvil igual que antes */
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    font-size: 0.85rem;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-intro {
    text-align: center;
  }
}

/* Solo para PC: tarjetas más pequeñas */

@media (min-width: 601px) {
  .card {
    max-width: 420px; /* Ajusta al tamaño deseado */
    margin: 0 auto;   /* Centra la tarjeta dentro del grid */
  }
}

/* ==========================
   Zoom para móviles
========================== */

@media (max-width: 900px) {
  .card:active {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}

/* ========================================================================================================
   CSS NOSOTROS 
=========================================================================================================== */

/* HISTORIA */
.historia p {
  margin-bottom: 15px;
}

/* CARRUSEL */
.carousel-slider {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Para que los controles queden debajo */
  align-items: center;
  max-width: 500px; /* Tamaño más pequeño en PC */
  margin: auto;
  scroll-behavior: smooth;
}

.carousel-slide {
  min-width: 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/*Controles del carrusel*/
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
  gap: 30px;
}

.carousel-controls button {
  background: rgba(0, 0, 0, 0);
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(0,0,0,0.15);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #a05d3b;
}

/* VALORES */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

/* MISION Y VISION */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .text {
    font-size: 0.95rem;
  }

  .carousel-slider {
    max-width: 100%;
  }

  .carousel-controls button {
    font-size: 20px;
    padding: 6px 10px;
  }
}

/* ============================================================================================================
   CSS CONTACTO
=============================================================================================================== */

/* Solo para dar espacio arriba al mapa en la sección de contacto */
.contact-info .map {
  margin-top: 30px; /* Ajusta el valor según lo necesites */
}

/* ============================================================================================================
   CSS SOMBREROS / DETALLE
=============================================================================================================== */

/* Contenedor principal */
.detalle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* =============================================================================================================
   GALERÍA
================================================================================================================ */
.galeria {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

/* Imagen principal */
.main-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}
.main-image-container img.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Miniaturas */
.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.thumbnails-container::-webkit-scrollbar {
  height: 8px;
}
.thumbnails-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.thumbnails-container img.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}
.thumbnails-container img.thumbnail.active,
.thumbnails-container img.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Modal centrado sin zoom */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover { color: #bbb; }

/* ==========================
   INFO DEL SOMBRERO
========================== */
.info {
  flex: 1 1 40%;
}
.info h1 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}
.info .precio {
  font-size: 1rem;
  color: #000;
  text-align: left;
  margin-bottom: 15px;
  font-weight: bold;
}
.info .descripcion {
  text-align: center;
  font-family: Arial, sans-serif;
  color: #000;
  margin-top: 30px;
}
.tallas span {
  display: inline-block;
  border: 2px solid #000;
  padding: 10px 12px;
  margin-right: 6px;
  margin-bottom: 10px;
  border-radius: 6px;
  cursor: pointer;
}
.tallas-label {
  font-size: 1rem;
  color: #000;
  text-align: left;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  margin-top: 30px;
}
.btn-comprar {
  display: block;
  background: #27ae60;
  color: #fff;
  padding: 10px 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  margin: 40px auto 0;
  text-align: center;

  animation: humanMove 4s infinite ease-in-out;
}

@keyframes humanMove {
  0%   { transform: translate(0, 0) rotate(0deg); }
  15%  { transform: translate(-2px, -1px) rotate(-0.3deg); }
  30%  { transform: translate(2px, 1px) rotate(0.3deg); }
  45%  { transform: translate(-2px, 1px) rotate(-0.3deg); }
  60%  { transform: translate(2px, -1px) rotate(0.3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ==========================
   GARANTÍA
========================== */
.garantia {
  background: #111;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  width: 100%;
  margin-bottom: 50px;
}
.garantia h2 { margin-bottom: 30px; }

/* ==========================
   CONTENEDOR MEDIR TALLA
========================== */
.medir-talla-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: rgba(255, 240, 226, 0.95);
  padding: 60px 20px;
  margin: 50px auto 0;
  max-width: 1200px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.medir-talla-info {
  flex: 1;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}
.medir-talla-info h2 {
  font-size: 1rem;
  color: #000;
  margin-bottom: 10px;
  font-weight: bold;
}
.medir-talla-info p { margin-bottom: 10px; }
.medir-talla-img {
  flex: 1;
  max-width: 500px;
}
.medir-talla-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* ==========================
   RESPONSIVE
========================== */
@media screen and (max-width: 768px) {
  .detalle-container {
    flex-direction: column;
    padding: 30px 20px;
  }
  .medir-talla-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .medir-talla-img {
    order: -1;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .medir-talla-info h2 { font-size: 1.1rem; }
  .medir-talla-info { font-size: 0.95rem; line-height: 1.6; }
}

/* =============================================================================================================
   CSS POLITICAS
================================================================================================================ */

/* Políticas */

.politicas-section {
  padding: 5px 20px 40px;
  background: #fff;
}

.politicas-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center; /* centra todo el texto dentro */
}

.politicas-content .title {
  margin-top: 30px;
  margin-bottom: 20px; /* separación debajo del título */
}

.politicas-content .subtitle {
  margin-bottom: 5px; /* separación debajo del subtítulo */
}


