/* ==========================================
   Día de Internet 2026 — Custom Styles
   Immersive dark theme + glassmorphism
   ========================================== */

/* --- Smooth scroll & global --- */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(242, 104, 34, 0.4);
    color: #fff;
}

/* --- Text gradient utility --- */
.text-gradient {
    background: linear-gradient(135deg, #f26822 0%, #ff6b3d 40%, #e3000f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   HERO — Animated mesh gradient background
   ========================================== */
.hero-section {
    background: #0a0a0a;
}

/* Canvas hero animation */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Perspective grid lines overlay */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(242,104,34,0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242,104,34,0.6) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    from { opacity: 0.04; }
    to   { opacity: 0.1; }
}

/* Film grain texture overlay */
.grain-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Pill Badge --- */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem;
    background: rgba(242, 104, 34, 0.1);
    border: 1px solid rgba(242, 104, 34, 0.2);
    border-radius: 999px;
    color: #f26822;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f26822;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* --- Floating animation for hero image --- */
.floating-anim {
    animation: floatY 6s ease-in-out infinite;
}

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

/* --- Glow ring behind hero image --- */
.glow-ring {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 104, 34, 0.2) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    filter: blur(30px);
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* --- Scroll indicator --- */
.scroll-indicator {
    animation: fadeInUp 1.5s ease 2s both;
}

.mouse-scroll {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    position: relative;
}

.mouse-scroll::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.4);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================
   BENTO GRID — Glassmorphism cards
   ========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.bento-grid:last-child {
    margin-bottom: 0;
}

.bento-span-2 {
    grid-column: 1 / -1;  /* Full width when alone in its grid */
}

.bento-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 260px;
}

.bento-inner {
    height: 100%;
    border-radius: 1.5rem;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(242, 104, 34, 0.15);
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress bar animation */
.progress-bar {
    animation: progressFill 2s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}

.progress-bar.animated {
    transform: scaleX(1);
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ==========================================
   PROGRAM CARDS — Visual card grid
   ========================================== */
.prog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

/* Icon inside visual header */
.prog-icon {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 24px currentColor);
}

.prog-card:hover .prog-icon {
    transform: scale(1.12) translateY(-6px);
}

/* Per-theme icon colors */
.prog-visual-security .prog-icon { color: rgba(242,104,34,0.9); }
.prog-visual-rural    .prog-icon { color: rgba(16,185,129,0.9); }
.prog-visual-sectors  .prog-icon { color: rgba(139,92,246,0.9); }
.prog-visual-gala     .prog-icon { color: rgba(251,191,36,0.9); }

/* Decorative rings */
.prog-visual-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.prog-deco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.1;
    width: 160px;
    height: 160px;
    animation: ring-pulse 4s ease-in-out infinite;
}

.prog-deco-ring-2 {
    width: 240px;
    height: 240px;
    opacity: 0.05;
    animation-delay: 2s;
}

