/* ---- RESET Y ESTILOS GENERALES ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FBFAF9; 
    color: #191818;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- ESTILOS DE LA BARRA DE NAVEGACIÓN ---- */
.navbar {
    background-color: #FFFFFF;
    padding: 0.5rem 2rem;
    border-bottom: 2px solid #BF4408;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    max-height: 35px;
    display: block;
}

.navbar-links-desktop {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: 2rem;
}

.navbar-links-desktop a {
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.navbar-links-desktop a:hover {
    color: #BF4408;
}

.navbar-links-desktop a.active {
    color: #BF4408;
    font-weight: 700;
    border-bottom-color: #BF4408;
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon.instagram {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.social-icon.facebook {
    background-color: #1877F2;
}

/* ---- ESTILOS DE ELEMENTOS MÓVILES ---- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
}

.mobile-menu a.active {
    color: #BF4408;
    font-weight: 700;
}

.mobile-menu .mobile-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #EAEAEA;
}

.mobile-menu .mobile-social a {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.mobile-menu .mobile-social a .fab {
    font-size: 1.5rem;
    width: 25px;
    text-align: center;
}
.mobile-menu .whatsapp .fab { color: #25D366; }
.mobile-menu .instagram .fab { color: #d6249f; }
.mobile-menu .facebook .fab { color: #1877F2; }

/* ---- ESTILOS PÁGINA NOSOTROS ---- */
.about-section {
    padding: 5rem 2rem;
    background-color: #FFFFFF;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-image {
    flex: 0 0 40%;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 6px solid white;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    color: #BF4408;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text .signature {
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: right;
    margin-top: 2.5rem;
    color: #191818;
}

/* ---- ESTILOS PÁGINA PRODUCTOS ---- */
.catalog-section {
    padding: 5rem 2rem;
    background-color: #FFFFFF;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-container {
    max-width: 1100px; /* Restaurado a 1100px */
    margin: 0 auto;
}

.catalog-container h2 {
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.catalog-container p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

.catalog-container p a {
    color: #BF4408;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #BF4408;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.catalog-container p a:hover {
    background-color: #BF4408;
    color: #FFFFFF;
}

.catalog-image-wrapper img {
    width: 100%; 
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ---- INICIO: ESTILOS PÁGINA CALIDAD (AÑADIDOS AHORA) ---- */
.content-image-section {
    padding: 5rem 2rem;
    background-color: #FFFFFF;
    text-align: center;
    min-height: 70vh; /* Ajusta según necesites */
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image-container {
    max-width: 1100px; /* Mismo ancho que .about-container */
    margin: 0 auto;
}

.content-image-container h2 {
    font-size: 2.8rem; /* Igual que en "Nosotros" */
    color: #BF4408; 
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.content-image-container img {
    width: 100%;
    max-width: 900px; /* Límite para que no sea gigante */
    height: auto;
    display: block; /* Asegura que no haya espacio extra debajo */
    margin-left: auto; /* Centra la imagen si es más pequeña que el contenedor */
    margin-right: auto; /* Centra la imagen */
    border-radius: 12px; /* Mismo borde que en "Nosotros" */
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Sombra consistente */
    border: 6px solid white; 
}
/* ---- FIN: ESTILOS PÁGINA CALIDAD ---- */


/* ---- ESTILOS DE LA PÁGINA HOME ---- */
.hero-section {
    padding: 2rem 2rem 0 2rem;
    background-color: #FFFFFF;
    text-align: center;
}

.hero-content {
    display: inline-block;
}

.hero-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.address-text {
    background-color: #FFFFFF;
    color: #555;
    font-size: 1.2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-divider {
    border: none;
    border-top: 1px solid #EAEAEA;
    margin: 0 auto;
    width: 100%;
}

.feature-section {
    padding: 3rem 2rem;
    background-color: #FFFFFF;
}

.feature-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-text p {
    margin-bottom: 1rem;
}

.centered-image-section {
    background-color: #FFFFFF;
    padding: 2rem;
    padding-top: 0;
    text-align: center;
}

.centered-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2.5rem;
}

.centered-image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.carousel-section {
    padding: 3rem 0;
}

.carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation-name: scroll-right-to-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes scroll-right-to-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-track a {
    display: block;
    background-color: #FFFFFF;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-track img {
    display: block;
    width: auto;
    transition: transform 0.3s ease-out;
}

.expo-carousel {
    background-color: #FFFFFF; 
    padding: 1.5rem 0;
}

.expo-carousel .carousel-container {
    height: 330px;
    display: flex;
    align-items: center;
}

.expo-carousel .carousel-track {
    animation-duration: 90s;
}

.expo-carousel .carousel-track img {
    height: 240px;
}

.expo-carousel .carousel-track a:hover img {
    transform: scale(1.3);
}

.expo-carousel .carousel-track a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.products-carousel {
    background-color: #FBF1EB; 
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
    padding-top: 1rem;
}
.products-carousel .carousel-track {
    animation-duration: 40s;
}
.products-carousel .carousel-track img {
    height: 120px;
}
.products-carousel .carousel-track a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.section-title-wrapper {
    background-color: #FBF1EB; 
    text-align: center;
    padding: 2.5rem 2rem 1rem 2rem;
    border-top: 1px solid #EAEAEA;
}

.section-title-wrapper h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.contact-cta-section {
    padding: 5rem 2rem;
    background-color: #FBF1EB;
}

.cta-content-wrapper {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-content-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem; 
}

/* ---- INICIO: CORRECCIÓN ALINEACIÓN TARJETAS ---- */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch; /* Añadido */
}

.contact-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Cambiado */
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
/* ---- FIN: CORRECCIÓN ALINEACIÓN TARJETAS ---- */

.cta-grid:hover .contact-card {
    transform: scale(0.95);
    opacity: 0.7;
}

.cta-grid:hover .contact-card:hover {
    transform: scale(1.05);
    opacity: 1;
    z-index: 10;
}

.contact-card-icon svg {
    color: #BF4408;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #191818;
}

/* ---- INICIO: CORRECCIÓN ALINEACIÓN TARJETAS ---- */
.contact-card p {
    line-height: 1.5;
    color: #555;
    /* flex-grow: 1; ELIMINADO */
}
/* ---- FIN: CORRECCIÓN ALINEACIÓN TARJETAS ---- */


/* ---- INICIO: CORRECCIÓN ALINEACIÓN TARJETAS ---- */
.cta-button {
    background-color: #BF4408;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    margin-top: auto; /* Añadido */
}
/* ---- FIN: CORRECCIÓN ALINEACIÓN TARJETAS ---- */

.cta-button:hover {
    background-color: #E65103;
}

.image-rotator-section {
    padding: 4rem 2rem;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rotator-image-wrapper {
    max-width: 800px;
    width: 100%;
    height: 450px;
    position: relative;
    perspective: 1000px;
    margin: 0 auto 2rem auto;
}

.image-rotator-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.rotator-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.8s ease-in-out;
}

.rotator-item.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 30;
}

.rotator-item.left {
    transform: translateX(-65%) scale(0.7);
    opacity: 0.6;
    z-index: 20;
}

.rotator-item.right {
    transform: translateX(65%) scale(0.7);
    opacity: 0.6;
    z-index: 20;
}

.rotator-item.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 10;
}

.rotator-text-side {
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---- ESTILOS DEL FOOTER ---- */
.site-footer {
    background-color: #191818; 
    color: #f0f0f0; 
    padding: 3rem 2rem;
    border-top: 3px solid #BF4408; 
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left p,
.footer-right p {
    margin: 0.3rem 0;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #BF4408;
}

.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #BF4408;
    border-color: #BF4408;
    transform: scale(1.1) translateY(-5px);
}

/*
==============================================
==== MEDIA QUERY PARA DISEÑO ADAPTABLE ====
==============================================
*/

@media (max-width: 991px) {
    .navbar-links-desktop,
    .navbar-social {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-menu.is-active {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background-color: #FFFFFF;
        padding: 2rem;
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%;
        text-align: left;
        font-weight: 600;
        font-size: 1.2rem;
        border-bottom: 1px solid #EAEAEA;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem; 
    }
    
    .cta-grid:hover .contact-card {
        transform: scale(1);
        opacity: 1;
    }

    .contact-card:hover {
        transform: scale(1.05);
    }

    /* ---- INICIO: CORRECCIÓN ALINEACIÓN TARJETAS (MÓVIL) ---- */
    .cta-button {
        margin-top: 1rem; /* Restaurado */
    }
    /* ---- FIN: CORRECCIÓN ALINEACIÓN TARJETAS (MÓVIL) ---- */
}


@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-container,
    .carousel-wrapper,
    .feature-section,
    .contact-cta-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .address-text {
        font-size: 0.9rem;
        white-space: normal;
    }

    .feature-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .rotator-image-wrapper {
        width: 100%;
        height: 250px;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .about-text h2 {
        font-size: 2.2rem;
    }
    .about-text .signature {
        text-align: center;
        font-size: 1.2rem;
    }

    .catalog-section {
        padding: 4rem 1.5rem;
    }
    .catalog-container h2 {
        font-size: 1.8rem;
    }
    .catalog-container p {
        font-size: 1.1rem;
    }

    /* INICIO: MEDIA QUERY PÁGINA CALIDAD (AÑADIDOS AHORA) */
    .content-image-section {
        padding: 3rem 1.5rem;
    }
    .content-image-container h2 {
        font-size: 2.2rem; /* Título más pequeño en móvil */
    }
    /* FIN: MEDIA QUERY PÁGINA CALIDAD */

    .site-footer {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }
}