:root {
    --primary-color: #2412ba;
    --secondary-color: #c1092a;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: #1a0d9c;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #a00824;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 span {
    color: var(--primary-color);
}

.logo p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.btn-login:hover {
    background-color: #1a0d9c;
    color: white !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Slider */
.hero-slider {
    margin-top: 80px;
    position: relative;
}

.slider-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn-slider {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-slider:hover {
    background-color: #a00824;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: white;
}

/* Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.btn-product {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-product:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Slider Productos */
.supplies-section {
    background-color: var(--light-gray);
}

.supplies-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.supplies-slider::-webkit-scrollbar {
    height: 8px;
}

.supplies-slider::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.supplies-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.supply-item {
    flex: 0 0 auto;
    width: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 20px;
    transition: var(--transition);
}

.supply-item:hover {
    transform: translateY(-5px);
}

.supply-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.supply-item h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* WhatsApp */
.whatsapp-section {
    background: linear-gradient(to right, var(--primary-color), #3a25d3);
    color: white;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.whatsapp-icon {
    font-size: 6rem;
}

.whatsapp-text h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.whatsapp-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after, .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    
    /* HEADER */
    .header {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 9999 !important;
        height: 70px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 15px !important;
    }
    
    /* LOGO */
    .logo-imagen {
        max-height: 45px !important;
        width: auto !important;
    }
    
    /* HAMBURGUESA - SIEMPRE VISIBLE */
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 30px !important;
        height: 25px !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .bar {
        display: block !important;
        width: 100% !important;
        height: 4px !important;
        background-color: #2412ba !important;
        border-radius: 4px !important;
        transition: all 0.3s !important;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
    }
    
    /* MENÚ - SIMPLE Y FUNCIONAL */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        display: none !important; /* OCULTO POR DEFECTO */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        z-index: 10000 !important;
    }
    
    .nav-menu.active {
        display: block !important; /* MOSTRAR CUANDO ACTIVO */
    }
    
    .nav-menu li {
        margin: 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 18px 20px !important;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: #f5f5f5 !important;
        color: #2412ba !important;
    }
    
    .nav-menu a.active {
        color: #2412ba !important;
        font-weight: 600 !important;
        border-left: 4px solid #2412ba !important;
    }
    
    .btn-login {
        background: #2412ba !important;
        color: white !important;
        margin: 10px !important;
        text-align: center !important;
        border-radius: 5px !important;
    }
    
    /* NO HAY OVERLAY - MÁS SIMPLE */
    body.menu-open {
        overflow: hidden !important;
    }

    /* ========================================
       ESTILOS PARA CONTACTO.HTML EN MÓVIL
       ======================================== */
    
    /* Hero de contacto */
    .contacto-hero {
        margin-top: 70px !important;
        padding: 60px 15px 40px !important;
    }
    
    .contacto-hero h1 {
        font-size: 2rem !important;
    }
    
    .contacto-hero p {
        font-size: 1rem !important;
    }
    
    /* Contenedor de contacto */
    .contacto-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }
    
    /* Items de contacto */
    .info-contacto h2 {
        font-size: 1.8rem !important;
    }
    
    .contacto-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .contacto-icono {
        margin: 0 auto 15px !important;
    }
    
    .contacto-texto h4 {
        font-size: 1.2rem !important;
    }
    
    .contacto-texto p {
        font-size: 0.95rem !important;
    }
    
    /* Formulario */
    .formulario-contacto {
        padding: 25px 20px !important;
    }
    
    .formulario-contacto h3 {
        font-size: 1.5rem !important;
    }
    
    .form-control, .form-select {
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    .btn-enviar {
        padding: 14px !important;
        font-size: 1rem !important;
    }
    
    /* WhatsApp contacto */
    .whatsapp-contacto {
        padding: 40px 20px !important;
        margin: 30px 15px !important;
    }
    
    .whatsapp-contenido h2 {
        font-size: 1.8rem !important;
    }
    
    .whatsapp-contenido p {
        font-size: 1rem !important;
    }
    
    .btn-whatsapp-grande {
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
        width: 100% !important;
    }
    
    /* Mapa */
    .mapa-section {
        padding: 0 15px !important;
    }
    
    .mapa-container {
        height: 300px !important;
    }
    
    /* Equipo */
    .equipo-section {
        padding: 40px 15px !important;
    }
    
    .equipo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .equipo-card {
        max-width: 350px !important;
        margin: 0 auto !important;
    }
    
    .equipo-imagen {
        height: 200px !important;
    }
    
    .equipo-info h4 {
        font-size: 1.2rem !important;
    }
    
    .equipo-info p {
        font-size: 0.95rem !important;
    }
    
    /* Horarios */
    .horarios-section {
        padding: 40px 15px !important;
        margin: 30px 0 !important;
    }
    
    .horarios-contenido {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .horarios-texto h2 {
        font-size: 1.8rem !important;
    }
    
    .horarios-lista li {
        flex-direction: column !important;
        text-align: center !important;
        gap: 5px !important;
    }
    
    .emergencia-card {
        padding: 30px 20px !important;
    }
    
    .emergencia-card h3 {
        font-size: 1.5rem !important;
    }
    
    .btn-emergencia {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }
    
    /* FAQ */
    .faq-section {
        padding: 40px 15px !important;
    }
    
    .faq-pregunta {
        padding: 15px !important;
    }
    
    .faq-pregunta h4 {
        font-size: 1rem !important;
    }
    
    .faq-respuesta {
        padding: 0 15px 15px !important;
    }
    
    .faq-respuesta p {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   TABLETS (769px - 1024px)
   ======================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 25px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .slider-container {
        height: 450px !important;
    }
    
    .contacto-container {
        gap: 40px !important;
    }
    
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}