/* ---------------- RESET Y BASE ---------------- */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Share Tech Mono', monospace; background:#000; overflow-x:hidden; color:#0f0; }

/* ---------------- CANVAS ---------------- */
#matrix-canvas, #particles-canvas { position: fixed; top:0; left:0; width:100%; height:100%; z-index:-1; }

/* ---------------- ENCABEZADO FIXED ---------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 153, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.2);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00ff99;
    box-shadow: 0 0 10px #00ff99;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: rotate(15deg);
    box-shadow: 0 0 15px #00ff99, 0 0 25px #00ffcc;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #00ff99;
    text-shadow: 0 0 8px #00ff99;
    letter-spacing: 2px;
}

/* Navegación */
.header-nav .nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-list a::before {
    content: '>';
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-list a:hover::before {
    opacity: 1;
    color: #00ff99;
}

.nav-list a:hover {
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    text-shadow: 0 0 5px #00ff99;
}

/* Iconos de contacto en encabezado */
.header-contact {
    display: flex;
    align-items: center;
}

.contact-icons {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff99;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 153, 0.3);
}

.contact-icon:hover {
    background: rgba(0, 255, 153, 0.3);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px #00ff99;
}

/* ---------------- CONTENEDOR PRINCIPAL ---------------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 100px 20px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; position: relative; z-index: 2; }

/* ---------------- LOGO ---------------- */
.logo-container { position:relative; width:250px; height:250px; margin-bottom:30px; }
.logo-wrapper { position:relative; width:100%; height:100%; }
.logo { width:100%; height:100%; border-radius:50%; border:2px solid #0f0; box-shadow:0 0 20px #0f0,0 0 40px #0f0; animation:floatLogo 5s ease-in-out infinite alternate; }
.logo-glow { position:absolute; top:-10%; left:-10%; width:120%; height:120%; border-radius:50%; background: radial-gradient(circle, rgba(0,255,0,0.5) 0%, rgba(0,255,0,0) 70%); animation:glowPulse 4s ease-in-out infinite alternate; }

/* ---------------- TEXTO PRINCIPAL ---------------- */
.name-title { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: #00ff99; text-shadow: 0 0 8px rgba(0,255,153,0.5); line-height: 1.2; margin-bottom: 20px; animation: glitchText 2s infinite; }
.subtitle { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: #33ffff; text-shadow: 0 0 6px rgba(51,255,255,0.4); margin-bottom: 30px; }

/* ---------------- DIVISOR ---------------- */
.title-divider { display:flex; justify-content:center; align-items:center; margin:20px 0; }
.divider-line { width:80px; height:1px; background:linear-gradient(to right, transparent, #0f0, transparent);}
.divider-dot { width:8px; height:8px; background-color:#0f0; border-radius:50%; margin:0 10px; }

/* ---------------- FRASE DESTACADA ---------------- */
.description-text { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; text-align: center; line-height: 1.5; background: rgba(0,0,0,0.5); padding: 10px 20px; border-radius: 10px; color: #00ff99; text-shadow: 0 0 5px #00ff99, 0 0 10px #33ffff, 0 0 20px #ff33ff; display: inline-block; animation: neonGradient 6s linear infinite, pulseText 2s ease-in-out infinite; }

/* ---------------- ANIMACIONES ---------------- */
@keyframes neonGradient { 0% { background-position:0% 0%; } 50% { background-position:100% 0%; } 100% { background-position:0% 0%; } }
@keyframes pulseText { 0%,100% { text-shadow:0 0 5px #00ff99,0 0 10px #33ffff,0 0 20px #ff33ff; } 50% { text-shadow:0 0 10px #00ff99,0 0 20px #33ffff,0 0 30px #ff33ff; } }
.animated-word { display:inline-block; opacity:0; transform:translateY(20px); animation:wordAppear 0.6s forwards; }
.animated-word:nth-child(1){ animation-delay:0.1s; } .animated-word:nth-child(2){ animation-delay:0.3s; }
.animated-word:nth-child(3){ animation-delay:0.5s; } .animated-word:nth-child(4){ animation-delay:0.7s; }
.animated-word:nth-child(5){ animation-delay:0.9s; } .animated-word:nth-child(6){ animation-delay:1.1s; }
.animated-word:nth-child(7){ animation-delay:1.3s; }

@keyframes wordAppear {0%{opacity:0; transform:translateY(20px);}100%{opacity:1; transform:translateY(0);} }
@keyframes floatLogo {0%,100%{transform:translateY(0);}50%{transform:translateY(-15px);} }
@keyframes glowPulse {0%{opacity:0.7; transform:scale(1);}100%{opacity:1; transform:scale(1.05);} }
@keyframes glitchText {0%,95%,100%{transform:translateX(0); text-shadow:0 0 5px #0f0;} 96%{transform:translateX(-2px); text-shadow:2px 0 5px #f0f;} 97%{transform:translateX(2px); text-shadow:-2px 0 5px #0ff;} 98%{transform:translateX(-1px); text-shadow:1px 0 5px #ff0;} 99%{transform:translateX(1px); text-shadow:-1px 0 5px #f00;} }


/* ---------------- CONTENEDOR DEL RELOJ HUD ---------------- */
#holo-clock-container {
    position: fixed;
    top: 80px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
    font-family: 'Share Tech Mono', monospace;
}

/* ---------------- PANEL DEL RELOJ ---------------- */
#holo-clock {
    width: 180px;
    height: 80px;
    background-color: rgba(0,0,0,0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    color: #00ff00;
    box-shadow: 0 0 5px #00ff00 inset, 0 0 10px #00ff00, 0 0 20px #00ffcc;
    position: relative;
    overflow: hidden;
}

/* ---------------- BARRA DE ESCANEO ---------------- */
#holo-clock::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, #00ff00, transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

/* ---------------- TEXTO DEL RELOJ ---------------- */
#holo-clock #time {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}

#holo-clock #time::after {
    content: "|";
    margin-left: 2px;
    opacity: 1;
    animation: blinkCursor 1s infinite;
}

#holo-clock #date {
    font-size: 0.85rem;
    color: #00cc00;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* ---------------- CONTADOR HUD ---------------- */
#contador {
    position: fixed;
    top: 80px;
    left: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #00ff00;
    background-color: rgba(0,0,0,0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 0 5px #00ff00 inset, 0 0 10px #00ff00, 0 0 15px #00ffcc;
    text-align: center;
    letter-spacing: 1px;
    overflow: hidden;
}

/* BARRA DE ESCANEO PARA EL CONTADOR */
#contador::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, #00ff00, transparent);
    animation: scanLine 2.5s linear infinite;
}

/* ---------------- ANIMACIONES ---------------- */
@keyframes blinkCursor {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* ===== ORÁCULO DIGITAL AVMC ===== */

/* ACTIVADOR */
#oracle-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff99 0%, #003322 70%);
    box-shadow: 0 0 15px #00ff99, 0 0 40px #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    z-index: 30;
    animation: oraclePulse 2s infinite alternate;
}

@keyframes oraclePulse {
    from { box-shadow: 0 0 10px #00ff99; }
    to { box-shadow: 0 0 25px #00ff99, 0 0 60px #00ffcc; }
}

/* PANEL */
#oracle-panel {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 340px;
    background: rgba(0,0,0,0.92);
    border: 2px solid #00ff99;
    border-radius: 14px;
    box-shadow: 0 0 20px #00ff99, 0 0 40px #00ffcc;
    font-family: 'Share Tech Mono', monospace;
    color: #00ff99;
    z-index: 30;
    display: none;
    overflow: hidden;
}

/* HEADER */
.oracle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #00ff99;
    background: linear-gradient(to right, transparent, #00ff9922, transparent);
}

.oracle-header span {
    letter-spacing: 2px;
    font-weight: bold;
}

#oracle-close {
    background: none;
    border: none;
    color: #00ff99;
    font-size: 1.2rem;
    cursor: pointer;
}

/* CONTENIDO */
.oracle-content {
    padding: 15px;
}

.oracle-intro {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.9;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%,100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* PREGUNTAS */
.oracle-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.oracle-questions button {
    background: rgba(0,255,153,0.08);
    border: 1px solid #00ff99;
    color: #00ff99;
    padding: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.oracle-questions button:hover {
    background: #00ff99;
    color: #000;
}

/* RESPUESTA */
#oracle-response {
    margin-top: 12px;
    padding: 10px;
    font-size: 0.8rem;
    border-top: 1px dashed #00ff99;
    animation: responseIn 0.4s ease-in-out;
}

@keyframes responseIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CONTENEDOR BOTÓN LATERAL */
#theme-toggle-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

/* BOTÓN LATERAL CYBERPUNK */
#theme-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ff88, #00bfff);
    border: 2px solid #00ff88;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    padding: 12px 10px;
    width: 60px;
    height: 120px;
    cursor: pointer;
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00bfff;
    transition: all 0.3s ease-in-out;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    overflow: hidden;
}

#theme-toggle:hover {
    transform: translateX(-10px) scale(1.05);
    box-shadow: 0 0 25px #00ff88, 0 0 50px #00bfff;
}

/* Texto del botón */
#theme-toggle .icon {
    font-size: 24px;
    margin-bottom: 5px;
}
#theme-toggle .label {
    font-size: 12px;
    letter-spacing: 1px;
}

/* Canvas interno de partículas */
#theme-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =========================
TEMA CLARO
========================= */
body.light-theme {
    background: #f4f4f4;
    color: #111;
}

/* Texto visible */
body.light-theme h1,
body.light-theme h2,
body.light-theme .description-text,
body.light-theme #contador,
body.light-theme #holo-clock {
    color: #111;
}

/* Oráculo panel */
body.light-theme #oracle-panel {
    background: rgba(255,255,255,0.95);
    color: #111;
    border: 1px solid #111;
}

/* Botón lateral modo claro */
body.light-theme #theme-toggle {
    background: linear-gradient(135deg, #88c0ff, #aad4ff);
    border-color: #111;
    color: #111;
    box-shadow: 0 0 15px #88c0ff, 0 0 30px #aad4ff;
}

/* Canvas más tenue en claro */
body.light-theme #matrix-canvas,
body.light-theme #particles-canvas {
    opacity: 0.15;
}

/* =========================
SECCIÓN: ÁREAS DE TRABAJO
========================= */
#areas-trabajo {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: rgba(5, 5, 10, 0.9);
    z-index: 2;
    overflow: hidden;
}

.areas-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header de la sección */
.areas-header {
    text-align: center;
    margin-bottom: 60px;
}

.areas-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.neon-text {
    color: #00ff99;
    text-shadow: 0 0 10px #00ff99, 0 0 20px #00ff99;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 10px #00ff99, 0 0 20px #00ff99; }
    to { text-shadow: 0 0 15px #00ff99, 0 0 30px #00ff99, 0 0 40px #00ff99; }
}

.areas-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: #33ffff;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 5px #33ffff;
}

.divider-dot.cyan {
    background-color: #33ffff;
    box-shadow: 0 0 8px #33ffff;
}

/* Grid de tarjetas */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Tarjetas individuales - MEJORADO CONTRASTE */
.area-card {
    position: relative;
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(0, 255, 153, 0.4);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.area-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff99, #33ffff, #ff33ff, #00ff99);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 14px;
}

.area-card:hover::before {
    opacity: 0.7;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.area-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.3);
    background: rgba(15, 20, 35, 0.98);
}

