/* --- VARIABLES DE DISEÑO --- */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0d9488;
    --dark: #0f172a;
    --gray-text: #475569;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* --- RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-cta-nav:hover {
    background: var(--primary-dark);
}

/* --- HERO SECTION --- */
.hero {
    margin-top: 80px;
    padding: 90px 8% 100px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-height: 85vh;
}

.hero-text {
    flex: 1.2;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    color: #0f172a;
}

.slogan {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-text p {
    font-size: 17px;
    color: var(--gray-text);
    margin-bottom: 30px;
    text-align: justify;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Forma del logo con fondo blanco */
.logo-container {
    width: 310px;
    height: 310px;
    background: #ffffff; /* Fondo cambiado a Blanco */
    border: 2px solid var(--primary-light);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.12);
    animation: morph 8s ease-in-out infinite alternate;
}

.main-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 8px 16px rgba(2, 132, 199, 0.15));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* --- SECCIÓN PROBLEMÁTICA --- */
.problem-section {
    padding: 80px 8%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.problem-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.problem-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.problem-card p {
    font-size: 14px;
    color: var(--gray-text);
}

/* --- SECCIÓN ARQUITECTURA MODULAR --- */
.architecture-section {
    padding: 100px 8%;
    background: var(--light-bg);
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.grid-ecosystem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-light);
}

.card-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.card p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.6;
}

/* --- SECCIÓN EVOLUCIÓN TECNOLÓGICA --- */
.evolution-section {
    padding: 90px 8%;
    background: white;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.timeline-step {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 16px;
    position: relative;
    border-top: 4px solid var(--secondary);
}

.timeline-step span {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
}

.timeline-step h4 {
    font-size: 18px;
    margin: 8px 0;
    color: var(--dark);
}

.timeline-step p {
    font-size: 13px;
    color: var(--gray-text);
}

/* --- SECCIÓN NORMATIVA Y DELIMITACIÓN --- */
.normative-section {
    padding: 100px 8%;
    background: var(--light-bg);
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.norm-col {
    flex: 1;
}

.norm-col h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.norm-badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 18px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.norm-badge strong {
    color: var(--dark);
    display: block;
    margin-bottom: 2px;
}

.disclaimer-box {
    background: #fffbeeb0;
    border: 1px solid #fde68a;
    padding: 20px;
    border-radius: 14px;
    margin-top: 20px;
}

.disclaimer-box h4 {
    color: #b45309;
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-box p {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

/* --- FOOTER Y CONTACTO --- */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 8% 30px 8%;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item a {
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

footer p {
    color: #94a3b8;
}

/* --- ANIMACIONES --- */
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* --- RESPONSIVO --- */
@media (max-width: 968px) {
    .hero, .normative-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 38px; }
    .hero-text p { text-align: left; }
    .hero-image { order: -1; }
    .navbar { padding: 15px 5%; }
    .nav-links { display: none; }
    .footer-contact { flex-direction: column; gap: 12px; }
}