/* ============================================
   CONTACTO Y FOOTER
   ============================================ */

/* Contacto */
.contact {
    background: var(--bg-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 0;
    border: 2px dashed var(--accent-color);
    box-shadow: none;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--accent-color);
    border-style: solid;
}

.contact-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card .icon-img {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.contact-card:hover .icon-img {
    color: var(--accent-color);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--accent-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.95rem;
}

.footer-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    position: relative;
}

.footer-line::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 0 0.5rem;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-divider {
    color: var(--accent-color);
    opacity: 0.5;
}

/* Footer elementos interactivos */
.footer-clock {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-clock.pulse {
    animation: clockPulse 1s ease-in-out;
}

@keyframes clockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--primary-color); }
}

.footer-message {
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.5s ease;
    min-width: 200px;
    text-align: left;
}

.footer-message.typing::after {
    content: '█';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.footer-main {
    font-size: 1rem;
    color: var(--text-light);
}

.footer-heart {
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 1.2rem;
}

.footer-heart:hover {
    transform: scale(1.4);
    text-shadow: 0 0 15px #ff6b6b, 0 0 30px #ff6b6b;
}

.footer-heart.beating {
    animation: heartbeat 0.5s ease-in-out 4;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.3); }
}

/* Footer glitch effect */
.footer-content.glitching {
    animation: footerGlitch 0.15s ease-in-out 3;
}

@keyframes footerGlitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    25% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
    50% { transform: translate(3px, -2px); filter: hue-rotate(180deg); }
    75% { transform: translate(-2px, -2px); filter: hue-rotate(270deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* Easter egg messages */
.easter-egg-popup {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--secondary-color);
    border: 3px solid var(--accent-color);
    padding: 1.5rem 2.5rem;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    white-space: pre;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 60px var(--accent-color);
    text-align: center;
}

.easter-egg-popup.show {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(-10px);
}

@media (max-width: 480px) {
    .ascii-footer {
        font-size: 0.6rem;
    }
}