/* MEJORA: Texto más visible al hacer hover */
.area-card:hover .card-content h3 {
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff;
}

.area-card:hover .card-content p {
    color: #eeeeee;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.area-card:hover .card-icon {
    color: #33ffff;
    filter: drop-shadow(0 0 10px #33ffff);
    transform: scale(1.1);
}

.area-card:hover .card-tags span {
    background: rgba(51, 255, 255, 0.25);
    color: #ffffff;
    border-color: #33ffff;
    box-shadow: 0 0 8px rgba(51, 255, 255, 0.5);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.card-icon {
    font-size: 2.5rem;
    color: #00ff99;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.card-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.card-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.card-tags span {
    background: rgba(0, 255, 153, 0.2);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 153, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 153, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.area-card:hover .card-glow {
    opacity: 0.8;
}

/* Footer de la sección */
.areas-footer {
    margin-top: 40px;
}

.hologram-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hologram-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, #33ffff, transparent);
    box-shadow: 0 0 5px #33ffff;
}

.hologram-text {
    font-family: 'Share Tech Mono', monospace;
    color: #33ffff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    white-space: nowrap;
    animation: textScan 4s linear infinite;
    text-shadow: 0 0 8px #33ffff;
}

@keyframes textScan {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* =========================
SECCIÓN: SERVICIOS
========================= */
#servicios-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: rgba(8, 5, 15, 0.95);
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid rgba(255, 51, 255, 0.2);
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header de la sección */
.servicios-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicios-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.divider-dot.magenta {
    background-color: #ff33ff;
    box-shadow: 0 0 10px #ff33ff, 0 0 20px #ff33ff;
    animation: pulseMagenta 2s infinite alternate;
}

@keyframes pulseMagenta {
    from { box-shadow: 0 0 8px #ff33ff; }
    to { box-shadow: 0 0 15px #ff33ff, 0 0 25px #ff33ff; }
}

.servicios-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: #ff33ff;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 8px #ff33ff;
}

/* Contenido de servicios */
.servicios-content {
    position: relative;
    margin-bottom: 50px;
}

/* Contenedor de la imagen */
.imagen-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 10, 20, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 255, 0.2),
                inset 0 0 20px rgba(255, 51, 255, 0.1);
}

.imagen-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 153, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.2);
    transition: all 0.3s ease;
}

