@import url('https://fonts.googleapis.com/css2?family=Vina+Sans:wght@400;600;700&family=Bowlby+One&display=swap&family=Nunito:wght@400;600&display=swap');

:root {
  /* Colores */
  --black-color: #000000;
  --white-color: #ffffff;

  --color-bg: #fff2e0;
  --color-bg-alt: #f8e1c7;

  --color-card-1: #e6cdb6;
  --color-card-2: #ffd1b3;
  --color-card-3: #f7b58a;

  --text-color-alt: #a67856;
  --text-highlight: #eb4a3f;
  --text-highlight-alt: #ee684c;

  --btn-primary: #ff9b73;
  --btn-secondary: #779047;

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);

  --navbar-color: #737F5D;

  /* Tipografía */
  --font-h1: 'Vina Sans', sans-serif;
  --font-h2-h3: 'Bowlby One', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.3rem; 
  --normal-size: 1rem;
  --small-size: 0.875rem;

  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
}
/* Fuente y tamaño h2 */
h2 {
  font-family: var(--font-h2-h3);
  font-size: var(--h2-size);
  color: #5e684e;
}

.text-left {
  text-align: left;
}

h1 {
  font-family: var(--font-h2-h3);
  font-size: var(--h1-size);
  color: #8c4731;
}

/* Fuente y tamaño texto body */
body{
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--normal-size);
  color: var(--black-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.bg-pattern-normal {
    background-image: url('../img/pattern.svg'); 
    
    /* Repite el patrón en el eje y */
    background-repeat: repeat-y; 
    
    /* Evita que el patrón se pegue en el centro o izquierda */
    background-position: center top; 
    background-size: 100% auto; 
    
    /* Asegura que se desplace con el contenido */
    background-attachment: scroll; 
}
.bg-pattern-mirror {
    background-image: url('../img/pattern-mirror.svg'); 
    
    /* Repite el patrón en el eje y */
    background-repeat: repeat-y; 
    
    /* Evita que el patrón se pegue en el centro o izquierda */
    background-position: center top; 
    background-size: 100% auto; 
    
    /* Asegura que se desplace con el contenido */
    background-attachment: scroll; 
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

.section-title{
  font-family: var(--font-h2-h3);
  font-size: var(--h2-size);
  color: var(--text-highlight-alt);
}
.section-title-brown{
  font-family: var(--font-h2-h3);
  font-size: var(--h2-size);
  color: var(--text-color-alt);
}
.section-subtitle{
  font-family: var(--font-body);
  font-size: 1rem;
  color: #5a402e;
  font-weight: 500;
}



/* Imagenes ajustadas a la resposibidad */
img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* INDEX */

.hero-img {
  object-fit: cover;
  height: 100vh;  /*mantiene la imagen al 100% de la pantalla*/
  filter: brightness(70%);  /* hace que la imagen sea más oscura para resaltar texto*/
}

.carousel-caption {
  position: absolute;
  bottom: 30%;
  text-align: center;
  color: var(--white-color);
  text-shadow: 1px 1px 10px rgba(57, 34, 19, 0.596);
}

.hero-section h1 {
  font-family: var(--font-h2-h3);
  font-size: var(--h1-size);
  color: var(--white-color);
}

.hero-section p {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--white-color);
  margin-bottom: 20px;
}

.hero-btn {
  background-color: #F89B61;
  border: none;
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: var(--text-highlight-alt);
  transform: scale(1.05);
}

.card-img-products{
  height: 400px;       
  width: 100%;         
  object-fit: cover;  
  border-top-left-radius: 20px; 
  border-top-right-radius: 20px; 
}

.producto-card {
  background-color: var(--color-card-1);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%; 
  display: flex;
  flex-direction: column;
}
.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(45, 27, 20, 0.4);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.card-title{
  color: #2e2117;
  font-size: 1.3rem;
  min-height: 20px; /* iguala textos */
  font-weight: var(--font-bold);

}
.card-text{
  color: #2e2117;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.95rem;
  min-height: 60px; /* iguala textos */
  font-weight: var(--font-semi-bold);
}
.card-price{
  font-weight: 600;
  color: var(--btn-secondary);
  margin-bottom: 10px;
}

.about-title {
  margin-top: 100px;
  font-family: 'Bowlby One', sans-serif;
  font-size: var(--h1-size);
  color: var(--text-highlight-alt);
  margin-bottom: 1rem;
}
.about-text {
  margin-top: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2e2117;
  max-width: 90%;
}

.aboutFarm-img{
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
}

.gallery-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gallery-scroll img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  scroll-snap-align: start;
}
.gallery-scroll::-webkit-scrollbar {
  display: none;
}
.button-container {
  display: flex;
  gap: 5px;
}

