* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --dorado-principal: #F2B547;
    --marron-oscuro: #5A280F;
    --naranja-terracota: #D15E25;
    --amarillo-suave: #F1B84C;
    --texto-oscuro: #333;
    --texto-claro: #fff;
    --fondo-claro: #f9f5f0;
}

body {
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

/* Header con hero carrusel */
.hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-image 5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 80px;
    /* Espacio para el navbar */
}

.hero-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2.5s ease-in-out;
    z-index: 1;
}

.hero-fondo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Ajusta la opacidad a tu gusto */
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    flex-wrap: wrap;
}

.nav-derecha {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nav-iconos {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo de los íconos */
.nav-iconos .icono {
    color: var(--marron-oscuro);
    font-size: 1.3rem;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 181, 71, 0.1);
    text-decoration: none;
}

.nav-iconos .icono:hover {
    color: white;
    background: var(--dorado-principal);
    transform: translateY(-3px);
}

/* Efecto al hacer scroll (se activa con JS) */
.navbar.scrolled {
    position: fixed;
    background: #FFF;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .logo {
    height: 50px;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--marron-oscuro);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación del ícono cuando está abierto */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -9px);
}

.logo {
    height: 85px;
    /* Más grande */
    width: auto;
    transition: all 0.3s;
}

.logo:hover {
    filter: brightness(1.2) drop-shadow(0 6px 15px var(--dorado-principal));
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: var(--marron-oscuro);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.menu a:hover,
.menu a.active {
    background: var(--dorado-principal);
    color: var(--marron-oscuro);
    text-shadow: none;
}

/* Texto central del hero */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    max-width: 900px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    border-left: 5px solid var(--dorado-principal);
    border-right: 5px solid var(--dorado-principal);
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    border-radius: 10px;
}

@media (max-width: 768px) {

    .menu a {
        font-size: 0.8rem;
    }
    
        .hero-content {
        margin-top: 0 !important;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        padding: 15px 20px !important;
        border-left: 3px solid var(--dorado-principal);
        border-right: 3px solid var(--dorado-principal);
    }

    .menu {
        justify-content: center;
        gap: 15px;
    }
    
     .menu-toggle {
        display: flex;
    }
    
    .navbar {
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 15px 20px !important;
    }
    
    .nav-derecha {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-derecha.active {
        right: 0;
    }
    
    .nav-iconos {
        order: 2;
        justify-content: center;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        order: 1;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu a {
        display: block;
        padding: 12px;
        font-size: 1.2rem;
    }
    
    /* Overlay oscuro detrás del menú */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ajuste del logo en móvil */
    .logo {
        height: 50px;
    }
    
    /* Espacio para el navbar fijo */
    body {
        padding-top: 80px;
    }
    
    .hero {
        margin-top: 0;
    }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 65px;
    z-index: 100;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Footer */
footer {
    background-color: var(--marron-oscuro);
    color: #ecf0f1;
    padding: 50px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--dorado-principal);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--naranja-terracota);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p,
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--dorado-principal);
    text-decoration: underline;
}

.social-link {
    display: inline-block !important;
    background: var(--naranja-terracota);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--naranja-terracota);
    color: #bdc3c7;
}

/* Secciones generales */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--marron-oscuro);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--dorado-principal), var(--naranja-terracota));
    border-radius: 2px;
}

/* Nosotros: imagen + texto */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nosotros-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.nosotros-img img:hover {
    transform: scale(1.02);
}

.nosotros-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Tarjetas de Misión, Visión, Filosofía */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.mvv-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    border-top: 5px solid var(--amarillo-suave);
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(210, 94, 37, 0.2);
}

.mvv-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--dorado-principal);
}

.mvv-card h3 {
    color: var(--marron-oscuro);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mvv-card p {
    color: #666;
    line-height: 1.6;
}

/* Sección de compromiso doble */
.compromiso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.compromiso-card {
    background: linear-gradient(135deg, var(--amarillo-suave), var(--dorado-principal));
    padding: 40px 30px;
    border-radius: 20px;
    color: var(--marron-oscuro);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.compromiso-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--marron-oscuro);
    padding-left: 15px;
}

.compromiso-card ul {
    list-style: none;
}

