/* ===================================
   WELCOME - PÁGINA DE BIENVENIDA
   =================================== */

/* Prevenir scroll horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Variables específicas para welcome */
:root {
    --welcome-primary: #1e40af;
    --welcome-secondary: #3b82f6;
    --welcome-accent: #0ea5e9;
    --welcome-text: #1e293b;
    --welcome-text-light: #64748b;
    --welcome-bg: #f8fafc;
    --welcome-white: #ffffff;
    --welcome-border: #e2e8f0;
    --welcome-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --welcome-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --welcome-radius: 0.75rem;
    --welcome-spacing: 1.5rem;
}

/* Contenedor principal */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===================================
   LAYOUT DE FILAS
   =================================== */

/* Primera fila: Hero (5/12) + Selector (7/12) */
.first-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

/* Segunda fila: DTIC Info (7/12) + Telegram (5/12) */
.second-row {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

/* Banner section - ancho completo */
.banner-section {
    margin-bottom: 2rem;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--welcome-primary) 0%, var(--welcome-secondary) 100%);
    color: white;
    border-radius: var(--welcome-radius);
    box-shadow: var(--welcome-shadow);
    padding: 2rem;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ===================================
   SELECTOR SECTION
   =================================== */

.selector-section {
    display: flex;
    align-items: center;
}

.selector-card {
    background: var(--welcome-white);
    border-radius: var(--welcome-radius);
    padding: 2rem;
    box-shadow: var(--welcome-shadow);
    border: 1px solid var(--welcome-border);
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selector-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selector-icon {
    font-size: 3rem;
    color: var(--welcome-primary);
    margin-bottom: 1rem;
}

.selector-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--welcome-text);
    margin-bottom: 0.5rem;
}

.selector-description {
    font-size: 1.1rem;
    color: var(--welcome-text-light);
    margin-bottom: 0;
}

.selector-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group-welcome {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label-welcome {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--welcome-text);
    text-align: center;
}

.select-button-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.form-control-welcome {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--welcome-border);
    border-radius: var(--welcome-radius);
    background: var(--welcome-white);
    color: var(--welcome-text);
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-control-welcome:focus {
    outline: none;
    border-color: var(--welcome-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-go {
    padding: 1rem 2rem;
    background: var(--welcome-primary);
    color: white;
    border: none;
    border-radius: var(--welcome-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-go:hover {
    background: var(--welcome-secondary);
    transform: translateY(-1px);
    box-shadow: var(--welcome-shadow);
}

/* ===================================
   INFORMATION CARDS
   =================================== */

.dtic-card {
    background: var(--welcome-white);
    border-radius: var(--welcome-radius);
    padding: 2rem;
    box-shadow: var(--welcome-shadow);
    border: 1px solid var(--welcome-border);
    transition: all 0.3s ease;
    height: 100%;
}

.dtic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--welcome-shadow-lg);
}

.telegram-card {
    background: var(--welcome-white);
    border-radius: var(--welcome-radius);
    padding: 2rem;
    box-shadow: var(--welcome-shadow);
    border: 1px solid var(--welcome-border);
    border-left: 4px solid var(--welcome-accent);
    transition: all 0.3s ease;
    height: 100%;
}

.telegram-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--welcome-shadow-lg);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    color: var(--welcome-primary);
}

.telegram-icon {
    font-size: 2rem;
    color: var(--welcome-accent);
}

.info-card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--welcome-text);
    margin: 0;
}

.info-card-body p {
    color: var(--welcome-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card-body p:last-child {
    margin-bottom: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--welcome-bg);
    border-radius: var(--welcome-radius);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: var(--welcome-border);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.25rem;
    color: var(--welcome-primary);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--welcome-text);
}

/* Telegram Benefits */
.telegram-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--welcome-radius);
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 1.1rem;
    color: var(--welcome-accent);
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--welcome-text);
}

/* Telegram Card Específico */
.telegram-card {
    border-left: 4px solid var(--welcome-accent);
}

.telegram-content {
    text-align: center;
    margin-top: 1.5rem;
}

.telegram-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.telegram-link:hover {
    transform: scale(1.02);
}

.qr-code {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: var(--welcome-radius);
    margin-bottom: 1rem;
    box-shadow: var(--welcome-shadow);
}

.telegram-link-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--welcome-accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.telegram-link-text i {
    font-size: 1.5rem;
}

/* ===================================
   ADDITIONAL INFO BANNER
   =================================== */

.additional-info {
    margin-top: 2rem;
}

.info-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--welcome-radius);
    padding: 2rem;
    border-left: 4px solid #f59e0b;
    box-shadow: var(--welcome-shadow);
}

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.banner-icon {
    font-size: 3rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.banner-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

.banner-text p {
    font-size: 1.1rem;
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
    .welcome-container {
        padding: 0 15px;
    }
    
    .first-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .second-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .selector-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .selector-title {
        font-size: 1.75rem;
    }
    
    .dtic-card,
    .telegram-card {
        padding: 1.5rem;
    }
    
    .banner-content {
        gap: 1rem;
    }
    
    .banner-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 1.5rem 1rem;
        min-height: auto;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .selector-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .selector-title {
        font-size: 1.5rem;
    }
    
    .select-button-group {
        flex-direction: column;
    }
    
    .first-row,
    .second-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dtic-card,
    .telegram-card {
        padding: 1rem;
    }
    
    .info-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .info-card-title {
        font-size: 1.5rem;
    }
    
    .qr-code {
        max-width: 120px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .banner-text h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .welcome-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .selector-title {
        font-size: 1.5rem;
    }
    
    .info-card-title {
        font-size: 1.25rem;
    }
}