body {
    margin: 0;
    padding: 0;
    background-color: #ffecd9;
}

.negrita {
    font-weight: bold;
}

/* NAVBAR PRINCIPAL*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #b0413e;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    min-height: 100px;
    padding: 0%;
    padding: 40px 40px;
    margin: 0 auto;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 1.4rem;
    position: relative;
    padding: 15px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: #f8d7b5;
    transform: translateY(-2px);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 10px;
    left: 0;
    background-color: #f8d7b5;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2.2rem;
    color: white;
    background: none;
    border: none;
    padding: 10px;
}

/*FOOTER*/
footer {
    background: linear-gradient(135deg, #4c1100 0%, #511301 100%);
    color: #fff;
    margin-top: 80px;
    padding: 20px 5% 20px;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 5px;
    transition: transform 0.3s ease;
}

.footer-item:hover {
    transform: translateY(-5px);
}

.footer-item i {
    font-size: 1.8rem;
    color: #FFD166;
    margin-bottom: 5px;
}

.footer-line {
    width: 60px;
    height: 3px;
    background: #FFD166;
    margin: 10px 0;
    opacity: 0.8;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-social-icons a {
    color: #FFD166;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 6px;
}

.footer-social-icons a:hover {
    color: #fff;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 10px 10px 0;
    border-top: 1px solid rgba(255, 209, 102, 0.2);
    max-width: 1400px;
    margin: 0 auto;
}

/*CONTAINER*/
.container-global {
    max-width: 1200px;
    margin: 30px auto 30px auto;
    padding: 0 20px;
    background-color: #f8f8e0;
}

/* ---- ESTILOS DE TEXTO ---- */
.titulo-principal {
    font-size: 3.1rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 6px 6px 5px rgba(0, 0, 0, 0.05),
        2px 2px 3px rgba(30, 30, 30, 0.6);
}

.titulo-contenedor {
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.titulo-secundario {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    text-align: center;
    color: #b0413e;
    margin-bottom: 3rem;
    text-shadow: 6px 6px 5px rgba(0, 0, 0, 0.05),
        2px 2px 3px rgba(30, 30, 30, 0.6);
}

.subrayado {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    margin-top: 0.6rem;
}

.subrayado path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: dibujarBorrar 3s ease-in-out infinite;
}

@keyframes dibujarBorrar {
    0% {
        stroke-dashoffset: 300;
        opacity: 1;
    }

    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 0;
        opacity: 0;
    }

    100% {
        stroke-dashoffset: 300;
        opacity: 0;
    }
}

.titulo-pequeno {
    font-size: 1.5rem;
    color: #b0413e;
    font-weight: bold;
}

.parrafo {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #5d6d7e;
    text-align: justify;
    margin-bottom: 1rem;
}

.titulo-valores-vision {
    font-size: 1.5rem;
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
    text-shadow: 6px 6px 5px rgba(0, 0, 0, 0.05),
        2px 2px 3px rgba(30, 30, 30, 0.6);
}

.parrafo-valores-vision {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #5d6d7e;
    text-align: justify;
    margin-bottom: 1rem;
}

.tituloProducto {
    margin: 1.8rem;
    text-align: center;
    font-size: 1rem;
    color: #b0413e;
    margin-bottom: 1rem;
}

.subTituloProducto {
    text-align: center;
    font-size: 1.2rem;
    color: #5d6d7e;
    margin-bottom: 1rem;
}

/* HOVER*/
.img-hover {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.img-hover img {
    width: 100%;
    transition: transform 0.3s ease;
}

.img-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(176, 65, 62, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-hover:hover {
    box-shadow: 0 8px 20px rgba(176, 65, 62, 0.35);
}

.img-hover:hover img {
    transform: scale(1.05);
}

.img-hover:hover::after {
    opacity: 1;
}

.img-hover:active {
    box-shadow: 0 8px 20px rgba(176, 65, 62, 0.35);
}

.img-hover:active img {
    transform: scale(1.05);
}

.img-hover:active::after {
    opacity: 1;
}

hr.separador {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #B0413E, transparent);
    margin: 2rem 0;
}

/*WHATSSAP*/
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #02f75a;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    font-size: 30px;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(2, 247, 90, 0.7);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0; }
}

/*NAVBAR*/
@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 70px;
        padding: 0 15px;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #9a3735;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a {
        display: block;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .logo-img {
        height: 50px;
    }
}

/*FOOTER*/
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .footer-item {
        gap: 10px;
        padding: 10px;
    }

    .footer-social-icons {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 5% 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-item {
        max-width: 250px;
        margin: 0 auto;
    }
}

/*CONTAINER*/
@media (max-width: 768px) {
    .container-global {
        margin: 60px auto 30px auto;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container-global {
        margin: 50px auto 20px auto;
        padding: 0 10px;
    }
}

/* ---- TEXTO GENERAL ---- */
@media (max-width: 992px) {
    .titulo-principal {
        font-size: 1.8rem;
    }

    .parrafo {
        font-size: 1.3rem;
    }

    .titulo-pequeno {
        font-size: 1rem;
    }

    .titulo-valores-vision {
        font-size: 1rem;
    }

    .parrafo-valores-vision {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .titulo-principal {
        font-size: 1.8rem;
    }

    .parrafo {
        font-size: 1.1rem;
    }

    .titulo-pequeno {
        font-size: 1rem;
    }

    .titulo-valores-vision {
        font-size: 1rem;
    }

    .parrafo-valores-vision {
        font-size: 1rem;
    }

    .subTituloProducto {
        font-size: 0.8rem;
    }

    .tituloProducto {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .titulo-principal {
        font-size: 1.8rem;
        text-align: center;
    }

    .parrafo {
        font-size: 1.1rem;
        text-align: center;
    }

    .titulo-pequeno {
        font-size: 1rem;
    }

    .titulo-valores-vision {
        font-size: 1.2rem;
    }

    .parrafo-valores-vision {
        font-size: 1.2rem;
    }
}

/*TITULO SUBRAYADO*/
@media (max-width: 768px) {
    .titulo-secundario {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .subrayado {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .titulo-secundario {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .subrayado {
        max-width: 120px;
    }
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* dos columnas en tablets */
        gap: 15px;
        padding: 0 10px;
    }

    .footer-item i {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .footer-social-icons {
        gap: 15px;
        margin: 15px 0;
    }
}

/*FOOTER*/
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 5px;
    }

    .footer-item {
        gap: 3px;
        padding: 3px;
    }

    .footer-item i {
        font-size: 1.3rem;
    }

    .footer-social-icons {
        gap: 10px;
        margin: 10px 0;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 5px 5px 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes para móviles pequeños */
    .logo img {
        height: 50px;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 24px;
    }
}