html {
   box-sizing: border-box;
    font-size: 62.5%;
    min-height: 100%;
    position: relative;
}

*, *:before, *:after{
    box-sizing: inherit
}

*{
    margin: 0;
    padding: 0;
}

body{
   font-size: 1.6rem;
    height: 100%;
    font-family: "Poppins", sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
}


/***********************************************************

        ************ VARIABLES **********

************************************************************/

:root {
    --primary-color: #1c4c40ff;
    --secondary-color: #0a9396;
    --accent-color: #94d2bd;
    --light-gray: #f8f9fa;
    --dark-text: #343a40;
    --star-color: #ffc107;
    
}

/***********************************************************

        ************ ESTILOS GLOBALES **********

************************************************************/
h1{
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px black;
}

h5{
    font-size: 1.7rem;
    font-weight: 600;
}

p{
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: justify;
}

li{
    font-size: 1.5rem;
    line-height: 1.6;
}

img{
    max-width: 100%;
    height: auto;
}

.form-control, .form-select{
    font-size: 1.5rem;
}

.btn{
    font-size: 1.6rem;
}

.btn-custom {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.texto-justificado{
    text-align: justify;
}

.nombre-dash{
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--primary-color);
}

/* --- Botones de Contacto Flotantes --- */
.floating-contact {
    position: fixed;
    bottom: 45px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366; /* Verde de WhatsApp */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}
.floating-btn.instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}

/***************  BARRA DE NAVEGACIÓN ***************/
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}
.nav-link {
    color: var(--primary-color);
    font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/*************** Encabezado de pagina ***************/


/*************** Seccion principal (Hero) ***************/
.hero {
    background-color: #105656;
    color: white;
    padding: 12rem 0;
    text-align: center;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.hero p {
    font-weight: 300;
    max-width: 800px;
    margin: 1rem auto;
}

/*************** Estilo Secciones ***************/
    .section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

section {
    padding: 6rem 0;
}

/* --- Tarjeta de Producto --- */
.product-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.product-card .card-img-top {
    border-radius: 15px 15px 0 0;
    height: 250px;
    object-fit: cover;
}
.product-card .card-body {
    text-align: center;
}
.product-rating .fa-star {
    color: #ffc107;
}

/* --- Sección de Promociones --- */
#promociones {
    background-color: var(--light-gray);
}
.promo-banner {
    background: linear-gradient(
        45deg,
        var(--secondary-color),
        var(--primary-color)
    );
    color: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(10, 147, 150, 0.4);
}

/* --- Nuevas Secciones B2B --- */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Sección Cómo Hacer Pedidos --- */
.step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* --- Sección de Anuncios Especiales --- */
#anuncios {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
#anuncios h3 {
    font-weight: 700;
}

/* --- Pie de Página (Footer) --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
}
footer h5 {
    color: var(--accent-color);
    font-weight: 600;
}
footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--accent-color);
}
.social-icon {
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.copy {
    font-size: 1.2rem;
    height: 8vh;
}

/* --- Banner Fijo para Negocios --- */
.sticky-banner {
    margin-top: 5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1010; /* Debe estar por encima del contenido, pero debajo de los botones flotantes */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.sticky-banner p {
    margin: 0;
    font-size: 2rem;
    margin-right: 1rem;
}
.sticky-banner .btn {
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    flex-shrink: 0; /* Evita que el botón se encoja */
    color: var(--primary-color);
}



/***********************************************************

        ************ ESTILOS CATALOGO PRODUCTOS **********

************************************************************/
.page-header {
    background:
        linear-gradient(
            rgba(0, 96, 115, 0.178),
            rgba(0, 96, 115, 0.247)
        ),
        url("../img/portadaCatalogo.jpeg")
            center center/cover no-repeat;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Evitar background-attachment: fixed en móviles por rendimiento */
    background-attachment: scroll;
    padding: 6rem 0;
    color: white;
    text-align: center;
    height: 90vh; /* altura por defecto en desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ajustes responsive para que la imagen se vea bien en móviles */
@media screen and (max-width: 992px) {
    .page-header {
        height: 65vh;
        padding: 5rem 0;
        background-position: center 30%;
        background-size: cover;
    }

    .hero {
        height: 55vh;
        padding: 8rem 0;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        height: 65vh;
        padding: 2rem 0;
        background-position: center center;
        background-size: cover;
    }

    .hero {
        height: 50vh;
        padding: 4rem 0;
    }
}

@media screen and (max-width: 576px) {
    .page-header {
        height: 30vh;
        padding: 1rem 0;
        background-position: center center;
        background-size: cover;
    }

    .hero {
        height: 45vh;
        padding: 3rem 0;
    }
}

.product-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.product-card .card-img-top {
    border-radius: 15px 15px 0 0;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}
.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card .card-title {
    cursor: pointer;
}

.product-rating .fa-star {
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.product-rating .fa-star:hover,
.product-rating .fa-star.rated {
    color: var(--star-color);
}

.quantity-input {
    width: 70px;
    text-align: center;
}

/* --- Barra de Filtros --- */
.filter-bar {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

/* --- Botón de Carrito Flotante --- */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
}
.cart-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}
.cart-btn:hover {
    transform: scale(1.1);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

/* --- Modal de Detalles --- */
#productDetailModal .modal-body {
    padding-bottom: 2rem;
}
#productDetailModal img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
.detail-section h5 {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

/* --- Pie de Página (Footer) --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
}

/***********************************************************

        ************ MEDIAQUERIES **********

************************************************************/
/*************** ESTILOS GENERALES ***************/
@media screen and (max-width: 768px){
    h1{
        font-size: 1.6rem;
        text-shadow: 1px 1px 3px black;
    }

    h5{
        font-size: 1.1rem;
        font-weight: 600;
    }

    p{
        font-size: 0.9rem;
        line-height: 1.4;
    }

    li{
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .form-control, .form-select{
        font-size: 1.2rem;
    }

    .btn{
        font-size: 1.3rem;
    }

    .sticky-banner {
        justify-content: space-between;
        padding: 0.75rem 2rem;
    }
    .sticky-banner p {
        font-size: 1rem;
        margin-right: 0;
        text-align: left;
    }
    .sticky-banner .btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .floating-contact {
        bottom: 70px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .sticky-banner p {
        margin: 0;
        font-size: 1.1rem;
        margin-right: 1rem;
    }
    .sticky-banner .btn {
        font-size: 1rem;
        padding: 0.25rem 0.75rem;
        flex-shrink: 0;
        color: var(--primary-color);
    }

    .copy {
        height: 12vh;
    }

    .copy p{
        font-size: 1rem;
    }

    .floating-contact {
        position: fixed;
        bottom: 45px;
        right: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Media Query para móviles pequeños (máximo 480px) --- */
@media screen and (max-width: 480px){
    h1{
        font-size: 1.3rem;
        text-shadow: 1px 1px 2px black;
    }

    h5{
        font-size: 0.95rem;
        font-weight: 600;
    }

    p{
        font-size: 0.8rem;
        line-height: 1.4;
    }

    li{
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .btn{
        font-size: 1.2rem;
    }

    .form-control, .form-select{
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem 0;
        height: 50vh;
    }

    section {
        padding: 3rem 0;
    }
}

