/* ===================================
   ANIA - Asociación Nacional de Inteligencia Artificial
   Stylesheet - 3 Colores: Azul Oscuro, Blanco, Gris
   =================================== */

/* CSS Variables - 3 Colores principales */
:root {
    --primary: #0a1628;
    --primary-light: #162544;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --accent: #4a90a4;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--white);
    color: var(--primary);
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--gray-200);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.85) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-300);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 17px;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: var(--gray-100);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
}

.mission-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.mission-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}

.mission-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Team Section */
.team {
    padding: 120px 0;
    background: var(--white);
}

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

.section-header h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light .section-tag {
    color: var(--gray-300);
}

/* Team Grid - 3 columnas */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 400px 1fr;
    border: 2px solid var(--primary);
}

/* Fila centrada con 2 miembros */
.team-row-centered {
    grid-column: span 3;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.team-row-centered .team-card {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
}

.team-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--gray-200);
}

.team-card.featured .team-image {
    height: 100%;
}

.team-image img {
    width: 115%;
    height: 115%;
    object-fit: cover;
    object-position: center top;
    transform: translate(-6%, -3%);
}

.team-info {
    padding: 30px;
}

.team-card.featured .team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.team-role {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 20px;
}

.team-card.featured .team-role {
    background: var(--primary);
    color: var(--white);
}

.team-info h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.team-card.featured .team-info h3 {
    font-size: 28px;
}

.team-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.team-card.featured .team-info p {
    font-size: 16px;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--primary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.service-card h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-400);
    font-size: 15px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gray-700);
    text-align: center;
}

/* Downloads Section */
.downloads {
    padding: 100px 0;
    background: var(--white);
}

.downloads-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.download-card {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
}

.download-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.download-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.cta-content h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-300);
    margin-bottom: 32px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-info h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-form-container {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-map-container {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius);
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

.contact-map-container iframe {
    min-height: 360px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .team-card.featured {
        grid-column: span 3;
        grid-template-columns: 1fr;
    }
    
    .team-card.featured .team-image {
        height: 400px;
    }
    
    .team-row-centered .team-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card.featured {
        grid-column: span 2;
    }
    
    .team-row-centered {
        grid-column: span 2;
    }
    
    .team-row-centered .team-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
        border-radius: 0;
    }
    
    .nav-cta {
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card.featured {
        grid-column: span 1;
    }
    
    .team-row-centered {
        grid-column: span 1;
        flex-direction: column;
        align-items: center;
    }
    
    .team-row-centered .team-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }
    
    .hero-logo {
        max-width: 240px;
    }
    
    .section-header h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .team-image {
        height: 280px;
    }
}
