/* ======================================================
   NUMAKE STUDIO — Hoja de estilos compartida
   Reemplaza los <style> repetidos en cada página (Dreamweaver)
   ====================================================== */

:root {
    --bg: #060606;
    --bg-header: #000000;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #666666;
    --border: #111111;
    --accent: #ffffff;
    --radius: 10px;
    --max-width: 1200px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.65s ease;
    will-change: opacity;
}
body.page-loaded {
    opacity: 1;
}

.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

a { color: inherit; }

.contenedor {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* ======================================================
   HEADER + MENÚ DESPLEGABLE
   ====================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    padding: 15px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}
.header .logo { height: 20px; margin-bottom: 10px; }
.header a { display: flex; justify-content: center; align-items: center; }

.menu-wrapper {
    width: 100%;
    position: relative;
}
.menu-bar {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--bg-header);
    position: relative;
    z-index: 1000;
}
.arrow-img {
    height: 8px;
    opacity: 0.7;
    transition: transform 0.45s ease;
}
.menu-wrapper.open .arrow-img { transform: rotate(180deg); }

.menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    max-height: 70vh;
    overflow-y: auto;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
    box-shadow: 0 24px 45px rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.menu-wrapper.open .menu-panel {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 24px 20px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}
.menu > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: transform 0.34s ease, opacity 0.34s ease;
}
.menu-wrapper.open .menu > li {
    opacity: 1;
    transform: translateY(0);
}
.menu-wrapper.open .menu > li:nth-child(1) { transition-delay: 0.04s; }
.menu-wrapper.open .menu > li:nth-child(2) { transition-delay: 0.08s; }
.menu-wrapper.open .menu > li:nth-child(3) { transition-delay: 0.12s; }
.menu-wrapper.open .menu > li:nth-child(4) { transition-delay: 0.16s; }
.menu a.parent-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: default;
    transition: color 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}