.imagen-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.3),
                0 0 40px rgba(255, 51, 255, 0.2);
}

.servicios-imagen {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.imagen-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 51, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.imagen-wrapper:hover .imagen-glow {
    opacity: 1;
}

/* Overlay de información */
.imagen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 25px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(5px);
}

.imagen-wrapper:hover .imagen-overlay {
    transform: translateY(0);
}

.overlay-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ff99;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ff99;
}

.overlay-content p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 15px;
}

.overlay-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.overlay-stats span {
    background: rgba(255, 51, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 51, 255, 0.4);
}

.overlay-stats i {
    margin-right: 5px;
    color: #ff33ff;
}

/* Botones de acción */
.imagen-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 1px;
}

.download-btn {
    background: linear-gradient(135deg, #00ff99, #00cc77);
    color: #000;
    box-shadow: 0 0 10px #00ff99;
}

.download-btn:hover {
    background: linear-gradient(135deg, #00cc77, #00ff99);
    transform: translateY(-3px);
    box-shadow: 0 0 20px #00ff99;
}

.zoom-btn {
    background: rgba(51, 255, 255, 0.2);
    color: #33ffff;
    border: 1px solid #33ffff;
}

.zoom-btn:hover {
    background: rgba(51, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px #33ffff;
}

.reset-btn {
    background: rgba(255, 51, 255, 0.2);
    color: #ff33ff;
    border: 1px solid #ff33ff;
}

.reset-btn:hover {
    background: rgba(255, 51, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px #ff33ff;
}

/* Información de la imagen */
.imagen-info {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.imagen-info i {
    color: #00ff99;
    margin-right: 8px;
}

/* Modal para visualización ampliada */
.imagen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ff33ff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #00ff99;
    text-shadow: 0 0 10px #00ff99;
}

.modal-imagen {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ff33ff;
    box-shadow: 0 0 30px rgba(255, 51, 255, 0.5);
}

.modal-info {
    background: rgba(10, 15, 25, 0.9);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    border-top: none;
}

.modal-info h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ff99;
}

.modal-info p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Footer de la sección */
.servicios-footer {
    margin-top: 40px;
}

.servicios-footer .hologram-text {
    color: #ff33ff;
    text-shadow: 0 0 8px #ff33ff;
}

.servicios-footer .hologram-line {
    background: linear-gradient(to right, transparent, #ff33ff, transparent);
    box-shadow: 0 0 5px #ff33ff;
}

/* =========================
NUEVA SECCIÓN: SOBRE MÍ
========================= */
#sobre-mi-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: rgba(10, 8, 20, 0.95);
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.sobre-mi-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header de la sección */
.sobre-mi-header {
    text-align: center;
    margin-bottom: 50px;
}

.sobre-mi-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.divider-dot.gold {
    background-color: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: pulseGold 2s infinite alternate;
}

@keyframes pulseGold {
    from { box-shadow: 0 0 8px #ffd700; }
    to { box-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700; }
}

.sobre-mi-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: #ffd700;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 8px #ffd700;
}

/* Contenido de Sobre Mí */
.sobre-mi-content {
    position: relative;
    margin-bottom: 50px;
}

.sobre-mi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Columna izquierda: Texto */
.sobre-mi-texto {
    background: rgba(15, 12, 25, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1),
                inset 0 0 20px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(5px);
}

.texto-container {
    margin-bottom: 30px;
}

.texto-titulo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.texto-titulo .highlight {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.texto-principal {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
    text-align: justify;
}

.texto-principal .resaltar {
    color: #00ff99;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff99;
}

.texto-destacado {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.destacado-icono {
    color: #ffd700;
    font-size: 2rem;
    flex-shrink: 0;
}

.destacado-contenido h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ffd700;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #ffd700;
}

.destacado-contenido p {
    color: #dddddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.texto-caracteristicas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.caracteristica {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid rgba(0, 255, 153, 0.3);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.caracteristica:hover {
    background: rgba(0, 255, 153, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.2);
}

.caracteristica i {
    color: #00ff99;
    font-size: 1.2rem;
}

.caracteristica span {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Código de Matrix decorativo */
.matrix-code {
    background: rgba(0, 20, 10, 0.8);
    border: 1px solid rgba(0, 255, 153, 0.2);
    border-radius: 10px;
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #00ff99;
    line-height: 1.8;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.matrix-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 95%, rgba(0, 255, 153, 0.1));
    pointer-events: none;
}

.code-line {
    margin-bottom: 8px;
    opacity: 0.9;
    animation: codeLineGlow 3s infinite alternate;
}

.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }
.code-line:nth-child(5) { animation-delay: 2s; }

@keyframes codeLineGlow {
    from { opacity: 0.7; text-shadow: 0 0 5px #00ff99; }
    to { opacity: 1; text-shadow: 0 0 10px #00ff99; }
}

/* Columna derecha: Elementos visuales */
.sobre-mi-visual {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visual-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.perfil-card {
    background: rgba(20, 15, 35, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(51, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(51, 255, 255, 0.1);
}

.perfil-icono {
    font-size: 3.5rem;
    color: #33ffff;
    text-shadow: 0 0 10px #33ffff;
    flex-shrink: 0;
}

.perfil-info h4 {
    font-family: 'Orbitron', sans-serif;
    color: #33ffff;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #33ffff;
}

.perfil-info p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.perfil-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #00ff99;
    font-weight: bold;
    text-shadow: 0 0 8px #00ff99;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-top: 5px;
}

/* Tarjetas de habilidades */
.habilidad-card {
    background: rgba(15, 12, 25, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 51, 255, 0.3);
    backdrop-filter: blur(5px);
}

.habilidad-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.habilidad-header i {
    color: #ff33ff;
    font-size: 1.5rem;
}

.habilidad-header h5 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.habilidad-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.habilidad-progreso {
    height: 100%;
    background: linear-gradient(90deg, #ff33ff, #ff66ff);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.habilidad-porcentaje {
    display: block;
    text-align: right;
    color: #ff33ff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #ff33ff;
}

/* Cita inspiradora */
.cita-card {
    background: rgba(25, 20, 40, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.1);
}

.cita-icono {
    color: #00ff99;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ff99;
}

.cita-texto {
    color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.cita-autor {
    color: #00ff99;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #00ff99;
}

/* Footer de la sección */
.sobre-mi-footer {
    margin-top: 40px;
}

.sobre-mi-footer .hologram-text {
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
}

.sobre-mi-footer .hologram-line {
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    box-shadow: 0 0 5px #ffd700;
}

/* =========================
SECCIÓN: FORMULARIO DE CONTACTO
========================= */
#contacto-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: rgba(12, 8, 25, 0.95);
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid rgba(153, 51, 255, 0.2);
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header de la sección */
.contacto-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacto-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.divider-dot.purple {
    background-color: #9933ff;
    box-shadow: 0 0 10px #9933ff, 0 0 20px #9933ff;
    animation: pulsePurple 2s infinite alternate;
}

@keyframes pulsePurple {
    from { box-shadow: 0 0 8px #9933ff; }
    to { box-shadow: 0 0 15px #9933ff, 0 0 25px #9933ff; }
}

.contacto-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: #9933ff;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 8px #9933ff;
}

/* Grid del contenido */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Columna izquierda: Información */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: rgba(20, 15, 35, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(153, 51, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(153, 51, 255, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    color: #9933ff;
    text-shadow: 0 0 10px #9933ff;
    flex-shrink: 0;
}

.info-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.info-content p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Métodos de contacto */
.contacto-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method {
    background: rgba(15, 12, 25, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(51, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.method:hover {
    transform: translateX(5px);
    border-color: #33ffff;
    box-shadow: 0 5px 20px rgba(51, 255, 255, 0.2);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(51, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #33ffff;
    flex-shrink: 0;
}

.method-details h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.method-details p {
    color: #33ffff;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #33ffff;
}

.method-status {
    display: inline-block;
    background: rgba(0, 255, 153, 0.1);
    color: #00ff99;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 153, 0.3);
}

/* Estadísticas */
.contacto-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    background: rgba(20, 15, 35, 0.8);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 51, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #ff33ff;
    box-shadow: 0 5px 15px rgba(255, 51, 255, 0.2);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #ff33ff;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 8px #ff33ff;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #cccccc;
}

/* Columna derecha: Formulario */
.contacto-formulario {
    position: relative;
}

.form-card {
    background: rgba(15, 12, 25, 0.9);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0, 255, 153, 0.1),
                inset 0 0 20px rgba(0, 255, 153, 0.05);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ff99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Grupos del formulario */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.form-group label i {
    color: #00ff99;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(10, 8, 20, 0.8);
    border: 1px solid rgba(0, 255, 153, 0.4);
    border-radius: 8px;
    padding: 15px;
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff99;
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00ff99, #33ffff, #00ff99);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    transform: scaleX(1);
}

/* Botón de enviar */
.form-footer {
    margin-top: 30px;
}

.submit-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #00ff99, #00cc77);
    border: none;
    border-radius: 8px;
    padding: 18px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00cc77, #00ff99);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 153, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

.form-note {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-note i {
    color: #00ff99;
}

/* Popup de confirmación */
.confirmacion-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: rgba(15, 12, 25, 0.95);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid #00ff99;
    box-shadow: 0 0 40px rgba(0, 255, 153, 0.5);
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from { transform: translateY(-50px) scale(0.9); }
    to { transform: translateY(0) scale(1); }
}

.popup-icon {
    font-size: 4rem;
    color: #00ff99;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ff99;
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    from { transform: scale(1); text-shadow: 0 0 20px #00ff99; }
    to { transform: scale(1.1); text-shadow: 0 0 30px #00ff99; }
}

.popup-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.popup-content p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.popup-details {
    color: #00ff99 !important;
    font-size: 0.9rem !important;
    margin-top: 20px !important;
    text-shadow: 0 0 5px #00ff99;
}

.cerrar-popup-btn {
    margin-top: 25px;
    background: linear-gradient(135deg, #9933ff, #6633cc);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cerrar-popup-btn:hover {
    background: linear-gradient(135deg, #6633cc, #9933ff);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(153, 51, 255, 0.4);
}

/* Footer de la sección */
.contacto-footer {
    margin-top: 40px;
}

.contacto-footer .hologram-text {
    color: #9933ff;
    text-shadow: 0 0 8px #9933ff;
}

.contacto-footer .hologram-line {
    background: linear-gradient(to right, transparent, #9933ff, transparent);
    box-shadow: 0 0 5px #9933ff;
}

/* =========================
FOOTER
========================= */
#main-footer {
    position: relative;
    width: 100%;
    background: rgba(5, 5, 15, 0.98);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(0, 255, 153, 0.3);
    z-index: 2;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Logo y nombre en footer */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #00ff99;
    box-shadow: 0 0 15px #00ff99;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: rotate(15deg);
    box-shadow: 0 0 25px #00ff99, 0 0 40px #00ffcc;
}

.footer-name h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.footer-name p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Información de contacto en footer */
.footer-contact h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 8px #00ff99;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 5px;
}

.footer-contact-item:hover {
    background: rgba(0, 255, 153, 0.1);
    transform: translateX(5px);
}

.footer-contact-item i {
    color: #00ff99;
    font-size: 1.2rem;
    min-width: 24px;
}

/* Redes sociales en footer */
.footer-social h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 8px #00ff99;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff99;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 153, 0.3);
}

.social-icon:hover {
    background: rgba(0, 255, 153, 0.3);
    color: #000;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 0 20px #00ff99;
}

/* Línea divisoria del footer */
.footer-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.footer-line {
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, #00ff99, transparent);
}

.footer-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff99;
    border-radius: 50%;
    margin: 0 15px;
    box-shadow: 0 0 10px #00ff99;
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.2); }
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 153, 0.2);
}

.footer-copyright p {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-copyright .footer-sub {
    color: #00ff99;
    font-size: 0.75rem;
    text-shadow: 0 0 5px #00ff99;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .logo-container { width:200px; height:200px; margin-bottom:25px; }
    .name-title { font-size: 2.5rem; }
    .subtitle { font-size:1.2rem; }
    .description-text { font-size:1.2rem; padding:8px 15px; }
    #holo-clock { width: 140px; height: 70px; }
    #holo-clock #time { font-size:1.1rem; }
    #holo-clock #date { font-size:0.75rem; }
    .areas-title, .servicios-title, .sobre-mi-title, .contacto-title { font-size: 2.5rem; }
    .areas-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .imagen-container { max-width: 90%; }
    .sobre-mi-grid { grid-template-columns: 1fr; gap: 30px; }
    .texto-caracteristicas { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .contacto-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .header-nav .nav-list { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .areas-grid, .imagen-actions { flex-direction: column; }
    .areas-title, .servicios-title, .sobre-mi-title, .contacto-title { font-size: 2rem; }
    .areas-subtitle, .servicios-subtitle, .sobre-mi-subtitle, .contacto-subtitle { font-size: 1rem; }
    .hologram-container { flex-direction: column; }
    .hologram-line { width: 100%; }
    .action-btn { width: 100%; }
    .overlay-stats { flex-direction: column; }
    .perfil-card { flex-direction: column; text-align: center; }
    .perfil-stats { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-contact-items { align-items: center; }
    .social-icons { justify-content: center; }
    .contacto-stats { grid-template-columns: repeat(3, 1fr); }
    .form-card { padding: 25px; }
}

@media (max-width: 600px) {
    #main-header { padding: 10px 0; }
    .container { width:95%; padding:120px 10px 10px; }
    .logo-container { width:150px; height:150px; margin-bottom:20px; }
    .name-title { font-size:2rem; }
    .subtitle { font-size:1rem; }
    .description-text { font-size:1rem; padding:6px 10px; }
    #holo-clock { width: 130px; height: 60px; }
    #holo-clock #time { font-size:1rem; }
    #holo-clock #date { font-size:0.7rem; }
    #contador { font-size: 0.9rem; padding: 8px 12px; }
    #oracle-panel { width: 300px; right: 15px; }
    .areas-title, .servicios-title, .sobre-mi-title, .contacto-title { font-size: 1.8rem; }
    .area-card { padding: 20px; }
    .card-content h3 { font-size: 1.3rem; }
    .imagen-container { padding: 15px; }
    .modal-content { width: 95%; margin: 10% auto; }
    .sobre-mi-texto, .sobre-mi-visual { padding: 20px; }
    .texto-titulo { font-size: 1.5rem; }
    .contacto-stats { grid-template-columns: 1fr; }
    .method { flex-direction: column; text-align: center; }
    .form-card { padding: 20px; }
    .popup-content { padding: 30px 20px; }
}
/* ===== ESTILOS PARA EL FORMULARIO DE CONTACTO ===== */

/* Alertas */
.alert-success {
    background: linear-gradient(135deg, #00cc77, #009955);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #00ff99;
    box-shadow: 0 0 20px rgba(0,255,153,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.alert-success i {
    font-size: 20px;
}

/* Animación para alertas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campos obligatorios */
.form-required {
    font-size: 12px;
    color: rgba(0,255,153,0.7);
    margin-top: 10px;
    text-align: center;
}

/* Validación visual */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff3333 !important;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #00ff99 !important;
}

/* Mejoras para el popup de confirmación */
.confirmacion-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #00ff99;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,255,153,0.4);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon {
    font-size: 60px;
    color: #00ff99;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cerrar-popup-btn {
    background: linear-gradient(135deg, #ff33ff 0%, #9933ff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cerrar-popup-btn:hover {
    background: linear-gradient(135deg, #ff66ff 0%, #aa66ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,51,255,0.4);
}
/* ===== ESTILOS PARA EL FORMULARIO DE CONTACTO ===== */

/* Campos obligatorios */
.form-required {
    font-size: 12px;
    color: rgba(0,255,153,0.7);
    margin-top: 10px;
    text-align: center;
}

/* Validación visual */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff3333 !important;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #00ff99 !important;
}

/* Mejoras para el popup de confirmación */
.confirmacion-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #00ff99;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,255,153,0.4);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon {
    font-size: 60px;
    color: #00ff99;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cerrar-popup-btn {
    background: linear-gradient(135deg, #ff33ff 0%, #9933ff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cerrar-popup-btn:hover {
    background: linear-gradient(135deg, #ff66ff 0%, #aa66ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,51,255,0.4);
}
/* ===== POPUP DE CONFIRMACIÓN - ESTILOS CORREGIDOS ===== */
.confirmacion-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: popupFadeIn 0.3s ease;
}

/* Animación de entrada */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenido del popup - CENTRADO Y RESPONSIVE */
.popup-content {
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #151530 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 90%;
    width: 500px;
    min-width: 280px;
    text-align: center;
    border: 2px solid #00ff99;
    box-shadow: 0 0 50px rgba(0, 255, 153, 0.5),
                0 0 100px rgba(0, 255, 153, 0.3);
    animation: popupScaleIn 0.4s ease;
    margin: 20px;
    overflow: hidden;
}

/* Animación de escala para el contenido */
@keyframes popupScaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ícono del popup */
.popup-icon {
    font-size: 4rem;
    color: #00ff99;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ff99;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 20px #00ff99;
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px #00ff99;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px #00ff99;
    }
}

/* Título del popup */
.popup-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

/* Texto del popup */
.popup-content p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 0 10px;
}

/* Botón de cerrar */
.cerrar-popup-btn {
    background: linear-gradient(135deg, #00ff99, #00cc77);
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    color: #000;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    display: inline-block;
    min-width: 150px;
}

.cerrar-popup-btn:hover {
    background: linear-gradient(135deg, #00cc77, #00ff99);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}

/* Efecto de escaneo en el borde */
.popup-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00ff99, #33ffff, #ff33ff, #00ff99,
        #00ff99, #33ffff, #ff33ff, #00ff99);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 22px;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== RESPONSIVE PARA EL POPUP ===== */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
        max-width: 95%;
        margin: 15px;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .cerrar-popup-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 25px 15px;
        max-width: 98%;
        margin: 10px;
    }
    
    .popup-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .popup-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .popup-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .cerrar-popup-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/* Asegurar que el body no se desplace cuando el popup está abierto */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/* ===== RESPONSIVE PARA RELOJ Y CONTADOR ===== */

/* Reloj Holográfico - Responsive */
#holo-clock-container {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 999;
    font-family: 'Share Tech Mono', monospace;
}

/* Contador de visitas - Responsive */
#contador {
    position: fixed;
    top: 80px;
    left: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #00ff00;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 0 5px #00ff00 inset, 0 0 10px #00ff00, 0 0 15px #00ffcc;
    text-align: center;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* Para tablets (768px - 1024px) */
@media (max-width: 1024px) {
    #holo-clock-container {
        top: 70px;
        right: 15px;
    }
    
    #holo-clock {
        width: 160px;
        height: 75px;
        padding: 10px;
    }
    
    #holo-clock #time {
        font-size: 1.2rem;
    }
    
    #holo-clock #date {
        font-size: 0.8rem;
    }
    
    #contador {
        top: 70px;
        left: 15px;
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

/* Para móviles grandes (600px - 768px) */
@media (max-width: 768px) {
    #holo-clock-container {
        top: 60px;
        right: 10px;
    }
    
    #holo-clock {
        width: 140px;
        height: 65px;
        padding: 8px;
    }
    
    #holo-clock #time {
        font-size: 1rem;
    }
    
    #holo-clock #date {
        font-size: 0.75rem;
    }
    
    #contador {
        top: 60px;
        left: 10px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Para móviles pequeños (hasta 600px) */
@media (max-width: 600px) {
    /* Ajustar header para que no cubra los elementos */
    #main-header {
        padding: 8px 0;
        height: auto;
        min-height: 60px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Mover reloj y contador más abajo si el header es muy grande */
    #holo-clock-container {
        top: 65px;
        right: 8px;
    }
    
    #holo-clock {
        width: 130px;
        height: 60px;
        padding: 6px;
    }
    
    #holo-clock #time {
        font-size: 0.9rem;
    }
    
    #holo-clock #date {
        font-size: 0.7rem;
    }
    
    #contador {
        top: 65px;
        left: 8px;
        font-size: 0.8rem;
        padding: 5px 10px;
        max-width: 120px;
    }
}

/* Para móviles muy pequeños (hasta 400px) */
@media (max-width: 400px) {
    #holo-clock-container {
        top: 70px;
        right: 5px;
    }
    
    #holo-clock {
        width: 110px;
        height: 55px;
        padding: 5px;
    }
    
    #holo-clock #time {
        font-size: 0.8rem;
    }
    
    #holo-clock #date {
        font-size: 0.65rem;
    }
    
    #contador {
        top: 70px;
        left: 5px;
        font-size: 0.75rem;
        padding: 4px 8px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #contador::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, #00ff00, transparent);
        animation: scanLine 2.5s linear infinite;
    }
}

/* Asegurar visibilidad en modo claro */
body.light-theme #holo-clock {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border-color: #111;
    box-shadow: 0 0 5px #111 inset, 0 0 10px #111;
}

body.light-theme #contador {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border-color: #111;
    box-shadow: 0 0 5px #111 inset, 0 0 10px #111;
}

/* Asegurar que el reloj esté sobre otros elementos */
#holo-clock-container, #contador {
    z-index: 1000 !important;
}