/* FIN INDEX */

/* =================================== */
/* FORMATOS IMAGENES */
/* =================================== */


/* Formato imágenes About Us */
.imagen-columna-ajustada {
  height: 90%;       
  width: auto;         
  object-fit: cover;   /* mantiene proporciones recortando si es necesario */
  border-radius: 15px;
  box-shadow: -16px -16px 0 #8c4731;
}

/* Formato imagenes banner About US */
.imagen-ajustada {
  max-height: 210px;
  width: 100%;         /* ocupa todo el ancho disponible */
  object-fit: cover;   /* mantiene proporciones recortando si es necesario */
  border-radius: 15px;
  box-shadow: 12px 12px 0 #8c4731;
}


/* Convertir una imagen a fondo (Marca de agua) */
.contenedor {
  position: relative;   /* necesario para que la imagen se posicione dentro */
}

.fondo-img {
  position: absolute;   /* saca la imagen del flujo normal */
  right: 0;             /* la alinea a la derecha */
  bottom: 0;               /* empieza desde arriba */
  width: auto;
  height: 100%;         /* alto ajustado a tamaño del contenedor */
  opacity: 0.35;       /* baja opacidad */
  z-index: -1;          /* la pone detrás del texto */
  border-radius: 100%;  /* pone borde a la imagen */
}

/* FOOTER */
.custom-footer{
    background-color: #e6ceb3;
}
.footer-icons i {
  color: #000; 
  transition: color 0.3s;
}

.footer-icons i:hover {
  color: #EE684C;
}

/* END FOOTER */

/* PRODUCT VIEW */
.img-product{
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.product-container {
    margin-top: 50px;
}
.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #779047;
}

.collapse-format{
  background-color: rgb(255, 234, 218);
}
.collapse-format:focus {
    outline: 4px solid #f8cb58d6; /* Un borde visible para el foco */
}

.bg-trans-custom{
  background-color: #9dc94d2a;
}
.text-green{
  color: #384520;
}
.catalogo-icon{
  width: 100%;
  height: auto;
  max-width: 70px;

}
/* END PRODUCT VIEW */

/* Botones FAQs */
.btn-faq {
  background-color: #EE684C;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-faq:hover {
  background-color: #EB4A3F;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 104, 76, 0.4);
}

