/* General Styles */
:root {
    --dark-blue: #0A0F18;
    --medium-blue: #1A2436;
    --medium-blue-lighter: #2A3446;
    --accent-blue: #1E90FF;
    --light-blue: #ADD8E6;
    --text-white: #F8F8F8;
    --text-light-grey: #CCCCCC;
    --gradient-bg: linear-gradient(135deg, #0A0F18 0%, #1A2436 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light-grey);
    background: var(--dark-blue);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-blue);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background-color: var(--accent-blue);
    color: var(--text-white);
}

/* Header */
.main-header {
    background-color: rgba(10, 15, 24, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-white);
}

.logo span {
    color: var(--accent-blue);
}

.main-nav ul {
    list-style: none;
    display: flex;
    text-wrap: nowrap;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light-grey);
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a.current-page {
    color: var(--accent-blue);
}

.main-nav ul li a.current-page::after {
    width: 0;
}

.main-nav ul li a.current-page:hover {
    color: var(--light-blue);
}

.main-nav ul li a.current-page:hover::after {
    width: 100%;
    background-color: var(--light-blue);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

#burger-content{
    display: none;
    flex-direction: column;
    background-color: var(--dark-blue);
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background-color: var(--text-white);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* position: relative; */
    /* background-size: cover; */
    /* background-position: center; */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    /* padding: 20px; */
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 0.3em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 2em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    background-color: var(--medium-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section-alt {
    background-color: var(--dark-blue);
}

.content-section p {
    /* max-width: 800px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 2em;
}

/* Grid Layouts */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: wrap !important; 
    gap: 30px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Base styles for cards */
.feature-card,
.simple-card,
.advantage-card {
    background-color: var(--medium-blue-lighter);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: block;
    color: inherit;
}


.topic-click {
    transition: transform 0.1s ease;
    color: inherit;
}

.topic-click:hover {
    transform: scale(1.1);

}



.simple-card {
    overflow: hidden;
    background-color: rgba(158, 158, 158, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.simple-card h2,h3,h1{
    margin-bottom: 0px;
}

.simple-card h3, h2{
    color: var(--accent-blue)
}



/* 2. Transición para el contenido oculto */
.simple-card .hide-popup {
    position: absolute;
    inset: 0;
    /* Atajo moderno para top:0, left:0, right:0, bottom:0. Ocupa toda la tarjeta */
    display: flex;
    justify-content: center;
    border-radius: 20px;
    gap: 20px;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Cuando hacemos hover, mostramos el contenido oculto de forma suave */
.simple-card:hover .hide-popup {
    opacity: 1;
    pointer-events: none;
}

.simple-card i{
    color: var(--accent-blue);
    /* position: absolute;
    left: 30px; */
}

.hide-popup div {
    background-color: var(--medium-blue);
    border-radius: 20px;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: 600px;
    max-width: 90vw;
    height: 400px;
    border: 1px solid var(--accent-blue);
    transform: translateY(30%);
}

.hide-popup span {
    color: var(--text-light-grey)
}



.feature-item {
    background-color: var(--medium-blue-lighter);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.feature-card h3,
.feature-item h3,
.advantage-card h3,
.about-vision h3 {
    color: var(--accent-blue);
}

/* Hover states */
.feature-card:hover,
.advantage-card:hover,
.feature-item:hover {
    transform: translateY(-5px);
    background-color: var(--light-blue);
}

.feature-card:hover h3,
.advantage-card:hover h3,
.feature-item:hover h3 {
    color: var(--dark-blue);
}

.feature-card:hover p,
.advantage-card:hover p,
.feature-item:hover p {
    color: var(--dark-blue);
}

.content-section-alt .feature-card,
.content-section-alt .advantage-card,
.content-section-alt .feature-item {
    background-color: var(--medium-blue);
}

.content-section-alt .feature-card:hover,
.content-section-alt .advantage-card:hover,
.content-section-alt .feature-item:hover {
    background-color: var(--medium-blue-lighter);
}

.content-section-alt .feature-card:hover h3,
.content-section-alt .advantage-card:hover h3,
.content-section-alt .feature-item:hover h3 {
    color: var(--text-white);
}

.content-section-alt .feature-card:hover p,
.content-section-alt .advantage-card:hover p,
.content-section-alt .feature-item:hover p {
    color: var(--text-light-grey);
}


/* Parallax Sections */
.parallax-section {
    background-attachment: fixed;
    padding: 100px;
    background-size: cover;
    position: relative;
    overflow: hidden;
    image-rendering: high-quality;
    min-height: fit-content;
}

.parallax-section:first-child{
    min-height: 100vh;
}



@media (max-width: 768px) {
    .parallax-section {
        padding: 100px 30px;
    }
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    border-top: 1px solid var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
}


.parallax-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-align: center;
}

.separator-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 100%;
}

.separator-content h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.separator-content p {
    font-size: 20px !important;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-bg);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    font-size: 3em;
    margin-bottom: 0.5em;
}

.cta-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em;
}

.cta-section .btn {
    margin: 0 10px;
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Footer */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light-grey);
    padding: 60px 0 30px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--text-white);
    font-size: 1.2em;
    margin-bottom: 1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-light-grey);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: var(--medium-blue-lighter);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 600;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-blue);
    border-radius: 5px;
    background-color: var(--dark-blue);
    color: var(--text-light-grey);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type='text']:focus,
