/* ========================================
   IAN - LANDING PAGE PROFESIONAL
   Colores oficiales del proyecto IAN
   UI/UX: Animaciones elegantes y sobrias
   ======================================== */

/* COLORES DE MARCA IAN (Exactos del proyecto) */
:root {
    --ian-red: #D60E20;           /* Color principal */
    --ian-blue: #1979F3;          /* Color secundario */
    --ian-dark: #0F1956;          /* Azul oscuro */
    --ian-text: #575757;          /* Texto principal */
    --ian-secondary-text: #BBBBBB; /* Texto secundario */
    --ian-gray: #EBEBEB;          /* Gris claro */
    --ian-white: #FFFFFF;         /* Blanco */
    --ian-black: #000000;         /* Negro */
    --ian-green: #4CAF50;         /* Success */
    
    /* Variables dinámicas para branding (pueden ser sobrescritas) */
    --primary-color: #1979F3;     /* Color primario dinámico */
    --secondary-color: #0F1956;   /* Color secundario dinámico */
    --accent-color: #D60E20;      /* Color de acento dinámico */
    
    /* Sombras suaves y profesionales */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(25, 121, 243, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ian-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--ian-white);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--ian-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

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

.logo {
    height: 50px;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ian-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ian-red);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--ian-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--ian-dark) 0%, var(--ian-blue) 100%);
    color: var(--ian-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-red {
    color: var(--ian-red);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ian-white);
    border: 2px solid var(--ian-white);
}

.btn-secondary:hover {
    background: var(--ian-white);
    color: var(--ian-dark);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
}

.hero-image {
    animation: slideInRight 0.8s ease;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--ian-white);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--ian-dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.features-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ian-secondary-text);
    margin-bottom: 60px;
    animation: fadeInUp 0.7s ease;
}

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

.feature-card {
    background: var(--ian-white);
    border: 2px solid var(--ian-gray);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-base);
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 121, 243, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    border-color: var(--ian-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform var(--transition-base);
}

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

.feature-card h3 {
    color: var(--ian-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--ian-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.download {
    background: linear-gradient(135deg, var(--ian-blue) 0%, var(--ian-dark) 100%);
    color: var(--ian-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.download .container {
    position: relative;
    z-index: 1;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.7s ease;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease;
}

.store-btn {
    display: inline-block;
    transition: transform var(--transition-base);
}

.store-btn img {
    height: 60px;
    filter: brightness(1.1);
}

.store-btn:hover {
    transform: scale(1.08) translateY(-5px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--ian-dark);
    color: var(--ian-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--ian-red);
    font-size: 1.2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    transition: transform var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer a {
    display: block;
    color: var(--ian-white);
    text-decoration: none;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.footer a:hover {
    opacity: 1;
    padding-left: 10px;
    color: var(--ian-blue);
}

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

/* ========================================
   OPERATOR WELCOME PAGE
   ======================================== */
.welcome-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ian-dark) 0%, var(--ian-blue) 100%);
    padding: 20px;
}

.welcome-card {
    background: var(--ian-white);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.welcome-logo {
    height: 80px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.welcome-card h1 {
    color: var(--ian-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: var(--ian-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.operator-info {
    background: var(--ian-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-label {
    font-weight: 600;
    color: var(--ian-dark);
}

.info-value {
    color: var(--ian-text);
    font-family: 'Courier New', monospace;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.welcome-instructions {
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-instructions h3 {
    color: var(--ian-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.welcome-instructions ol {
    padding-left: 20px;
}

.welcome-instructions li {
    margin-bottom: 10px;
    color: var(--ian-text);
    line-height: 1.6;
}

.welcome-footer {
    font-size: 0.9rem;
    color: var(--ian-secondary-text);
}

.welcome-footer a {
    color: var(--ian-blue);
    text-decoration: none;
    font-weight: 600;
}

.welcome-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .welcome-card {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