/* Animación para el contador cuando se actualiza */
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contador-actualizado {
    animation: countPulse 0.5s ease;
}

/* ===== MEJORAS PARA EL FORMULARIO EN MÓVILES ===== */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Ajustar el popup en móviles */
    .confirmacion-popup {
        padding: 10px;
    }
    
    .popup-content {
        max-width: 95%;
        margin: 20px;
        padding: 25px 20px;
    }
}
/* ===== RESPONSIVE PARA RELOJ Y CONTADOR ===== */

/* Reloj Holográfico - Responsive */
#holo-clock-container {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 999;
    font-family: 'Share Tech Mono', monospace;
}

/* Contador de visitas - Responsive */
#contador {
    position: fixed;
    top: 80px;
    left: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #00ff00;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 0 5px #00ff00 inset, 0 0 10px #00ff00, 0 0 15px #00ffcc;
    text-align: center;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* Para tablets (768px - 1024px) */
@media (max-width: 1024px) {
    #holo-clock-container {
        top: 70px;
        right: 15px;
    }
    
    #holo-clock {
        width: 160px;
        height: 75px;
        padding: 10px;
    }
    
    #holo-clock #time {
        font-size: 1.2rem;
    }
    
    #holo-clock #date {
        font-size: 0.8rem;
    }
    
    #contador {
        top: 70px;
        left: 15px;
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