.prog-visual-security .prog-deco-ring { color: #f26822; }
.prog-visual-rural    .prog-deco-ring { color: #10b981; }
.prog-visual-sectors  .prog-deco-ring { color: #8b5cf6; }
.prog-visual-gala     .prog-deco-ring { color: #fbbf24; }

@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.18; }
}

/* Base card */
.prog-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 24px 60px -12px rgba(0,0,0,0.4);
}

/* Visual / illustration header */
.prog-card-visual {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-visual-bg {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s;
}

.prog-card:hover .prog-visual-bg {
    opacity: 1.3;
}

/* Per-theme gradient backgrounds */
.prog-visual-security .prog-visual-bg {
    background: radial-gradient(ellipse 80% 80% at 50% 60%,
        rgba(242,104,34,0.15) 0%, rgba(227,0,15,0.08) 50%, transparent 80%);
}
.prog-visual-rural .prog-visual-bg {
    background: radial-gradient(ellipse 80% 80% at 50% 60%,
        rgba(16,185,129,0.15) 0%, rgba(5,150,105,0.08) 50%, transparent 80%);
}
.prog-visual-sectors .prog-visual-bg {
    background: radial-gradient(ellipse 80% 80% at 50% 60%,
        rgba(139,92,246,0.15) 0%, rgba(109,40,217,0.08) 50%, transparent 80%);
}
.prog-visual-gala .prog-visual-bg {
    background: radial-gradient(ellipse 90% 90% at 50% 60%,
        rgba(251,191,36,0.18) 0%, rgba(245,158,11,0.08) 50%, transparent 80%);
}

/* SVG illustration */
.prog-svg {
    width: 70%;
    max-width: 220px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.prog-card:hover .prog-svg {
    transform: scale(1.06) translateY(-4px);
}

/* Number badge */
.prog-num {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    z-index: 2;
    transition: color 0.3s;
}

.prog-card:hover .prog-num {
    color: rgba(255,255,255,0.1);
}

.prog-num-gala {
    font-size: 2rem;
    color: rgba(251,191,36,0.2) !important;
}

/* Card body */
.prog-card-body {
    padding: 1.75rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prog-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f26822;
    margin-bottom: 0.6rem;
}

.prog-date-gala {
    color: rgb(251,191,36);
}

.prog-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.prog-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

/* Featured card overrides */
.prog-card-featured {
    border-color: rgba(251,191,36,0.12);
    background: rgba(251,191,36,0.02);
}
.prog-card-featured:hover {
    border-color: rgba(251,191,36,0.25);
    box-shadow: 0 24px 60px -12px rgba(251,191,36,0.12);
}
.prog-card-featured .prog-title {
    font-size: 1.5rem;
}

/* ==========================================
   ACCORDION CARDS — kept for fallback
   ========================================== */

.accordion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.accordion-card-highlight {
    border-color: rgba(242, 104, 34, 0.2);
    background: rgba(242, 104, 34, 0.03);
}

.accordion-card-highlight:hover {
    border-color: rgba(242, 104, 34, 0.4);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.accordion-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    min-width: 50px;
    transition: color 0.3s;
}

.accordion-card:hover .accordion-number {
    color: rgba(242, 104, 34, 0.3);
}

.highlight-num {
    color: rgba(242, 104, 34, 0.4) !important;
    font-size: 1.5rem;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
    max-height: 600px;
}

.accordion-content {
    padding: 0 2rem 2rem 5.5rem;
}

.accordion-chevron.rotated {
    transform: rotate(180deg);
}

/* --- Chips / tags --- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.chip:hover {
    background: rgba(242, 104, 34, 0.1);
    border-color: rgba(242, 104, 34, 0.3);
    color: #f26822;
}

/* ==========================================
   SPOTLIGHT CARD — Expert section
   ========================================== */
.spotlight-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spotlight-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(242, 104, 34, 0.08) 60deg,
        transparent 120deg,
        rgba(16, 185, 129, 0.06) 180deg,
        transparent 240deg,
        rgba(227, 0, 15, 0.06) 300deg,
        transparent 360deg
    );
    animation: spotlightSpin 12s linear infinite;
}

@keyframes spotlightSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   EXPERT CARD — Speaker profile layout
   ========================================== */

/* Left column: photo */
.expert-photo-col {
    flex-shrink: 0;
    width: 320px;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.expert-photo {
    width: 230px;
    height: 230px;
    border-radius: 1.5rem;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(242,104,34,0.35);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 8px rgba(242,104,34,0.07);
    transition: box-shadow 0.4s;
}

.expert-photo:hover {
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 12px rgba(242,104,34,0.14);
}

/* Logo block in left column */
.expert-logo-wrap {
    margin-top: 1.75rem;
    width: 160px;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Social icon buttons in expert card */
.expert-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.expert-social-btn:hover {
    background: rgba(242,104,34,0.15);
    border-color: rgba(242,104,34,0.4);
    color: #f26822;
    transform: translateY(-2px);
}

/* Right column: text info */
.expert-info-col {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Bio text block */
.expert-bio {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

/* CTA button */
.expert-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f26822, #e3000f);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(242,104,34,0.3);
}

.expert-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(242,104,34,0.45);
}

/* Responsive: stack on tablet (< 1024px) */
@media (max-width: 1023px) {
    .expert-photo-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 2rem 2rem 1.5rem;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }
    .expert-photo {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }
    .expert-logo-wrap {
        width: 130px;
    }
    .expert-info-col {
        padding: 1.75rem 2rem 2rem;
    }
}

/* Responsive: fully vertical on mobile (< 640px) */
@media (max-width: 639px) {
    .expert-photo-col {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 2rem 1.5rem 1.5rem;
    }
    .expert-photo {
        width: 180px;
        height: 180px;
    }
    .expert-logo-wrap {
        width: 150px;
    }
    .expert-info-col {
        padding: 1.25rem 1.5rem 1.75rem;
    }
}


/* ==========================================
   SOCIAL ICON BUTTONS — Footer
   ========================================== */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon-btn:hover {
    transform: translateY(-4px) scale(1.1);
    color: #fff;
    border-color: transparent;
}

.social-icon-btn:hover::before  { opacity: 1; }

/* Globe — brand orange */
.social-icon-btn:not([class*='social-']):hover {
    background: linear-gradient(135deg, #f26822, #e3000f);
    box-shadow: 0 8px 20px rgba(242, 104, 34, 0.4);
}

/* Instagram gradient */
.social-instagram::before {
    background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-instagram:hover {
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
}

/* X / Twitter */
.social-x::before         { background: #000; }
.social-x:hover           { background: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }

/* Facebook */
.social-facebook::before  { background: #1877f2; }
.social-facebook:hover    { background: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }

/* YouTube */
.social-youtube::before   { background: #ff0000; }
.social-youtube:hover     { background: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-span-2 {
        grid-column: span 2;
    }
    .prog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-span-2 {
        grid-column: span 1;
    }
    .prog-grid {
        grid-template-columns: 1fr;
    }
    .prog-card-featured {
        flex-direction: column !important;
    }
    .prog-card-featured .prog-card-visual {
        width: 100%;
        min-height: 180px;
    }
    .accordion-content {
        padding-left: 2rem;
    }
    .accordion-number {
        display: none;
    }
}
