/* Design System & Variables */
:root {
    --primary-color: #00B090; /* Ascenda Green */
    --primary-light: #DEF4F0;
    --primary-dark: #008361;
    --bg-dark: #1D1E20; /* Ascenda Dark Gray */
    --bg-card: #2B2C2F;
    --text-main: #FFFFFF;
    --text-muted: #727586;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, .logo-text, .section-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

span {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 176, 144, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 144, 0.5);
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    font-size: 1.1rem;
    padding: 18px 40px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
}

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

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Social Proof */
.social-proof {
    background: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.proof-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
    padding: 20px;
}

.proof-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.proof-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 400;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.problem-list {
    list-style: none;
}

.problem-list li {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: #ddd;
}

.problem-list .icon {
    color: #e74c3c;
    margin-right: 12px;
    font-weight: bold;
}

.problem-image {
    position: relative;
    height: 500px;
    background-image: url('assets/modelo_real.jpg');
    background-size: cover;
    background-position: center center;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.glass-card {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.glass-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Methodology */
.methodology {
    padding: 100px 0;
    background: var(--bg-card);
}

.methodology-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.agar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.agar-card {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.agar-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.agar-letter {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.agar-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.agar-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.methodology-cta {
    text-align: center;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.text-right {
    text-align: right;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 400;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

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

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .problem-container { grid-template-columns: 1fr; }
    .agar-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-image { margin-top: 40px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hero-title { font-size: 2.2rem; }
    .proof-container { flex-direction: column; gap: 30px; }
    .proof-divider { width: 60px; height: 1px; }
    .agar-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .text-right { text-align: center; }
}
