/* ===== VARIABLES CSS ===== */
:root {
    --primary-blue: #001650;
    --secondary-blue: #0080ef;
    --accent-blue: #00a3ff;
    --light-blue: #e6f3ff;
    --dark-navy: #000d2e;
    --complement-orange: #ff8000;
    --light-orange: #ffe6cc;
    --text-dark: #001650;
    --text-light: #4a5568;
    --white: #ffffff;
    --light-bg: #f7faff;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

p{
    text-align: justify;
    margin-bottom: 1%;
}
/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 8px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--white);
    font-size: 14px;
}

.logo {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
}

.main-logo{
    max-width: 100%;
}

.nav-container {
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:first-child {
    background: var(--complement-orange);
    color: var(--white);
}

.nav-link:nth-child(2) {
    background: var(--secondary-blue);
    color: var(--white);
}

.nav-link:nth-child(3) {
    background: var(--text-light);
    color: var(--white);
}

.nav-link:last-child {
    background: var(--accent-blue);
    color: var(--white);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); */
    background: url('../assets/images/bgrblue.jpg') #000d51;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding-top: 140px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 120%;
    background: var(--complement-orange);
    border-radius: 50% 0 50% 50%;
    opacity: 0.1;
    transform: rotate(15deg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 60%;
    height: 80%;
    background: var(--white);
    border-radius: 50% 50% 0 50%;
    opacity: 0.05;
    transform: rotate(-10deg);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-image {
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.placeholder-image small {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 10px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.floating-icon:nth-child(4) { top: 40%; right: 30%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}


/* Right side with laptop and icons */
.visual-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating icons */
.floating-icons {
    position: absolute;
    top: -50px;
    left: 50%;
    z-index: 4;
    margin-left: -249px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: floatUpDown 3s ease-in-out infinite;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-circle:nth-child(1) {
    margin-top:36px;
}

.icon-circle:nth-child(2) {
    animation-delay: -1s;
    margin-left: 92px;
    margin-top:-155px;
}

.icon-circle:nth-child(3) {
    animation-delay: -2s;
    margin-left: 182px;
    margin-top:-82px;
}

.icon-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
    stroke: white;
}

.icon-circle:hover {
    transform: scale(1.1) translateY(-10px);
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Data streams from icons */
.data-stream {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.data-point {
    width: 6px;
    height: 6px;
    background: #00bfff;
    border-radius: 50%;
    position: absolute;
    animation: streamDown 2s infinite linear;
    box-shadow: 0 0 8px #00bfff;
}

.data-point:nth-child(2) { animation-delay: 0.3s; }
.data-point:nth-child(3) { animation-delay: 0.6s; }
.data-point:nth-child(4) { animation-delay: 0.9s; }
.data-point:nth-child(5) { animation-delay: 1.2s; }

@keyframes streamDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(200px);
    }
}

/* Laptop */
.laptop {
    position: relative;
    z-index: 3;
    animation: laptopFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 420px;
}

.laptop:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.05);
}

.pcactia {
    position: absolute;
    left: 0;
    animation: floatUpDown 3s ease-in-out infinite;
    animation-delay: -4s;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: var(--white);
    position: relative;
    z-index: 5;
}
.main-content ul,.main-content ul li{
    margin: 0 1em 0.5em;
    padding: 0 0 0 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--complement-orange);
    margin-bottom: 50px;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.content-image {
    position: relative;
}

.placeholder-image-secondary {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-image-secondary small {
    font-size: 0.9rem;
    margin-top: 10px;
}

#presentacion{
    background-color: #e5e7eb;
}

#tabla{
    background-color: var(--secondary-blue);
    color: var(--light-bg);
}
.imgw100{
    max-width: 100%;
}

/* ===== OBJECTIVES SECTION ===== */
.objectives {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-blue) 100%);
}

.objectives-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-direction: row;
    flex-wrap: wrap;
}

.objective-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 22, 80, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid var(--secondary-blue);
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor:pointer;
}
.objective-card img{
    transition: all 0.8s ease;
}
.objective-card:hover img{
    transform:scale(1.6) rotate(359deg);
}
.objective-card h3, .objective-card p{
    text-align:center;
}

.objective-card:nth-child(1) { border-top-color: var(--secondary-blue); }
.objective-card:nth-child(2) { border-top-color: var(--accent-blue); }
.objective-card:nth-child(3) { border-top-color: var(--complement-orange); }
.objective-card:nth-child(4) { border-top-color: var(--primary-blue); }

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 22, 80, 0.15);
}

.objective-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objective-icon img{
    max-width:100%;
}

.objective-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.objective-text {
    color: var(--text-light);
    line-height: 1.6;
}

.table td,.table th{
    border-bottom: solid 1px var(--text-light);
    padding: 1em 0;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--complement-orange) 0%, #e6720a 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 90px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--white);
    color: var(--complement-orange);
    transform: translateY(-2px);
}

.contact-info {
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
}

.credits-info {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.credits-info strong{
    display:block;
    color: rgba(255,255,255,0.8);
    font-size:1.3em;
}
.credits-info a,.credits-info span {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-align: left;
    line-height: 1.3em;
    margin-bottom: 0.5em;
    margin-left: 1em;
}
.credits-info a:hover{
    color:rgba(255, 255, 255, 1);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #ffffff;
    border-radius: 15px;
}

.partner-logo {
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.partner-logo img{
    width: 100%;
}
.partner-logo:nth-child(5) img{
    width: 70px;
}

.partner-logo:hover {
    background: var(--white);
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== ANIMACIONES ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--text-dark) !important;
        background: var(--white) !important;
        border-bottom: 1px solid #eee;
    }

    .nav-link:hover {
        color: var(--secondary-blue) !important;
        background: var(--light-bg) !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-bottom: 100px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-content h2 {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 30px 40px;
    margin: 0;
    border-radius: 20px 20px 0 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px 40px 40px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body li {
    background: var(--light-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-blue);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.modal-body li:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.modal-body li strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        padding: 20px 25px;
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px 25px 30px;
    }
    
    .modal-body li {
        padding: 15px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}