/* ============ Hoolix: estilos del sitio y del panel ============ */

:root,
[data-theme="light"] {
    --bg: #ffffff;
    --alt: #f6faf8;
    --mint: #effcf5;
    --card: #ffffff;
    --ink: #10211a;
    --sub: #33463c;
    --line: #e3efe8;
    --field: #9db5a8;
    --chip: #d6f5e3;
    --chip-ink: #0f5f2c;
    --acc: #15803d;
    --acc-solid: #15803d;
    --acc-hover: #0f6a31;
    --soft: #86e0ac;
    --deep: #10211a;
    --navbg: rgba(255, 255, 255, 0.92);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --bg: #0e1713;
    --alt: #121e18;
    --mint: #15241c;
    --card: #1a2b22;
    --ink: #eaf5ef;
    --sub: #b9cfc3;
    --line: #2a3d32;
    --field: #4b6558;
    --chip: #1f3a2b;
    --chip-ink: #86e0ac;
    --acc: #4ade80;
    --acc-solid: #15803d;
    --acc-hover: #1a9a49;
    --soft: #86e0ac;
    --deep: #1f3a2b;
    --navbg: rgba(14, 23, 19, 0.92);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--acc); }
a:hover { text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.skip {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ----- Botones ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 12px 24px; border-radius: 999px;
    font: 700 15px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: background .15s, transform .15s;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--acc-solid); color: #fff; }
.btn-primary:hover { background: var(--acc-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-soft { background: var(--soft); color: #10211a; }
.btn-soft:hover { background: #a6ebc4; }
.btn-wa { background: #25d366; color: #08210f; }
.btn-wa:hover { background: #3be07a; }
.btn-danger { background: transparent; color: #b42318; border-color: #b42318; }
[data-theme="dark"] .btn-danger { color: #ff8a80; border-color: #ff8a80; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.btn-col { display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: 260px; }

/* ----- Cabecera ----- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--navbg); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 28px;
    color: var(--ink); text-decoration: none; letter-spacing: -0.5px; margin: 0;
}
.logo span { color: var(--acc); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--acc); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.theme-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    background: transparent; color: var(--ink); border: 1.5px solid var(--line);
    border-radius: 999px; padding: 8px 16px; cursor: pointer;
    font: 700 14px 'DM Sans', sans-serif;
}
.theme-toggle:hover { border-color: var(--acc); }
[data-theme="light"] .ico-sun, [data-theme="light"] .lbl-light { display: none; }
[data-theme="dark"] .ico-moon, [data-theme="dark"] .lbl-dark { display: none; }

/* ----- Tipografía ----- */
.display {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -2px; margin-bottom: 20px;
}
.display-sm { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -1.2px; }
.h2 {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px;
}
.h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--sub); max-width: 560px; margin-bottom: 0; }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--sub); }
.eyebrow { color: var(--acc); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow-light { color: var(--soft); }
.badge {
    display: inline-block; background: var(--chip); color: var(--chip-ink);
    font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
    padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ----- Secciones ----- */
.section { padding: 96px 0; background: var(--bg); }
.section-alt { background: var(--alt); }
.section-mint { background: var(--mint); }
.section-deep { background: var(--deep); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head-left { text-align: left; margin-left: 0; max-width: none; }

.hero { background: var(--mint); overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 460px; height: auto; }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 10px solid var(--chip); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-small { padding: 64px 0 56px; }
.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 20px; }
.service-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-top { align-items: flex-start; }
.split-media { flex: 1 1 380px; min-width: 0; }
.split-text { flex: 1 1 400px; min-width: 0; }
.about-art, .about-photo { background: var(--mint); border-radius: 28px; aspect-ratio: 5 / 4; position: relative; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.blob { position: absolute; display: block; }
.blob-a { left: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: var(--chip); }
.blob-b { right: 28px; top: 28px; width: 120px; height: 120px; border-radius: 24px; background: var(--acc-solid); transform: rotate(8deg); }
.dot-list { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.dot-list li { display: flex; gap: 12px; align-items: flex-start; }
.dot-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--acc-solid); margin-top: 8px; }
.exp { margin: 0; font-weight: 700; color: var(--chip-ink); }

/* ----- Tarjetas ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.card p { color: var(--sub); line-height: 1.6; }
.service-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.service-card p { margin-bottom: 8px; }
.card-link { margin-top: auto; font-weight: 700; color: var(--acc); }
.card-cta { background: var(--deep); border-color: var(--deep); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.card-cta .h3 { color: #fff; font-size: 26px; }
.card-cta p { color: #cfe9db; }
.card-cta .btn { align-self: flex-start; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; background: var(--chip); color: var(--chip-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; flex: none; }
.icon-lg { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 0; }
.reason { padding: 28px; border-radius: 20px; }
.num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px; color: var(--acc); margin-bottom: 10px; }
.reason .h3 { font-size: 21px; }
.feature-card { flex: 1 1 320px; min-width: 0; }

.project-card { padding: 0; overflow: hidden; }
.project-img { height: 220px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 22px 24px 26px; }
.project-body p { margin-bottom: 0; }
.tag { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--chip-ink); margin-bottom: 6px; }
.tile-0 { background: #d6f5e3; color: #0f5f2c; }
.tile-1 { background: #10211a; color: #86e0ac; }
.tile-2 { background: #bff0d3; color: #0f5f2c; }
.tile-3 { background: #15803d; color: #fff; }
.tile-4 { background: #e4f7ec; color: #0f5f2c; }
.tile-5 { background: #86e0ac; color: #10211a; }
[data-theme="dark"] .tile-0 { background: #1f3a2b; color: #86e0ac; }
[data-theme="dark"] .tile-1 { background: #0a1610; }
[data-theme="dark"] .tile-2 { background: #264b36; color: #d6f5e3; }
[data-theme="dark"] .tile-4 { background: #15241c; color: #86e0ac; }

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--acc-solid); color: #fff; }

/* ----- Preguntas frecuentes ----- */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-intro { flex: 1 1 300px; min-width: 0; }
.faq-list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--mint); border-radius: 16px; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
    font-size: 17px; font-weight: 700; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--acc); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--sub); line-height: 1.65; }

/* ----- Contacto ----- */
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.cta-box > div:first-child { flex: 1 1 420px; }
.on-deep { color: #fff; }
.on-deep-sub { color: #cfe9db; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--sub); font-size: 16px; }
.form-card { flex: 1 1 420px; min-width: 0; border-radius: 28px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--field); border-radius: 12px;
    font: 400 16px 'DM Sans', sans-serif; background: var(--bg); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--sub); opacity: .75; }
textarea { resize: vertical; }
.field-error { color: #b42318; font-size: 14px; }
[data-theme="dark"] .field-error { color: #ff8a80; }
.form-error { color: #b42318; margin-bottom: 12px; }
.form-error ul { margin: 0; padding-left: 18px; }
[data-theme="dark"] .form-error { color: #ff8a80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { padding: 24px 0; }

/* ----- Pie ----- */
.site-footer { background: #0a1610; color: #cfe9db; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 36px; }
.logo-footer { color: #fff; margin-bottom: 10px; }
.logo-footer span { color: #86e0ac; }
.footer-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer a { color: #cfe9db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #1f3328; font-size: 14px; color: #9db5a8; }
.footer-bottom p { margin: 0; }
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; color: #08210f; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}

/* ================= Panel de administración ================= */
.adm-shell { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--alt); }
.adm-side { flex: 0 0 250px; background: var(--deep); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.adm-side .logo { color: #fff; margin-bottom: 18px; display: inline-block; }
.adm-side .logo span { color: #86e0ac; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; }
.adm-nav a, .adm-nav button {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 44px; padding: 10px 14px; border-radius: 12px; color: #dff3e8; text-decoration: none;
    background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; font: 500 15px 'DM Sans', sans-serif;
}
.adm-nav a:hover, .adm-nav button:hover { background: rgba(255, 255, 255, 0.1); }
.adm-nav a.active { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 700; }
.adm-badge { background: #86e0ac; color: #10211a; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.adm-side .theme-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.3); margin-top: 12px; justify-content: center; }
.adm-main { flex: 1 1 600px; min-width: 0; padding: 32px; }
.adm-main h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 32px; margin-bottom: 20px; letter-spacing: -.5px; }
.adm-panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 24px; }
.adm-panel h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; margin-bottom: 14px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.adm-stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.adm-stat strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 32px; }
.adm-stat span { color: var(--sub); font-size: 14px; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th, .adm-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--sub); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.adm-form-grid .wide { grid-column: 1 / -1; }
.hint { font-size: 13px; color: var(--sub); }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-size: 15px; }
.alert-ok { background: var(--chip); color: var(--chip-ink); }
.alert-warn { background: #fff4d6; color: #5c4400; border: 1px solid #f0d58a; }
[data-theme="dark"] .alert-warn { background: #3a2f10; color: #ffe29a; border-color: #6b5518; }
.msg { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--card); }
.msg summary { cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-height: 44px; }
.msg.unread summary { font-weight: 700; }
.msg-body { padding: 0 18px 18px; color: var(--sub); }
.msg-body pre { white-space: pre-wrap; font: inherit; margin: 10px 0 16px; color: var(--ink); }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--mint); }
.login-card { width: 100%; max-width: 420px; border-radius: 28px; padding: 36px; }
.login-card .logo { display: block; margin-bottom: 8px; }

@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .adm-side { flex-basis: 100%; }
    .adm-main { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .service-card { transition: none; }
}

/* ============ Testimonios (agregado) ============ */
.quote-card { position: relative; padding-top: 30px; }
.quote-card blockquote { margin: 0 0 18px; color: var(--ink); line-height: 1.6; }
.quote-mark {
    position: absolute; top: 4px; left: 18px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 56px; line-height: 1; font-weight: 800;
    color: var(--acc-solid); opacity: .35;
}
.quote-card figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.quote-card figcaption small { color: var(--sub); font-size: 13px; }
.quote-avatar {
    width: 42px; height: 42px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--chip-ink); font-size: 17px;
}

/* ============ Redes sociales en el footer (agregado) ============ */
.social-list { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0 0; }
.social-list a {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--sub);
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.social-list a:hover { color: var(--acc-solid); border-color: var(--acc-solid); transform: translateY(-2px); }
