/* ==========================================================================
   E-TIC - CSS Version 4 (Brand Edition: Acrónimo E-TIC Integrado)
   ========================================================================== */

:root {
    /* Paleta de Colores Inspirada en el Logo ETIC */
    --bg-dark: #050d1a;
    --bg-card: rgba(10, 31, 61, 0.65);
    --bg-card-hover: rgba(16, 46, 89, 0.85);
    --border-color: rgba(255, 209, 0, 0.15);
    --border-highlight: rgba(255, 209, 0, 0.45);
    
    --text-primary: #ffffff;
    --text-secondary: #b8d4f8;
    --text-muted: #7091bd;

    /* Acentos de Marca */
    --brand-blue: #004b93;
    --brand-blue-light: #1b6ec2;
    --brand-gold: #ffd100;
    --brand-gold-orange: #ff9900;
    --brand-emerald: #10b981;

    /* Gradientes Oficiales */
    --gradient-brand: linear-gradient(135deg, #ffd100 0%, #ff9900 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #ffd100 50%, #ff9900 100%);
    --gradient-blue-bg: linear-gradient(180deg, #092040 0%, #050d1a 100%);

    /* Tipografía */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sombras y Efectos */
    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 209, 0, 0.15);
    --shadow-gold-glow: 0 0 35px rgba(255, 209, 0, 0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Luces Ambientales y Canvas
   ========================================================================== */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-gold {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 209, 0, 0.18) 0%, rgba(255, 153, 0, 0.08) 60%, transparent 100%);
}

.glow-blue {
    bottom: -15%;
    left: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(0, 75, 147, 0.35) 0%, rgba(5, 13, 26, 0.1) 70%, transparent 100%);
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.1) translate(-20px, 30px); opacity: 0.7; }
    100% { transform: scale(0.95) translate(20px, -20px); opacity: 0.45; }
}

/* Wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.header {
    width: 100%;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 209, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 13, 26, 0.85);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 2px 4px;
    transition: all var(--transition-fast);
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.03);
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(255, 209, 0, 0.35));
    transition: filter var(--transition-fast);
}

.brand-logo:hover .logo-img {
    filter: drop-shadow(0 10px 28px rgba(255, 209, 0, 0.6));
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    background: rgba(0, 75, 147, 0.3);
    border: 1px solid rgba(255, 209, 0, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-gold);
    box-shadow: 0 0 10px var(--brand-gold);
    animation: blinkDot 2s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 100px;
    background: rgba(255, 209, 0, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--brand-gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    box-shadow: 0 0 24px rgba(255, 209, 0, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.8vw, 4.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Slogan Swoosh Line */
.hero-swoosh-divider {
    width: 220px;
    margin-bottom: 1.75rem;
}

.hero-swoosh-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 2.75rem;
    font-weight: 400;
}

/* ==========================================================================
   Glassmorphism Cards Common
   ========================================================================== */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.35), transparent);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 209, 0, 0.25);
}

/* ==========================================================================
   Sección Acrónimo E-TIC (Electrónica, TI y Cómputo)
   ========================================================================== */

.acronym-card {
    width: 100%;
    padding: 2.25rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    border-color: rgba(255, 209, 0, 0.22);
    background: linear-gradient(180deg, rgba(10, 31, 61, 0.75) 0%, rgba(5, 18, 38, 0.65) 100%);
}

.acronym-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.acronym-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.acronym-title .letter {
    color: var(--brand-gold);
    font-weight: 800;
}

.acronym-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.acronym-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.5rem 1.25rem;
    background: rgba(5, 13, 26, 0.6);
    border: 1px solid rgba(255, 209, 0, 0.18);
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.acronym-item:hover {
    background: rgba(0, 75, 147, 0.35);
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 209, 0, 0.2);
}

.acronym-letter-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-brand);
    color: #050d1a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(255, 209, 0, 0.4);
}

.acronym-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.acronym-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Formulario de Suscripción
   ========================================================================== */

.subscribe-card {
    width: 100%;
    padding: 2.25rem 2.5rem;
    margin-bottom: 3.5rem;
    text-align: left;
}

.subscribe-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.subscribe-icon-wrap {
    padding: 0.75rem;
    background: rgba(255, 209, 0, 0.1);
    border-radius: 14px;
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscribe-icon {
    font-size: 1.8rem;
    color: var(--brand-gold);
}

.subscribe-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.subscribe-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    background: rgba(5, 13, 26, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--brand-gold);
    background: rgba(5, 13, 26, 0.95);
    box-shadow: 0 0 18px rgba(255, 209, 0, 0.2);
}

.input-group input:focus + .input-icon,
.input-group input:focus ~ .input-icon {
    color: var(--brand-gold);
}

.btn-primary {
    padding: 1rem 2.2rem;
    background: var(--gradient-brand);
    border: none;
    border-radius: 12px;
    color: #050d1a;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 22px rgba(255, 209, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 209, 0, 0.55);
    filter: brightness(1.08);
}

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

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.form-feedback.success {
    display: block;
    color: var(--brand-gold);
}

.form-feedback.error {
    display: block;
    color: #ef4444;
}

/* ==========================================================================
   Bento Grid v4
   ========================================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.bento-card {
    padding: 2rem 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
    background: var(--bg-card);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.bento-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 209, 0, 0.1);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-gold);
    margin-bottom: 1.25rem;
    transition: all var(--transition-fast);
}

.bento-card:hover .bento-icon {
    background: var(--gradient-brand);
    color: #050d1a;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.4);
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    width: 100%;
    padding: 2rem 2rem;
    border-top: 1px solid rgba(255, 209, 0, 0.12);
    backdrop-filter: blur(12px);
    background: rgba(5, 13, 26, 0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.copyright em {
    color: var(--brand-gold);
    font-style: normal;
    font-weight: 600;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 209, 0, 0.15);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: #050d1a;
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 209, 0, 0.4);
}

/* ==========================================================================
   Media Queries Móvil
   ========================================================================== */

@media (max-width: 992px) {
    .acronym-grid,
    .bento-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 60px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
}