/* Para móviles grandes (600px - 768px) */
@media (max-width: 768px) {
    #holo-clock-container {
        top: 60px;
        right: 10px;
    }
    
    #holo-clock {
        width: 140px;
        height: 65px;
        padding: 8px;
    }
    
    #holo-clock #time {
        font-size: 1rem;
    }
    
    #holo-clock #date {
        font-size: 0.75rem;
    }
    
    #contador {
        top: 60px;
        left: 10px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Para móviles pequeños (hasta 600px) */
@media (max-width: 600px) {
    /* Ajustar header para que no cubra los elementos */
    #main-header {
        padding: 8px 0;
        height: auto;
        min-height: 60px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Mover reloj y contador más abajo si el header es muy grande */
    #holo-clock-container {
        top: 65px;
        right: 8px;
    }
    
    #holo-clock {
        width: 130px;
        height: 60px;
        padding: 6px;
    }
    
    #holo-clock #time {
        font-size: 0.9rem;
    }
    
    #holo-clock #date {
        font-size: 0.7rem;
    }
    
    #contador {
        top: 65px;
        left: 8px;
        font-size: 0.8rem;
        padding: 5px 10px;
        max-width: 120px;
    }
}

/* Para móviles muy pequeños (hasta 400px) */
@media (max-width: 400px) {
    #holo-clock-container {
        top: 70px;
        right: 5px;
    }
    
    #holo-clock {
        width: 110px;
        height: 55px;
        padding: 5px;
    }
    
    #holo-clock #time {
        font-size: 0.8rem;
    }
    
    #holo-clock #date {
        font-size: 0.65rem;
    }
    
    #contador {
        top: 70px;
        left: 5px;
        font-size: 0.75rem;
        padding: 4px 8px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #contador::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, #00ff00, transparent);
        animation: scanLine 2.5s linear infinite;
    }
}

