:root {
    --bg-dark: #0a0a0a;
    --bg-light: #f4f4f4;
    --text-light: #fff;
    --text-dark: #333;
    --text-muted: #888;
    --accent: #e0a040;
    --accent-hover: #f0b860;
}

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- NAV --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(51,51,51,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #555;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
nav .logo {
    color: var(--accent);
    font-size: 1.3rem; font-weight: 700; color: var(--accent);
    text-decoration: none; text-transform: uppercase; letter-spacing: 4px;
}
nav .links { display: flex; gap: 1.5rem; }
nav .links a {
    color: var(--text-muted); text-decoration: none; font-size: .9rem;
    transition: color .2s; text-transform: uppercase; letter-spacing: 2px;
}
nav .links a:hover, nav .links a.active { color: var(--text-light); }



/* --- MAIN --- */
main { padding-top: 4rem; flex: 1; }

h1 { font-size: 2.4rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 4px; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 4px; }

/* --- HERO / HEADER --- */
.hero {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    padding: 2rem 4rem;
    /* border-bottom: 2px solid #555; */
    overflow: hidden;
}
.hero-text {
    text-align: center;
    flex: 1;
    letter-spacing: 4px;
}
.hero-text h1 {
    font-size: 8rem;
    font-weight: 700;
    line-height: .95;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.hero-text h2 {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 400;
    border-bottom: 2px solid var(--text-light);
    display: inline-block;
    padding-bottom: .3rem;
}
.hero-text p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.hero-image {
    flex: 0 0 1000px;
    height: 80vh;
    overflow: hidden;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}

/* --- SECCION ABOUT --- */
.seccion-about {
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    padding: 4rem;
    gap: 3rem;
    border-bottom: 2px solid #555;
}
.about-img {
    flex: 0 0 350px;
    height: 450px;
    overflow: hidden;
}
.about-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.about-text { flex: 1; }
.about-text h2 {
    font-size: 3rem;
    border: 3px solid var(--bg-light);
    display: inline-block;
    padding: .3rem .8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* --- PORTAFOLIO STRIP (imágenes destacadas) --- */
.portafolio-strip {
    background: #4d4b51;
    padding: 2rem;
    margin-top: 2rem;
}
.portafolio-strip h2 {
    color: #4d4b51;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.strip-scroll img {
    width: 200px; height: 300px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- SECCION PROYECTOS --- */
.seccion-proyectos {
    background: var(--bg-dark);
    padding: 4rem 2rem;
}
.seccion-proyectos > h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* --- GRID --- */
.grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}
.card {
    position: relative;
    width: 20rem;
    height: 30rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.card img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}
.card .info {
    position: absolute; top: 0; left: 0; right: 0;
    background: rgba(0,0,0,.6);
    padding: .8rem 1rem;
    color: var(--text-light);
}
.card .info h3 { font-size: 1.1rem; margin-bottom: .2rem; text-transform: uppercase; }
.card .info span { font-size: .8rem; color: var(--text-muted); }

/* --- FILTROS --- */
.filtros {
    display: flex; gap: .8rem; margin-bottom: 2rem;
    flex-wrap: wrap; justify-content: center;
}
.filtros button, .filtros a {
    background: transparent; border: 1px solid #555;
    color: var(--text-muted); padding: .5rem 1.2rem; border-radius: 20px;
    cursor: pointer; font-size: .85rem; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all .2s; font-family: 'Raleway', sans-serif;
}
.filtros button:hover, .filtros a:hover,
.filtros button.active, .filtros a.active {
    background: var(--text-light); color: var(--bg-dark); border-color: var(--text-light);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 2rem;
}
.modal-content {
    background: var(--bg-dark); border-radius: 12px;
    max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
    padding: 2rem; position: relative; border: 1px solid #555;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--text-light); font-size: 1.5rem;
    cursor: pointer;
}

/* --- MEDIA GALLERY --- */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem; margin-top: 1rem;
}
.media-gallery img, .media-gallery video { width: 100%; border-radius: 8px; }
.media-gallery iframe {
    width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px;
    grid-column: 1 / -1;
    min-height: 400px;
}

/* --- BADGE --- */
.badge {
    display: inline-block; padding: .2rem .6rem; border-radius: 10px;
    font-size: .75rem; background: var(--accent); color: var(--bg-dark);
    text-transform: uppercase; letter-spacing: 1px;
}

/* --- REDES SOCIALES (barra lateral fija) --- */
.social-bar {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    z-index: 50;
}
.social-bar a {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 55px;
    background: rgba(255,255,255,.15);
    color: var(--text-light); text-decoration: none;
    font-size: 1.5rem;
    margin: 5px 0;
    border-radius: 8px 0 0 8px;
    transition: background .2s;
}
.social-bar a:hover { background: rgba(255,255,255,.35); }

/* --- FORM --- */
.form-section {
    max-width: 600px; margin: 2rem auto; padding: 0 2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; margin-bottom: .3rem;
    color: var(--text-muted); font-size: .9rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: .7rem 1rem; border-radius: 8px;
    border: 1px solid #555; background: rgba(255,255,255,.05);
    color: var(--text-light); font-size: .95rem;
    font-family: 'Raleway', sans-serif;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn {
    background: var(--text-light); color: var(--bg-dark); border: none;
    padding: .7rem 2rem; border-radius: 8px; font-size: 1rem;
    cursor: pointer; font-weight: 700; transition: background .2s;
    text-transform: uppercase; letter-spacing: 2px;
    font-family: 'Raleway', sans-serif;
}
.btn:hover { background: var(--text-muted); color: var(--text-light); }

/* --- FOOTER --- */
footer {
    background: var(--bg-dark);
    border-top: 1px solid #555;
    text-align: center;
    padding: 2rem;
}
.footer-contacto {
    display: flex; justify-content: center; gap: 2rem;
    margin-bottom: 1rem;
}
.footer-contacto a {
    color: var(--text-light); text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
    gap: .3rem; font-size: .9rem; transition: color .2s;
}
.footer-contacto a:hover { color: var(--accent); }
.footer-contacto i { font-size: 1.5rem; }
.footer-content { max-width: 600px; margin: auto; }
.footer-nombre {
    font-size: 1.3rem; font-weight: 700; color: var(--text-light);
    margin-bottom: .2rem; text-transform: uppercase; letter-spacing: 4px;
}
.footer-rol {
    font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem;
}
.footer-links {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--text-muted); text-decoration: none; font-size: .85rem;
    transition: color .2s; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links a:hover { color: var(--text-light); }
.footer-copy {
    font-size: .75rem; color: var(--text-muted); opacity: .7;
}

#adolfo-antequera {
    color: var(--accent); text-decoration: none; font-weight: 700;
    transition: color .2s;
}

#adolfo-antequera:hover {
    color: var(--accent-hover);
}


/* --- HTMX indicator --- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

/* --- NAV TOGGLE (hamburguesa) --- */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: .5rem;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-light); transition: transform .3s, opacity .3s;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.5rem; }
    .hero-image { flex: none; width: 100%; height: 300px; }

    .seccion-about {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
    .about-img { flex: none; width: 100%; height: 300px; }
    .about-text h2 { font-size: 1.8rem; }

    .strip-scroll img { width: 150px; height: 220px; }

    .grid { gap: 10px; }
    .card { width: 220px; height: 320px; }

    .modal-overlay { padding: 1rem; }
    .modal-content { padding: 1.5rem; }
    .media-gallery { grid-template-columns: 1fr; }

    .social-bar { display: none; }

    .footer-links { gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .nav-toggle { display: flex; }
    nav .links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(51,51,51,.98);
        flex-direction: column;
        padding: 1rem 2rem; gap: .8rem;
        border-bottom: 1px solid #555;
    }
    nav.open .links { display: flex; }

    nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
    nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: 1.5rem 1rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text h2 { font-size: 1.2rem; }
    .hero-image { height: 200px; }

    .seccion-about { padding: 1.5rem 1rem; }

    .seccion-proyectos { padding: 2rem 1rem; }
    .seccion-proyectos > h2 { font-size: 2rem; }

    .grid { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 350px; height: 350px; }

    .modal-overlay { padding: .5rem; }
    .modal-content { padding: 1rem; max-height: 95vh; }

    footer { padding: 1.5rem 1rem; }
    .footer-links { flex-direction: column; gap: .6rem; }
    .footer-contacto { flex-direction: column; gap: 1rem; }
}
