/* ==================================================
   MECAFOR INDUSTRIAL ACADEMY
   APPLE + INDUSTRIA 4.0
================================================== */

:root {
    --bg-primary: #050816;
    --bg-secondary: #0b1120;
    --surface: rgba(255, 255, 255, 0.05);
    --electric-blue: #00c2ff;
    --electric-blue-light: #56d8ff;
    --industrial-orange: #ff8c00;
    --white: #ffffff;
    --gray: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);

}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ================= SCROLL ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #02040d;
}

::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border-radius: 50px;
}

/* ================= GENERAL ================= */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

section {
    padding: 120px 0;
}

img {
    width: 100%;
    display: block;
}

h1,h2,h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.section-tag {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    font-size: .85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--electric-blue);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}


/* ==== SCROLL ============== */
.hidden-section {
    opacity: 0;
    transform: translateY(80px);
    filter: blur(10px);
    transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}


/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(20px);
    background: rgba(5, 8, 22, .5);
    border-bottom: 1px solid var(--border);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}


.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--electric-blue), #006eff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
}

@media (hover: hover) {

    .logo:hover {
        opacity: .6;
    }

}

.logo-text h1 {
    font-size: 1.2rem;
}

.logo-text span {
    color: var(--gray);
    font-size: .8rem;
}

/* NAV */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    transition: .3s;
}

.nav-links a:hover {
    color: var(--electric-blue);
}

/* BUTTON */
.btn-nav,
.btn-primary {
    background: linear-gradient(135deg, var(--electric-blue), #006eff);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: .4s;
}

.btn-nav:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 194, 255, .5);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 14px 24px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(20px);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10% 35%;
    filter: brightness(.95) contrast(1.2);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 8, 22, .50), rgba(5, 8, 22, .80));
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 90%);
    margin: auto;
    text-align: center;
}

.hero-tag {
    color: var(--electric-blue);
    letter-spacing: 3px;
    font-size: .9rem;
}

.hero h2 {
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    max-width: 1000px;
    margin: 20px auto 30px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(0, 194, 255, .12);
}

.hero p {
    max-width: 750px;
    margin: auto;
    color: #d6dce5;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* STATS */
.hero-stats {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stats h3 {
    color: var(--electric-blue);
    font-size: 2rem;
}

.hero-stats span {
    color: var(--gray);
}

/* ================= FILOSOFÍA ================= */
.philosophy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.philosophy-image img {
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.philosophy-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.philosophy-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ================= INSTALACIONES ================= */
.facilities-grid {
    width: min(1400px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 500px;
    cursor: pointer;
}



.facility-card img {
    height: 100%;
    object-fit: cover;
    transition: .8s;
}


.facility-card:hover img {
    transform: scale(1.08);
}


.facility-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
}

.facility-info h3 {
    font-size: 1.8rem;
}

/* ================= CARDS ================= */
.cards {
    width: min(1200px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: .4s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--gray);
}

/* ================= TRANSFORMATION ================= */
.transformation {
    text-align: center;
}

.transformation h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 20px;
}

.transformation p {
    color: var(--gray);
    max-width: 700px;
    margin: auto;
}

/* ================= STATS PANEL ================= */
.control-room {
    background:
        linear-gradient(180deg,
            #0b1120,
            #050816);
}

.stats {
    width: min(1200px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 50px;
    background: var(--surface);
    border-radius: 30px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}


.stat::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(rgba(0, 194, 255, .15), transparent);
    top: -120px;
    right: -120px;
}


.stat h3 {
    color: var(--electric-blue);
    font-size: 3rem;
}

/* ================= EMPRESAS ================= */
.companies {
    position: relative;
}

.companies img {
    border-radius: 30px;
    width: min(1400px, 90%);
    margin: auto;
}

.companies-content {
    width: min(1000px, 90%);
    margin: 90px auto 0;
    text-align: center;
}

.companies-content h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 20px;
}

.companies-content p {
    color: var(--gray);
}

/* ================= CTA ================= */
.cta {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.8) contrast(1.2);

}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, .75);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(3rem, 5vw, 6rem);
    margin-bottom: 50px;
}

/* ================= FOOTER ================= */
footer {
    padding: 60px 5%;
    border-top: 1px solid var(--border);
}

.footer-content {
    width: min(1200px, 90%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

footer span,footer p {
    color: var(--gray);
}


/* ========================================== */
/* ================= MOBILE ================= */
.menu-toggle {
    display: none;
}

@media(max-width:992px) {
    .nav-links {
        display: none;
    }

    .btn-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }


 /* ==========================
   MOBILE MENU
========================== */
    .mobile-active {
    display: flex !important;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 25px;
    padding: 40px;
    background: rgba(5, 8, 22, .98);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,.1);
    list-style: none;
    z-index: 1000;
}


.mobile-active a {
    font-size: 1.1rem;
    text-align: center;
    display: block;
}


    .philosophy .container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 90px 0;
    }


}

/*---------------------*/
@media(max-width:768px) {
    .logo-icon{
        width: 42px;
        height: 42px;
    }

    .logo-text h1{
        font-size: 1rem;
    }

    .logo-text span{
        font-size: .7rem;
    }

    .hero-image {
        object-position: 40% center;
    }

    .hero h2 {
        font-size: 2.3rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 1rem
    }

    .hero-stats {
        gap: 30px;
    }

    .facility-card {
        height: 350px;
    }

    .transformation h2 {
        font-size: 3rem;
    }

}

   