/* Asegurar visibilidad en modo claro */
body.light-theme #holo-clock {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border-color: #111;
    box-shadow: 0 0 5px #111 inset, 0 0 10px #111;
}

body.light-theme #contador {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border-color: #111;
    box-shadow: 0 0 5px #111 inset, 0 0 10px #111;
}

/* Asegurar que el reloj esté sobre otros elementos */
#holo-clock-container, #contador {
    z-index: 1000 !important;
}

/* Animación para el contador cuando se actualiza */
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contador-actualizado {
    animation: countPulse 0.5s ease;
}

/* ===== MEJORAS PARA EL FORMULARIO EN MÓVILES ===== */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Ajustar el popup en móviles */
    .confirmacion-popup {
        padding: 10px;
    }
    
    .popup-content {
        max-width: 95%;
        margin: 20px;
        padding: 25px 20px;
    }
}
/* ===== RELOJ HOLOGRÁFICO - RESPONSIVE ===== */
@media (max-width: 1024px) {
    #holo-clock-container {
        top: 100px;
        right: 20px;
    }
    
    #holo-clock {
        width: 160px;
        height: 70px;
        padding: 10px;
    }
    
    #holo-clock #time {
        font-size: 1.2rem;
    }
    
    #holo-clock #date {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    #holo-clock-container {
        top: 90px;
        right: 15px;
    }
    
    #holo-clock {
        width: 140px;
        height: 60px;
    }
    
    #holo-clock #time {
        font-size: 1rem;
    }
    
    #holo-clock #date {
        font-size: 0.7rem;
    }
    
    #contador {
        top: 90px;
        left: 15px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #holo-clock-container {
        top: 80px;
        right: 10px;
    }
    
    #holo-clock {
        width: 120px;
        height: 55px;
        padding: 8px;
    }
    
    #holo-clock #time {
        font-size: 0.9rem;
    }
    
    #holo-clock #date {
        font-size: 0.65rem;
    }
    
    #contador {
        top: 80px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 10px;
        width: auto;
        max-width: 120px;
    }
}