.btn-outline-faq {
  border: 2px solid #9bb36b;
  color: #000000;
  background-color: transparent;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline-faq:hover {
  background-color: #9db175;
  border-color: #9db175;
  color: white;
  transform: translateY(-2px);
}
/* END FAQs */

/* RECETAS */
.recipe-card {
  background-color: var(--color-bg-alt);
}
.recipe-card h3 {
  color: var(--black-color);
}

.recipe-card-button {
  border: none;
  background-color: var(--btn-secondary);
  transition: all 0.3s ease;
  color: var(--black-color);
}

.recipe-card-button:hover {
  background-color: #adbc8f;
  transform: scale(1.02);
  color: var(--white-color);
}
/* RECETAS FIN */

/* Nuestras gallinas */
.shadow-top-right {
    box-shadow: 16px -16px 0 var(--text-color-alt); 
}
.shadow-top-left {
    box-shadow: -16px -16px 0 var(--text-color-alt); 
}
/* Nuestras gallinas */


/* NavBar */
/* Define el ancho, centrado y la animación de transición. */ 
.navbar-container {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease-in-out;
}

/* Clase para ocultar el Navbar con JavaScript */
.navbar--hidden {
  transform: translateY(-110%);
}

/* Estilos personalizados del Navbar */
.navbar-farm {
  background-color: var(--navbar-color);
  border-radius: 7px;
  box-shadow:  6px 6px 0px #53573C;
  
  /* Sobrescribe las variables de Bootstrap para el color del texto */
  --bs-navbar-color: var(--color-bg); 
  --bs-navbar-hover-color: var(--black-color);
}
/* Estilo hover para los enlaces principales del navbar */
.navbar-farm .navbar-nav .nav-link {
  transition: background-color 0.2s ease-in-out;
  border-radius: 7px;
}

.navbar-farm .navbar-nav .nav-link:hover {
  background-color: #53573C;
}

/* Estilos para los iconos del navbar */
.navbar-icon{
  color: var(--color-bg);
}
.navbar-icon:hover{
  color: var(--black-color);
}

.navbar-logo {
  height: 40px;
  width: auto;
}

/* Estilos para el menú desplegable del navbar (Blog) */
.navbar-farm .dropdown-menu {
  background-color: var(--navbar-color);
  border: none;
}
.navbar-farm .dropdown-item{
  color: var(--color-bg);
  border-radius: 7px;
}
/* Estilo al pasar el mouse sobre un elemento del dropdown */
.navbar-farm .dropdown-item:hover {
  background-color: #53573C;
  color: var(--black-color);
}

.home .navbar-container.sticky-top {
position: fixed; 
top: 0; left: 0; right: 0;
z-index: 1100;
width: 95%; 
}


/*NavBar end*/

/* =================================== */
/* AVISOS LEGALES STYLES */
/* =================================== */

/* Accordion Avisos */
.accordion-button {
  background-color: #a67856;  /* Ya coincide con tu paleta */
  color: #2e2117;  /* Texto más oscuro como en las cards */
  font-weight: 600;  /* Consistente con otros títulos */
  font-family: var(--font-body);
  border-radius: 7px;  /* Igual que el navbar */
}

.accordion-button:not(.collapsed) {
  background-color: #8c4731;  /* Color principal de tus títulos */
  color: var(--white-color);
  background-color: #cbb6a5;
  color: #000000;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: #a98469;
  color: #000000;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-item {
  background-color: var(--color-card-1);  /* Usa tu variable existente */
  border-radius: 10px;  /* Más suave */
  margin-bottom: 10px;  /* Separación entre items */
  border: none;
}

.accordion-body {
  background-color: var(--color-bg);  /* Tu fondo principal */
  color: #2e2117;  /* Consistente con card-text */
  border-radius: 0 0 10px 10px;
  background-color: #FFF2E0;
  color: #000000;
}

.accordion-body h5 {
  color: var(--text-color-alt);  /* Usa tu variable */
  font-family: var(--font-body);
  font-weight: var(--font-semi-bold);
}

.accordion-body ul,
.accordion-body ol {
  color: #2e2117;
  color: #000000;
}

.accordion-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.accordion-body p {
  line-height: 1.7;
  text-align: justify;
  color: #000;
}

/* Botones - Simplificados y unificados */
.btn-avisos {
  background-color: var(--text-highlight-alt);  /* Usa tu variable */
  color: white;
  border: none;
  padding: 12px 28px;  /* Igual que hero-btn */
  border-radius: 25px;  /* Más redondeado como hero-btn */
  font-weight: 500;
  transition: all 0.3s;
}

.btn-avisos:hover {
  background-color: #EB4A3F;
  color: white;
}

.btn-outline-avisos {
  border: 2px solid #78855e;
  color: #030303;
  background-color: transparent;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-avisos:hover {
  background-color: #9db175;
  border-color: #9db175;
  color: white;
}
.btn-brown{
    background-color: #84624a;  
    color: white;
    transition: all 0.3s ease;
}
.btn-brown:hover {
  background-color: #5a402e; 
  color: white;
}
.btn-dark {
  background-color: #000;   
  border-color: #000;
  transition: all 0.3s ease;
}

.btn-avisos:hover {
  background-color: var(--text-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 104, 76, 0.4);
}

.btn-outline-avisos {
  border: 2px solid var(--btn-secondary);  /* Usa tu verde */
  color: var(--btn-secondary);
  background-color: transparent;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-avisos:hover {
  background-color: var(--btn-secondary);
  border-color: var(--btn-secondary);
  color: white;
  transform: translateY(-2px);
}

/* Los botones brown, dark y verde ya existen, solo ajustar */
.btn-brown {
  background-color: #84624a;  
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-brown:hover {
  background-color: #5a402e; 
  transform: translateY(-2px);
}

.btn-verde {
  background-color: var(--btn-secondary);   
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-verde:hover {
  background-color: #384520;
  transform: translateY(-2px);
}


/* =================================== */
/* AVISOS LEGALES STYLES END */
/* =================================== */

/*LOGIN INCIO DE SESION*/

/* Diseño responsivo */

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
  
  body {
    font-size: 16px;
    margin: 10px;
  }
  .fondo-img{
    max-height: 250px;
    max-width: 250px;
  }
  .text-description{
    display: none;
  }
}

/* Pantallas grandes (lg = 992px o más) */
@media (min-width: 992px) {
  /* Aplicamos solo en pantallas grandes para evitar errores */
  .navbar-nav-absolute-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .imagen-columna-ajustada {
  max-height: 250px;       
  }
}

/* Celulares (pantallas pequeñas) */
@media (max-width: 767px) {
  body {
    font-size: 14px;
    margin: 5px;
  }
  .row-responsiva {
    flex-direction: column-reverse;
  }
  .fondo-img {
    width: 100% !important;
    height: auto !important;
    bottom: 0;
    right: 0;  
  }
}

