* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #22c55e;
    --accent-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --green-primary: #25d366;
    --green-secondary: #128c45;
    --green-hover: #20ba5a;
    
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --section-padding: 2rem 0;
    --container-padding: 1rem;
    --gap-small: 1rem;
    --gap-medium: 2rem;
    --gap-large: 3rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Utilidades */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.text-center { text-align: center; }

/* Enhanced Navbar */
.navbar {
    background: rgba(125, 144, 214, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: slideDown 0.8s ease-out;
}



.navbar.scrolled {
    background: rgba(30, 64, 175, 0.98);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
    animation: fadeInLeft 1s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInRight 1s ease-out 0.6s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.register-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.cart-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.cart-icon i {
    color: white;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}



/* HERO SECTION */
.hero {
    margin-top: 20px;
    padding: var(--section-padding);
    background: linear-gradient(135deg, #8edcdf 0%, #40867b 100%);
    color: white;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ABOUT SECTION */
.about {
    padding: var(--section-padding);
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
    align-items: center;
    text-align: center;
}

.about-text h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-small);
    justify-content: center;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.stat h3 {
    font-size: 2rem;
    color: #22c55e;
    font-weight: bold;
}

.stat p {
    color: #64748b;
    font-size: 0.9rem;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

/* MISSION VISION SECTION */
.mission-vision {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.mv-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
}

.mv-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mv-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-icon i {
    font-size: 1.5rem;
    color: white;
}

.mv-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.mv-card p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
}

/* VALUES SECTION */
.values {
    padding: var(--section-padding);
    background: white;
}

.values h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-small);
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 1.2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.value-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* TEAM SECTION */
.team {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.team h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.team-description {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-small);
}

.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image i {
    font-size: 1.5rem;
    color: white;
}

.team-card h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.team-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #6179bd 0%, #354169 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, var(--green-hover) 0%, var(--green-primary) 100%);
    transform: scale(1.1);
    color: var(--white);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-heavy);
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ef4444;
}

.modal-content h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* MEDIA QUERIES */

/* Tablets pequeñas */
@media (min-width: 480px) {
    :root {
        --container-padding: 1.5rem;
        --section-padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-text h2,
    .values h2,
    .team h2 {
        font-size: 2.2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .whatsapp-float {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
}

/* Tablets */
@media (min-width: 768px) {
    :root {
        --section-padding: 4rem 0;
        --gap-medium: 3rem;
        --gap-large: 4rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        box-shadow: none;
        gap: 0.5rem;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        margin: 0;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .nav-link:hover,
    .nav-link.active {
        transform: translateY(-2px);
    }
    
    .register-btn {
        display: inline-flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        margin-top: 80px;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: row;
        text-align: left;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 1;
        max-width: none;
    }
    
    .stats {
        justify-content: flex-start;
    }
    
    .mv-grid {
        flex-direction: row;
    }
    
    .mv-card {
        flex: 1;
        padding: 2.5rem;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
    }
    
    .mv-icon i {
        font-size: 1.8rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-medium);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .whatsapp-float {
        width: 70px;
        height: 70px;
        font-size: 28px;
        bottom: 25px;
        right: 25px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 2rem;
        max-width: 500px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .logo {
        height: 45px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-text h2,
    .values h2,
    .team h2 {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mv-card {
        padding: 3rem;
    }
    
    .mv-icon {
        width: 80px;
        height: 80px;
    }
    
    .mv-icon i {
        font-size: 2rem;
    }
    
    .value-card,
    .team-card {
        padding: 2rem;
    }
    
    .value-icon,
    .team-image {
        width: 70px;
        height: 70px;
    }
    
    .value-icon i,
    .team-image i {
        font-size: 1.5rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    :root {
        --container-padding: 2rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .about-content {
        gap: var(--gap-large);
    }
    
    .stats {
        gap: var(--gap-medium);
    }
    
    .stat h3 {
        font-size: 2.5rem;
    }
}

/* Landscape móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 250px;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-menu {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 2rem;
    }
}

/* Accesibilidad y mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover,
    .mv-card:hover,
    .value-card:hover,
    .team-card:hover {
        transform: none;
    }
    
    .nav-link:active,
    .mv-card:active,
    .value-card:active,
    .team-card:active {
        transform: scale(0.98);
    }
    
    .cart-icon,
    .register-btn,
    .btn-primary {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link,
    .footer-section a {
        border: 1px solid transparent;
    }
    
    .nav-link:focus,
    .footer-section a:focus {
        border-color: white;
        outline: 2px solid white;
    }
}