.contact-form input[type='email']:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.5);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.btn-primary {
    width: auto;
    display: block;
    margin: 30px auto 0;
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .main-nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-blue);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .main-nav.active ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .parallax-separator h2 {
        font-size: 2.2em;
    }

    .cta-section h2 {
        font-size: 2.5em;
    }

    .grid-3-cols,
    .grid-2-cols {
        grid-template-columns: 1fr !important;

    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero .btn {
        padding: 10px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .parallax-separator h2 {
        font-size: 1.8em;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-section .btn {
        margin: 10px 0;
        /* width: 80%; */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }
}



.seccion-embebido {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-embebido-pop {
    --w: 1400px;
    --h: 900px;

    width: 420px;
    height: 240px;



    position: relative;
    overflow: hidden;
    border-radius: 8px;

    transform-origin: center center;

    /* Transición por defecto (para cerrar): mantiene el z-index alto durante los 0.45s del cierre */
    transition:
        all .45s cubic-bezier(.22, 1, .36, 1),
        z-index 0s linear .45s;

    will-change:
        transform,
        width,
        height,
        inset;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    z-index: 1;
}

/* Blocker overlay to disable mouse interactions with embed during transitions */
.contenedor-embebido-pop.transicionando::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10000;
    background: transparent;
    pointer-events: auto;
}

/* contenido REAL grande pero escalado */

.contenedor-embebido-pop embed {
    width: var(--w);
    height: var(--h);

    border: none;
    display: block;

    transform: scale(.3);
    transform-origin: top left;

    pointer-events: none;

    /* Transición por defecto (para cerrar) */
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

/* expandido */

.contenedor-embebido-pop.expandido {
    position: fixed;

    inset: 0;
    margin: auto;

    width: 90vw;
    height: 80vh;

    z-index: 9999;

    border-radius: 16px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, .45);

    /* Transición para abrir: aplica el z-index alto al instante (0s de delay) */
    transition:
        all .45s cubic-bezier(.22, 1, .36, 1),
        z-index 0s linear 0s;
}

.contenedor-embebido-pop.expandido embed {
    width: 100%;
    height: 100%;
    transform: scale(1);
    pointer-events: auto;

    /* Transición para abrir */
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.seccion-embebido::after {

    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
    z-index: 9998;
    /* Just below the expanded popup (z-index 9999) */
}

.seccion-embebido:has(.contenedor-embebido-pop.expandido)::after {
    opacity: 1;
    transition: opacity .45s ease;
}


/* Base styles for cards */
.feature-card,
.simple-card,
.advantage-card {
    background-color: var(--medium-blue-lighter);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: block;
    color: inherit;
}


.topic-click {
    transition: transform 0.1s ease;
    color: inherit;
}

.topic-click:hover {
    transform: scale(1.1);

}


/* simple card */


.simple-card {
    overflow: hidden;
    background-color: rgba(158, 158, 158, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.simple-card h2,h3,h1{
    margin-bottom: 0px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.simple-card h2{
    font-size: 28px;
    text-transform: uppercase;
}

.simple-card h3, h2{
    color: var(--accent-blue)
}

.simple-card i{
    color: var(--accent-blue);
    /* position: absolute;
    left: 30px; */
}

.simple-card p{
    margin-top: 15px;
}

/* hide popup on hover */

.simple-card .hide-popup {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    border-radius: 20px;
    gap: 20px;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.simple-card:hover .hide-popup {
    opacity: 1;
    pointer-events: none;
}

.hide-popup div {
    background-color: var(--medium-blue);
    border-radius: 20px;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: 600px;
    height: 400px;
    border: 1px solid var(--accent-blue);
    transform: translateY(30%);
}

.hide-popup span {
    color: var(--text-light-grey)
}