/* ============================================
   DESTRUCREACION - SHARED STYLES
   Variables, reset, nav, footer, modales,
   botones, secciones, animaciones, responsive
   ============================================ */

:root {
    --black: #0a0a0a;
    --dark: #0f1114;
    --dark-card: #161a1f;
    --dark-border: #222830;
    --cream: #f0f2f5;
    --cream-dim: #9aa3b0;
    --blue: #2AAEDF;
    --blue-hover: #3dc0f0;
    --blue-glow: rgba(42, 174, 223, 0.12);
    --yellow: #F4B707;
    --yellow-hover: #ffc62a;
    --yellow-glow: rgba(244, 183, 7, 0.12);
    --green: #2ecc71;
    --red: #e74c3c;
    --font-display: 'Space Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
.nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    display: flex; align-items: center; text-decoration: none;
}
.nav-brand img { height: 20px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    font-family: var(--font-display); font-size: 0.7rem;
    color: var(--cream-dim); text-decoration: none;
    letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link.active { color: var(--blue); }
.nav-cta {
    font-family: var(--font-display); font-size: 0.7rem;
    padding: 0.6rem 1.2rem; background: var(--yellow);
    color: var(--black); text-decoration: none; border-radius: 4px;
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--yellow-hover); transform: translateY(-1px); }

/* SECTIONS */
.section { padding: 6rem 2rem; }
.section-container { max-width: 900px; margin: 0 auto; }
.section-label {
    font-family: var(--font-display); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--blue); margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
    content: ''; display: inline-block;
    width: 30px; height: 1px; background: var(--blue);
}
.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700; line-height: 1.3; margin-bottom: 2rem;
}

/* BUTTONS */
.cta-primary {
    display: inline-block; font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 700;
    padding: 1rem 2.5rem; background: var(--yellow);
    color: var(--black); text-decoration: none; border-radius: 4px;
    letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.3s ease; border: none; cursor: pointer;
}
.cta-primary:hover {
    background: var(--yellow-hover); transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(244,183,7,0.25);
}
.cta-secondary {
    display: inline-block; font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700;
    padding: 0.8rem 2rem; background: transparent;
    color: var(--blue); text-decoration: none; border-radius: 4px;
    letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.3s ease; border: 1px solid var(--blue); cursor: pointer;
}
.cta-secondary:hover {
    background: rgba(42,174,223,0.1); transform: translateY(-1px);
}

/* MODAL */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 9999; justify-content: center; align-items: center;
    padding: 1.5rem; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-container {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 16px; width: 100%; max-width: 620px; max-height: 90vh;
    overflow: hidden; position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
}
.modal-title {
    font-family: var(--font-display); font-size: 0.85rem;
    font-weight: 700; color: var(--cream);
}
.modal-close {
    background: none; border: none; color: var(--cream-dim);
    font-size: 1.5rem; cursor: pointer; padding: 0.25rem 0.5rem;
    border-radius: 4px; transition: all 0.2s ease; line-height: 1;
}
.modal-close:hover { color: var(--cream); background: var(--dark-border); }
.modal-body { flex: 1; overflow-y: auto; }
.modal-body iframe { width: 100%; height: 75vh; border: none; background: var(--dark); }
.modal-body .placeholder-msg { padding: 3rem 2rem; text-align: center; }
.modal-body .placeholder-msg p { font-size: 1rem; color: var(--cream-dim); margin-bottom: 0.5rem; }
.modal-body .placeholder-msg a { color: var(--blue); }

/* FOOTER (3-column) */
.footer { border-top: 1px solid var(--dark-border); padding: 4rem 2rem 2rem; }
.footer-container { max-width: 900px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem; margin-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-display); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--cream); margin-bottom: 1rem;
}
.footer-tagline { font-size: 0.9rem; color: var(--cream-dim); line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    font-size: 0.9rem; color: var(--cream-dim);
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-copy {
    text-align: center; font-size: 0.75rem; color: var(--dark-border);
    padding-top: 2rem; border-top: 1px solid var(--dark-border);
}

/* Legacy footer (bootcamp simple) */
.footer-simple { border-top: 1px solid var(--dark-border); padding: 3rem 2rem; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--blue); }
.footer-contact { font-size: 0.85rem; color: var(--cream-dim); margin-bottom: 0.5rem; }
.footer-contact a { color: var(--cream-dim); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--blue); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE - SHARED */
@media (max-width: 768px) {
    .section { padding: 4rem 1.5rem; }
    .nav { padding: 0.75rem 1.25rem; }
    .nav-links { gap: 1rem; }
    .nav-link { font-size: 0.6rem; }
    .nav-cta { font-size: 0.6rem; padding: 0.5rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
