/* ===================================================================
   MODERN DESIGN - COLUMBIA ICA
   Diseño Moderno y Elegante 2025
   =================================================================== */

/* RESET Y FUENTES MODERNAS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

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

:root {
    --primary-color: #0066CC;
    --secondary-color: #003D7A;
    --accent-color: #FF6B35;
    --text-dark: #000000;
    --text-light: #333333;
    --text-lighter: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #CCCCCC;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-weight: 500;
}

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

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

/* CONTENEDORES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER MODERNO */
#header {
    background: linear-gradient(135deg, #F0DA4F 0%, #E5C940 100%);
    box-shadow: 0 4px 20px rgba(240, 218, 79, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 40px;
}

.logo-modern {
    flex-shrink: 0;
}

.logo-modern img {
    height: 80px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.logo-modern img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* NAVEGACIÓN MODERNA */
#main-nav {
    flex-grow: 1;
}

.nav-modern {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-modern > li {
    position: relative;
}

.nav-modern > li > a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.nav-modern > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #000000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-modern > li > a:hover,
.nav-modern > li > a.current {
    color: #000000;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-modern > li > a:hover::after,
.nav-modern > li > a.current::after {
    transform: scaleX(1);
}

/* DROPDOWN MODERNO */
.nav-modern ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    min-width: 280px;
    padding: 12px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

.nav-modern li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-modern ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.nav-modern ul li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px;
}

/* HERO SLIDER MODERNO */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 40px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: white;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.95;
    color: white;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
    transition: var(--transition);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.45);
    background: #FF5520;
}

/* SECCIÓN DE TARJETAS */
.cards-section {
    padding: 80px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-modern {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.card-modern:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-modern:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-icon img {
    width: 50px;
    height: 50px;
}

.card-modern h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-modern p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 500;
}

/* SECCIÓN DE CONTENIDO */
.content-section {
    padding: 80px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* GRID DE CONTENIDO */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.content-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.content-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* CARACTERÍSTICAS CON ICONOS */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* PÁGINA INTERIOR */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    color: white;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* FOOTER MODERNO */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* BOTÓN SCROLL TO TOP */
#back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

#back-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

#back-top a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

#back-top a span {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid white;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .nav-modern {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-modern {
        flex-direction: column;
        gap: 0;
    }

    .nav-modern > li {
        width: 100%;
    }

    .nav-modern > li > a {
        text-align: center;
    }

    .nav-modern ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        display: none;
    }

    .nav-modern li:hover > ul {
        display: block;
    }

    .hero-slider {
        height: 500px;
        border-radius: 0 0 20px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cards-section {
        padding: 60px 0;
        margin-top: -40px;
    }

    .section-title {
        font-size: 36px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 14px;
    }

    .card-modern {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ANIMACIONES */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* UTILIDADES */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-80 {
    margin-top: 80px;
}