/* Para tablets en modo vertical */
@media (max-width: 600px) and (orientation: portrait) {
    #holo-clock-container {
        top: 85px;
        right: 10px;
    }
    
    #holo-clock {
        width: 130px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 360px) {
    #holo-clock-container {
        top: 75px;
        right: 5px;
    }
    
    #holo-clock {
        width: 110px;
        height: 50px;
    }
    
    #holo-clock #time {
        font-size: 0.85rem;
    }
    
    #contador {
        top: 75px;
        left: 5px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Asegurar que estén por encima de otros elementos en móviles */
#holo-clock-container, #contador {
    z-index: 1000 !important;
}

/* Evitar que se superpongan con el header en móviles */
@media (max-width: 768px) {
    #main-header {
        min-height: 70px;
    }
    
    .container {
        padding-top: 140px;
    }
}

/* Para pantallas muy altas (tablets grandes) */
@media (min-width: 769px) and (max-height: 600px) {
    #holo-clock-container {
        top: 70px;
    }
    
    #contador {
        top: 70px;
    }
}
/* ===== CONTADOR MEJORADO ===== */
#contador {
    position: fixed;
    top: 80px;
    left: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #00ff99;
    background-color: rgba(0, 20, 10, 0.9);
    border: 2px solid #00ff99;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 0 10px #00ff00 inset, 0 0 15px #00ff00, 0 0 20px #00ffcc;
    text-align: center;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* BARRA DE ESCANEO PARA EL CONTADOR */
#contador::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00ff00, transparent);
    animation: scanLine 2.5s linear infinite;
}

/* Efecto de nuevo visitante */
#contador.nuevo-visitante {
    animation: newVisitorPulse 2s ease-in-out;
    border-color: #ffff00;
    box-shadow: 0 0 15px #ffff00 inset, 0 0 20px #ffff00;
}

@keyframes newVisitorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive para contador */
@media (max-width: 768px) {
    #contador {
        top: 85px;
        left: 15px;
        font-size: 0.9rem;
        padding: 10px 15px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    #contador {
        top: 80px;
        left: 10px;
        font-size: 0.8rem;
        padding: 8px 12px;
        max-width: 110px;
    }
}

/* ===== NUEVO - OCULTAR CONTADOR Y RELOJ EN MÓVILES ===== */
@media (max-width: 768px) {
    #contador,
    #holo-clock-container {
        display: none !important;
    }
}