.menu a.parent-link[href] { cursor: pointer; }
.menu a.parent-link:hover {
    color: #f7f7f7;
    transform: translateY(-2px);
    opacity: 0.95;
}
.menu a.parent-link:hover { text-decoration: none; }
.submenu { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.submenu a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.submenu a:hover { color: #fff; text-decoration: underline; }

/* ======================================================
   BOTONES
   ====================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn:hover { opacity: 0.8; }
.btn-outline {
    display: inline-block;
    padding: 13px 30px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #333;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.3s;
}
.btn-outline:hover { border-color: #fff; }

.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1200;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ======================================================
   HERO (Inicio)
   ====================================================== */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 170px 20px 80px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero .kicker {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 80px;
    line-height: 1;
    margin: 0 0 22px;
}
.hero p {
    font-size: 20px;
    color: #ccc;
    max-width: 720px;
    margin: 0 0 36px;
    line-height: 1.7;
}
.hero .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 18px;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 25px;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    align-self: flex-end;
}
.btn-secondary:hover {
    color: #fff;
    opacity: 0.88;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
}

/* ======================================================
   SECCIONES GENERALES
   ====================================================== */
section.block {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading-left { text-align: left; }
.section-heading-left h2 { margin: 0 0 14px; }
.section-heading h2 { font-size: 80px; margin: 0 0 14px; }
.section-heading p { color: var(--text-muted); font-size: 20px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ======================================================
   GRILLA DE PORTFOLIO
   ====================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: 1fr; } }

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: block;
    background: #111;
}
.project-card:hover { transform: translateY(-8px); }
.project-img { width: 100%; height: 400px; object-fit: cover; transition: filter 0.4s ease; display: block; }
.project-page .other-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}
.project-page .other-projects .project-card {
    min-height: 0;
}
.project-page .other-projects .project-img {
    height: 220px;
}
.project-page .other-projects .project-card span {
    display: block;
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.35);
}
.project-card:hover .project-img { filter: brightness(0.55); }
.project-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 45%;
    transform: translateY(40%);
    transition: transform 0.4s ease;
}
@media (max-width: 1024px) {
    .project-page .other-projects .project-img { height: 180px; }
}
@media (max-width: 700px) {
    .project-page .other-projects .project-img { height: 160px; }
}
.project-card:hover .project-overlay { transform: translateY(0); }
.project-title { font-size: 22px; margin: 0 0 8px; }
.project-desc { font-size: 14px; margin: 0 0 16px; opacity: 0.85; }
.project-btn {
    padding: 9px 18px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.project-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 130px 20px 90px;
}
.project-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}
.project-header h1 {
    font-size: 42px;
    margin: 0 0 10px;
    letter-spacing: 0.4px;
}
.project-subtitle {
    font-size: 16px;
    color: #aaa;
    margin: 0;
}
.project-hero img {
    width: 100%;
    max-width: 1000px;
    display: block;
    margin: 0 auto 50px;
    border-radius: 18px;
}
.project-description,
.project-block,
.project-info {
    max-width: 900px;
    margin: 0 auto 60px;
}
.project-description p,
.project-block p,
.project-info li {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
}
.project-block h2 {
    font-size: 22px;
    margin-bottom: 18px;
}
.project-block img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 18px;
}
.project-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.project-info li {
    margin-bottom: 10px;
}
.other-projects {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.other-title {
    color: #fff;
    text-align: center;
    font-size: 18px;
    margin-bottom: 28px;
}

/* ======================================================
   SERVICIOS / PLANES
   ====================================================== */
.planes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.plan {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan.destacado { border-color: #fff; }
.plan .badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #000; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
}
.plan h3 { margin: 6px 0 4px; font-size: 20px; }
.plan .precio { font-size: 26px; font-weight: 700; margin: 4px 0 18px; }
.plan .precio .desde { font-size: 12px; color: var(--text-muted); font-weight: 400; display: block; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan ul li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #ccc; margin-bottom: 12px; }
.plan .plan-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.plan .ideal { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.btn-plan {
    text-align: center;
    padding: 12px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}
.btn-plan:hover { opacity: 0.85; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h2, .faq-item .toggle { font-size: 17px; margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item .content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .content { max-height: 500px; padding-top: 14px; }
.faq-item .content p, .faq-item .content li { color: #ccc; font-size: 14px; line-height: 1.6; }

/* ======================================================
   ABOUT (Nosotros)
   ====================================================== */
.about-section { max-width: 760px; margin: 0 auto 40px; }
.about-section h1 { font-size: 36px; text-align: center; margin-bottom: 26px; }
.about-section h2 { font-size: 20px; margin-bottom: 10px; }
.about-section p, .about-section .lead { color: #ccc; line-height: 1.7; font-size: 15px; white-space: pre-line; }
.tools-card { text-align: center; max-width: 700px; margin: 0 auto; padding: 40px 20px 0; }
.tools-title { font-size: 20px; margin-bottom: 8px; }
.tools-text { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.tools-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.tools-logos img { height: 34px; opacity: 0.75; }

/* ======================================================
   CONTACTO
   ====================================================== */
.contacto { max-width: 560px; width: min(560px, 100%); margin: 110px auto 0; padding: 30px 30px 60px; flex: 1; }
.contacto h2 { text-align: center; margin-bottom: 10px; }
.contacto > p { text-align: center; margin-bottom: 30px; font-size: 14px; opacity: 0.8; }
.contacto form { display: flex; flex-direction: column; gap: 12px; }
.contacto input, .contacto textarea {
    padding: 12px;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0f0f0f;
    color: #fff;
    font-family: inherit;
}
.contacto textarea { min-height: 110px; resize: vertical; }
.contacto button {
    padding: 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.contacto button:hover { opacity: 0.85; }
.mail-contacto { text-align: center; margin-top: 26px; font-size: 14px; color: #ccc; }

.custom-select-wrapper { position: relative; }
.custom-select { border: 1px solid #333; border-radius: 6px; background: #0f0f0f; padding: 12px; cursor: pointer; font-size: 14px; }
.custom-select .options-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    margin-top: 4px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
.custom-select.open .options-list { display: block; }
.custom-select .option { padding: 10px 12px; font-size: 14px; }
.custom-select .option:hover, .custom-select .option.selected { background: #1a1a1a; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
    width: 100%;
    background: var(--bg-header);
    padding: 32px 20px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px 16px;
    justify-items: center;
    text-align: left;
}
footer .footer-social,
footer .footer-logo {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0;
}
footer.footer-simple {
    justify-items: start;
}
footer .footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}
footer .footer-social a + a {
    margin-left: 0;
}
footer.footer-simple .footer-logo {
    display: none;
}
footer.footer-simple .footer-social {
    justify-self: start;
}
footer .footer-social {
    margin-bottom: 10px;
}
footer .footer-logo {
    height: 28px;
    margin-bottom: 10px;
}
.footer-ig {
    width: 40px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.footer-ig:hover {
    opacity: 1;
}
.footer-social-link.linkedin-icon .footer-ig {
    width: 42px;
}
.footer-social-link.behance-icon .footer-ig {
    width: 50px;
}
footer nav {
    grid-column: 1;
    justify-self: start;
    margin-top: 10px;
    width: 100%;
    max-width: 540px;
}
footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 14px;
}
footer nav ul li a {
    color: #777;
    text-decoration: none;
    font-size: 12px;
}
footer nav ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
footer p {
    grid-column: 2;
    color: #777;
    font-size: 11px;
    margin: 0;
    justify-self: end;
    align-self: center;
}

@media (max-width: 720px) {
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer nav,
    footer p {
        grid-column: 1;
        justify-self: center;
    }
    footer nav {
        margin-top: 14px;
    }
    footer p {
        margin-top: 10px;
    }
}

/* ======================================================
   CASE STUDY PAGES (trabajos)
   ====================================================== */
.case-hero { max-width: var(--max-width); margin: 0 auto; padding: 160px 20px 40px; text-align: center; }
.case-hero h1 { font-size: 38px; margin-bottom: 14px; }
.case-hero p { color: var(--text-muted); font-size: 16px; max-width: 640px; margin: 0 auto; }