.compromiso-card li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compromiso-card li::before {
    content: '✓';
    background: var(--marron-oscuro);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Ofrecemos - bloques alternados */
.ofrecemos-bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.ofrecemos-bloque:nth-child(odd) {
    background-color: #fff;
}

.ofrecemos-bloque:nth-child(even) {
    background-color: var(--fondo-claro);
}

.ofrecemos-img {
    height: 400px;
    overflow: hidden;
}

.ofrecemos-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ofrecemos-img img:hover {
    transform: scale(1.05);
}

.ofrecemos-texto {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ofrecemos-texto h3 {
    font-size: 2.2rem;
    color: var(--marron-oscuro);
    margin-bottom: 20px;
}

.ofrecemos-texto p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.btn-wpp {
    display: inline-block;
    background-color: #F1B84C;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    width: fit-content;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgb(241, 184, 76);
}

.btn-wpp:hover {
    background-color: #F2A91D;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .ofrecemos-bloque {
        display: flex !important;
        flex-direction: column !important;
    }

    .ofrecemos-img {
        height: 250px !important;
        order: 1;
    }
    
    .ofrecemos-texto {
        order: 2;
        align-items: center;
    }
    
    .ofrecemos-texto h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    .ofrecemos-texto p {
        font-size: 0.95rem !important;
        text-align: center;
    }
}

/* Productos - grid de 4 */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0 60px;
}

.producto-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(210, 94, 37, 0.3);
}

.producto-img {
    height: 200px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.producto-card:hover .producto-img img {
    transform: scale(1.1);
}

.producto-info {
    padding: 20px 15px 25px;
    text-align: center;
}

.producto-info h4 {
    font-size: 1.2rem;
    color: var(--marron-oscuro);
    margin-bottom: 5px;
}

.producto-info .codigo {
    color: var(--naranja-terracota);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.producto-info .btn-select {
    background: var(--dorado-principal);
    color: var(--marron-oscuro);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.producto-info .btn-select:hover {
    background: var(--naranja-terracota);
    color: white;
}

/* Texto de productos */
.productos-texto {
    background: var(--fondo-claro);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.productos-texto h3 {
    color: var(--marron-oscuro);
    font-size: 2rem;
    margin-bottom: 20px;
}

.productos-texto p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* Preguntas Frecuentes */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--dorado-principal);
}

.faq-item h3 {
    color: var(--marron-oscuro);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Contacto página */
/* Formulario de contacto */
.formulario-container {
    background: var(--fondo-claro);
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.formulario-titulo {
    color: var(--marron-oscuro);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--dorado-principal);
    padding-bottom: 15px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--marron-oscuro);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dorado-principal);
    box-shadow: 0 0 0 3px rgba(242, 181, 71, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.btn-enviar {
    background: var(--dorado-principal);
    color: var(--marron-oscuro);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    width: fit-content;
    align-self: center;
    box-shadow: 0 5px 15px rgba(242, 181, 71, 0.3);
}

.btn-enviar:hover {
    background: var(--naranja-terracota);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 94, 37, 0.4);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contacto-info {
    background: var(--fondo-claro);
    padding: 40px;
    border-radius: 20px;
}

.contacto-info a{
    text-decoration: none;
}

.contacto-info h3 {
    color: var(--marron-oscuro);
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.contacto-info h3:first-of-type {
    margin-top: 0;
}

.contacto-info p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.contacto-info i {
    color: var(--naranja-terracota);
    margin-right: 10px;
    font-style: normal;
    font-weight: bold;
}

.mapa {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .formulario-container {
        padding: 25px;
        margin: 20px 15px;
    }

    .formulario-titulo {
        font-size: 1.5rem;
    }

    .btn-enviar {
        width: 100%;
        text-align: center;
    }
}

/* ===== FIX RESPONSIVE NOSOTROS ===== */
@media screen and (max-width: 768px) {

    /* Misión, Visión, Filosofía en UNA columna */
    .mvv-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Grid de quienes somos */
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nosotros-texto .section-title {
        font-size: 2rem;
        margin-top: 0;
    }

    /* Compromiso en una columna */
    .compromiso-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ajustar textos */
    .nosotros-texto p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .mvv-card {
        padding: 25px 15px;
    }

    .mvv-card h3 {
        font-size: 1.3rem;
    }

    /* Reducir padding de containers */
    .container {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .mvv-card img {
        width: 60px;
        height: 60px;
    }

    .compromiso-card {
        padding: 25px 20px;
    }

    .compromiso-card h3 {
        font-size: 1.5rem;
    }
}