/* Reset and Base Styles - V3 Minimalista Moderna */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --accent-color: #4CAF50;
    --bg-color: #fafafa;
    --text-color: #000000;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    background: var(--bg-color);
    font-weight: 400;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Ultra minimalista */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section - Minimalista */
.hero {
    position: relative;
    z-index: 1;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('../images/hero-principal.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
    text-align: left;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.scroll-indicator {
    display: none;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 0 50px 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Services Overview */
.services-overview {
    position: relative;
    z-index: 2;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.service-card {
    background: var(--bg-color);
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
    border: none;
}

.service-card:hover {
    background: var(--white);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.service-link:hover {
    text-decoration: underline;
}

/* Escuela Section */
.escuela-section {
    background: var(--bg-color);
}

.escuela-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.escuela-text {
    padding-right: 0;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.escuela-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    display: none;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.escuela-image {
    height: 600px;
}

.escuela-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Instalaciones */
.instalaciones-section {
    background: var(--white);
}

.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.instalacion-card {
    background: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.instalacion-card:hover {
    background: var(--white);
}

.instalacion-image {
    height: 240px;
    overflow: hidden;
}

.instalacion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.instalacion-card:hover .instalacion-image img {
    transform: scale(1.05) translateZ(0);
}

.instalacion-card h4 {
    padding: 25px 25px 8px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.instalacion-card p {
    padding: 0 25px 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: none;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.1) translateZ(0);
    opacity: 0.7;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2rem;
    color: var(--white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-close {
    top: 40px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-card {
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.contact-card:last-child {
    border-bottom: none;
}

.contact-card:hover {
    background: transparent;
    color: inherit;
    transform: none;
    padding-left: 10px;
}

.contact-card:hover .contact-icon {
    transform: none;
}

.contact-card:hover h4,
.contact-card:hover a {
    color: var(--accent-color);
}

.contact-icon {
    font-size: 1.3rem;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.contact-card h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links {
    margin-top: 30px;
}

.social-links h4 {
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--white);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon.facebook,
.social-icon.instagram {
    background: var(--primary-color);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 500px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 25px;
    }

    .nav-container {
        padding: 25px;
    }

    .nav-menu {
        position: fixed;
        top: 81px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        padding: 40px 25px;
        border-bottom: 1px solid var(--border-color);
        transition: left 0.3s ease;
        gap: 30px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translateY(11px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-11px);
    }

    .escuela-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .escuela-image {
        height: 400px;
    }

    section {
        padding: 45px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .instalaciones-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .section-subtitle {
        margin-bottom: 35px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 350px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-counter {
        bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}
