/*  IMPORTAR FUENTES ORIGINALES */
@import url("https://fonts.googleapis.com/css?family=Questrial:300,300i,400,400i,700,700i&display=swap");
@import url("https://fonts.googleapis.com/css?family=DM+Serif+Display:400,400i&display=swap");

/*  CONFIGURACIÓN BASE (Replica el look de Odoo) */
html, body {
    overflow-x: hidden; /* Corta cualquier cosa que intente salirse a la derecha */
    width: 100%;
    position: relative;
}


body {
    margin: 0;
    font-family: 'Questrial', sans-serif; /* Fuente principal de tu web */
    line-height: 1.5;
    color: #212529;
    -webkit-font-smoothing: antialiased;
}

html, body {
    overflow-x: hidden; /* Corta cualquier cosa que intente salirse a la derecha */
    width: 100%;
    position: relative;
}

* {
    box-sizing: border-box; /* Asegura que el padding no sume ancho extra */
}

/*  TÍTULOS (Usan DM Serif Display) */
h1, h2, h3, h4, h5, h6, .display-3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
}



.display-3 {
    font-size: calc(1.525rem + 3.3vw); /* Tamaño dinámico original */
    line-height: 1.2;
}

/*  BOTONES (Fiel al estilo Odoo btn-primary) */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #006c6e; /* Tu color verde */
    border-color: #006c6e;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
}

/* 5. UTILIDADES DE ESPACIADO Y TEXTO */
.text-center { text-align: center !important; }
.text-muted { color: #6c757d !important; }
.pt40 { padding-top: 40px !important; }
.pb40 { padding-bottom: 40px !important; }
.list-unstyled { list-style: none; padding-left: 0; }
.me-2 { margin-right: 0.5rem !important; }
.small { font-size: 80%; }

 


/*  FONDO VERDE CLARO */
.fondo-verde-claro {
    background-color: #B0D2D1;  
}
/* Centrado del contenedor principal */
.container {
    width: 100%;
    max-width: 1140px; /* Ancho máximo igual al de Odoo */
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* Comportamiento de la fila */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center; /* Centra el contenido horizontalmente */
}

/* Asegurar que las columnas no se peguen */
.col-lg-4, .col-md {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* En pantallas grandes, la columna ocupa el 33% */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
/* Sección Producto Destacado */
.seccion-destacado {
    background-color: rgb(0, 108, 110);
    padding: 80px 0;
    position: relative;
}

.contenedor-imagen-full {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    width: 100%; /* Añade esto para asegurar que no se salga */
}

.contenedor-imagen-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* La tarjeta que flota sobre la imagen */
.tarjeta-destacado {
    background-color: #f1f5f1; /* El verde muy claro del footer */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 300px;
    margin: -60px auto 0; /* Sube la tarjeta para que pise la imagen */
    position: relative;
    z-index: 2;
    text-align: center;
}

.tarjeta-destacado {
    background-color: #f1f5f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* EL CAMBIO CLAVE AQUÍ: */
    width: 85%;            /* Usa un porcentaje para que respire a los lados */
    max-width: 350px;      /* Pero que no crezca más de esto en PC */
    margin: -60px auto 0;  /* Mantiene el centrado y la subida */
    
    position: relative;
    z-index: 2;
    text-align: center;
}

.tarjeta-destacado h2 {
    font-family: 'DM Serif Display', serif;
    color: rgb(0, 108, 110);
    margin-bottom: 15px;
}

.tarjeta-destacado p {
    font-family: 'Questrial', sans-serif;
    color: #444;
    line-height: 1.5;
}


.btn-categoria {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5dc; /* beige */
    color: rgb(0, 108, 110);
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Questrial', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #e2e2c0;
    transition: 0.3s;
}

.btn-categoria:hover {
    background-color: #ffffff;
    transform: scale(1.05);
	
	
}

/* Truco para que el salto no quede tapado por el menú si es sticky */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

/* Contenedor de la categoría */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Ficha de producto individual */
.producto-ficha {
    background: rgba(255, 255, 255, 0.05); /* Un toque de brillo sobre el verde */
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.producto-ficha:hover {
    transform: translateY(-5px); /* Efecto sutil al pasar el ratón */
}

/* Imagen del producto (siguiendo tu estética circular) */
.img-producto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #B0D2D1;
    margin-bottom: 15px;
}

/* Textos de la ficha */
.producto-ficha h4 {
    font-family: 'DM Serif Display', serif;
    color: #f5f5dc; /* Beige */
    margin: 10px 0;
    font-size: 1.3rem;
}

.producto-ficha p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    opacity: 0.8;
}

.precio {
    font-weight: bold;
    color: #f5f5dc;
    font-size: 1.1rem;
    margin-top: auto; /* Empuja el precio siempre al final */
}

/* Clase para la imagen con enlace */
.img-enlace {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suaviza el movimiento */
}

.img-enlace:hover {
    transform: scale(1.05); /* Agranda la imagen un 5% */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Intensifica la sombra al flotar */
}
/* Configuración para móviles (pantallas menores a 992px) */
@media (max-width: 991px) {
    .columna-historia, .columna-productos {
        flex: 1 1 100% !important; /* Fuerza a que ocupen todo el ancho */
        max-width: 100% !important;
        min-width: 0 !important;
        position: static !important; /* Desactiva el sticky en móvil */
        margin-top: 0 !important;
    }
    
    .item-tresbolillo {
        align-self: center !important; /* Centra los productos en el móvil */
        flex-direction: row !important; /* Todos con la foto a la izquierda */
        text-align: left !important;
        max-width: 100% !important;
    }
}

/* Evita que la página se pueda desplazar lateralmente */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Corrige el comportamiento de las filas en móvil */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Asegura que las secciones ocupen siempre el 100% real */
section {
    width: 100%;
    box-sizing: border-box;
}