/* ===== Fuentes locales ===== */
@font-face {
  font-family: "Arsenica";
  src: url("fonts/ArsenicaTrial-Medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PlayfairDisplay';
  src: url('fonts/PlayfairDisplay-Bold.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'MyriadPro';
  src: url('fonts/myriadpro-regular.woff2') format('truetype');
  font-display: swap;
}

/* ===== Paleta de colores ===== */
:root {
  --color-fondo: #29899b;
  --color-principal: #F6F3E5;
  --color-secundario: #d9a86c;
  --color-texto: #2c2c2c;
}

/* ===== Reset básico ===== */
body {
  margin: 0;
  font-family: 'Arsenica', Arial, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
}

/* Solo para la página principal, mobile */
@media (max-width: 768px) {
  body.home-page .navbar {
    padding: 12px 16px; /* un poco más de espacio */
  }

  body.home-page .navbar-brand img {
    max-height: 60px; /* más grande que el normal */
    height: auto;
  }

  body.home-page .navbar-toggler {
    width: 50px;   /* botón más grande */
    height: 50px;
  }

  body.home-page .navbar-toggler-icon {
    background-size: 40px 40px; /* que el icono sea más grande */
  }
}

/* prueba galeria */

.detalle-producto {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.galeria-container {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todo el bloque */
}

.imagen-grande {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.imagen-grande img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.imagen-grande img:hover {
  transform: scale(1.02);
}

.pequenas-container {
  display: flex;
  justify-content: center; /* 🔥 centra horizontalmente las miniaturas */
  align-items: center;
  gap: 12px; /* espacio entre miniaturas */
  margin-top: 15px;
}

.pequenas-container img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, border 0.2s;
  border: 2px solid transparent;
}

.pequenas-container img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Miniatura activa */
.pequenas-container img.activa {
  border: 2px solid #b4975a;
}

.detalle-info {
  flex: 1 1 45%;
}

@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detalle-info {
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .detalle-info ul {
    padding-left: 0; /* quita sangría del listado */
    list-style: none;
  }

  .detalle-info li {
    margin-bottom: 5px;
  }
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #29899b;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color:var(--color-fondo) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-logo img {
  width: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-family: 'Arsenica', sans-serif !important;
  font-weight: 500;
  color: var(--color-fondo) !important;
  transition: color 0.2s;
  
}

nav a:hover {
  color: black !important;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: right;
    width: 100%;
  }
}

.hero {
  position: relative;
  height: 500px;
  text-align: center;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* que se ajuste sin deformarse */
  z-index: 1;
  opacity: 1; /* 100% */
}

/* Capa azul con opacidad del 84% */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fondo);
  opacity: 0.7; /* 70% */
  z-index: 2;
}

/* Contenido (logo + texto) */
.hero-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-principal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 3; /* arriba de todo */
}

/* Logo */
.hero-text img {
  width: 140px;
  height: auto;
  margin: 0;
  margin-bottom: -30px;
  opacity: 1;
}

/* Texto principal */
.brand {
  font-family: 'Arsenica', 'Poppins', serif;
  font-weight: normal;
  font-size: 5rem;
  line-height: 1;
  position: relative;
  margin: 0;
}

/* Subtexto “MDQ” */
.brand .sub {
  font-family: 'PlayfairDisplay', 'Poppins', serif;
  font-size: 2.4rem;
  position: absolute;
  bottom: -0.7em;
  right: 0em;
  letter-spacing: 1px;
}


/* Responsive */
@media (max-width: 768px) {
  .brand {
    font-size: 2.8rem;
  }

  .brand .sub {
    font-size: 1.3rem;
    bottom: -0.7em;
    right: 0em;
  }

  .hero-text img {
    margin-bottom: -25px;
    width: 80px;
  }

  .hero {
    height: 250px;
  }
}

/* ===== Filtros: estilo y posicionamiento ===== */
.filtros-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-bottom: 20px;
  padding-right: 85px;
  margin-top: 50px;
}

/* Botón */
.filtro-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s;
}

.filtro-btn:hover {
  background: #f8f8f8;
}

/* Contenedor de selects */
.filtros-card {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  margin-top: 10px;
}

/* Mostrar al hacer click */
.filtros-card.active {
  display: flex;
}

/* Selects */
.form-select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
  .filtros-container {
    align-items: flex-end;
  }

  .filtros-card {
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
  }
}

/* En mobile: botón a la derecha */
@media (max-width: 767px) {
  .filtros-container {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* lo manda a la derecha */
    padding: 0 20px; /* espacio desde el borde */
    position: relative;
  }

  .filtro-btn {
    margin-left: auto; /* se asegura que esté a la derecha */
    margin-right: 0;
    align-self: flex-start;
  }
}


.pequenas-container {
  display: flex;
  flex-wrap: nowrap; /* para que no se envuelvan */
  gap: 8px; /* espacio entre miniaturas */
}

.pequenas-container img {
  max-width: 100px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.pequenas-container img.activa {
  border-color: #29899b;
}

.producto a {
  text-decoration: none;
  color: inherit;
}


/* ---------- HERO ---------- */
    .hero-nosotros {
      position: relative;
      background: url('fotos/fondo mar.png') center/cover no-repeat;
      height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #F5EBDD;
      overflow: hidden;
    }

    .hero-nosotros::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(41, 137, 155, 0.7); /* azul con opacidad */
      z-index: 1;
    }

    .hero-nosotros h1 {
      position: relative;
      z-index: 2;
      font-size: 3.2rem;
      font-family: 'Playfair Display', serif;
      letter-spacing: 2px;
    }

    /* ---------- TEXTO NOSOTROS ---------- */
    .nosotros-texto {
      max-width: 900px;
      margin: 80px auto;
      padding: 0 20px;
      text-align: center;
      font-size: 1.1rem;
      line-height: 1.8;
      color: #333;
    }

    .nosotros-texto strong {
      color: #29899b;
    }

    @media (max-width: 768px) {
  .hero-nosotros {
    height: 250px;
  }
}

#productos-container h2 {
  margin: 0;
  font-family: 'Arsenica', 'Poppins', serif;
  font-weight: normal;
  line-height: 1;
  text-align: center;
  color: var(--color-fondo);
}

.title {
  position: relative; /* 👈 Contenedor relativo para que el texto se posicione sobre la imagen */
  text-align: center;
  padding: 80px 20px;
  color: var(--color-fondo);
}

.title h1 {
  margin: 0;
  font-family: 'Arsenica', 'Poppins', serif;
  font-weight: normal;
  font-size: 4rem;
  line-height: 1;
}

.title h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

#tejidos {
  padding: 60px 20px;
  text-align: center;
  margin-top: -10px;
}

#tejidos h2 {
  text-align: center;
  font-family: 'Arsenica', serif;
  font-weight: normal;
  font-size: 2rem;
  color: var(--color-fondo);
  margin-bottom: 30px;
}

/* ===== PRODUCTOS ===== */
#productos {
  padding: 60px 20px;
  text-align: center;
  margin-top: -10px;
}

#productos h2 {
  text-align: center;
  font-family: 'Arsenica', serif;
  font-weight: normal;
  font-size: 2rem;
  color: var(--color-fondo);
  margin-bottom: 30px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 95%;
  max-width: 1400px;
  margin: 40px auto 0 auto; /* espacio arriba y centrado */
  justify-items: center;
}

.producto {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  text-decoration: none;
}




@media (max-width: 1200px) {
  .grid-productos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .grid-productos { grid-template-columns: repeat(2, 1fr); }
}


.producto {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.producto:hover {
  transform: scale(1.02);
}

.producto img {
 width: 100%;        /* ocupa todo el ancho del contenedor */
  max-width: 250px;   /* límite máximo de ancho */
  height: auto;       /* mantiene proporción */
  margin: 0 auto;     /* centra la imagen en la card */
  display: block;
  border-radius: 8px;
}

.producto h3 {
  font-family: 'Arsenica', serif;
  margin: 15px 0 5px;
  color: var(--color-fondo);
}

.producto p {
  font-family: 'MyriadPro', sans-serif;
  font-size: 0.95rem;
  color: var(--color-texto);
  margin: 0 0 10px;
  margin-top: 15px;
}

.producto p:last-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #29899b !important;
}


/* ===== CONTACTO ===== */
#contacto {
  padding: 60px 20px;
  text-align: center;
}

#contacto h2 {
  font-family: 'Arsenica', serif;
  font-weight: normal;
  color: var(--color-fondo);
  font-size: 2rem;
  margin-bottom: 10px;
}

#contacto p {
  font-family: 'Myriad Pro', serif;
  color: black;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

#contacto a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-fondo);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

#contacto a:hover {
  background: #E8DCC2;
  color: #29899b;
}


/* ===== DETALLE PRODUCTO LEMON PIE ===== */
.detalle-producto {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  justify-content: center;
  align-items: flex-start;
  background-color: #fff;
}

.detalle-producto img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detalle-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.detalle-info h2 {
  margin: 0;
  font-family: 'Arsenica', serif;
  font-weight: normal;
  color: var(--color-fondo);
  font-size: 2rem;
}

.detalle-info p {
  font-family: 'MyriadPro', sans-serif;
  font-size: 1.1rem;
  color: var(--color-texto);
  line-height: 1.5;
}



.precios ul {
  list-style: none;
  padding: 0;
}

.precios li {
  font-family: 'MyriadPro', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-texto);
}

#contacto a {
  display: inline-block;
  padding: 12px 20px;
  background: var(--color-fondo);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

#contacto a:hover {
  background: var(--color-principal);
}

@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
    padding: 20px;
  }

  .detalle-producto img,
  .detalle-info {
    max-width: 100%;
  }
}

/* ===== CARROUSEL ===== */
  .carrousel {
    text-align: center;
    padding: 40px 20px;
  }

  .carrousel-container {
    margin-top: -5px;
    background-color: #E8DCC2;  /* arena */
    padding: 20px 0;            /* opcional: espacio arriba y abajo */
}

  .carrousel h2 {
    margin-top: -10px;
    font-family: 'Arsenica', serif;
    font-size: 2rem;
    font-weight: normal;
    color: var(--color-fondo);
    margin-bottom: 30px;
    text-align: center;
  }

  .swiper.mySwiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .swiper-slide {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    display: flex;          
    justify-content: center;
    align-items: center;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
}


/* Hover opcional: escala al pasar el mouse */
.swiper-slide:hover {
  transform: scale(1.03);
}

/* Botones de navegación */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-fondo) !important;
}


.navbar {
  background-color: var(--color-fondo); /* tu color */
}

.navbar-brand img {
  max-height: 60px; /* tamaño deseado */
  width: auto;      /* mantiene proporción */
}


.nav-link {
  font-family: 'Recoleta', 'Poppins', serif;
  color:var(--color-principal); /* colores de links */
}

.nav-link:hover {
  color: black !important;
}





/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--color-principal);
  color: #fff;
  font-size: 0.9rem;
}


