/* ==========================================================================
   alonsogarcia.dev — estilos del portfolio
   ========================================================================== */

:root {
    --bg: #F3F5F2;
    --surface: #FFFFFF;
    --ink: #11201A;
    --body: #3A4842;
    --muted: #4A5852;
    --faint: #6B7872;
    --line: #D5DBD6;
    --line-strong: #C3CCC6;
    --field-line: #B9C3BD;
    --placeholder: #E3E8E4;
    --accent: #C2410C;
    --accent-hover: #A8380A;
    --ok: #1F8A4C;

    --dark: #11201A;
    --on-dark: #F3F5F2;
    --on-dark-body: #C7D2CC;
    --on-dark-muted: #A9B8B0;
    --on-dark-line: #3A4A42;
    --on-dark-accent: #F08A4B;

    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius-sm: 8px;
    --radius: 16px;
    --container: 1200px;
    --gutter: 32px;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

input, select, textarea, button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 10;
    background: var(--ink); color: var(--on-dark);
    padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container--narrow { max-width: 880px; }

.mono { font-family: var(--font-mono); font-size: 13px; }
.accent { color: var(--accent); }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow--sm { font-size: 12px; letter-spacing: 0.05em; }
.eyebrow--on-dark { color: var(--on-dark-muted); }
.eyebrow--status { display: flex; align-items: center; gap: 10px; }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.5);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.45); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(31, 138, 76, 0); }
}

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--ink);
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { color: var(--ink); background: rgba(17, 32, 26, 0.06); }

.btn--dark { background: var(--ink); color: var(--on-dark); padding: 12px 20px; }
.btn--dark:hover { background: #24382F; color: var(--on-dark); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }

.btn--outline { background: transparent; }
.btn--block { width: 100%; min-height: 48px; font-size: 17px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-strong { font-weight: 600; text-underline-offset: 4px; }

/* Header ----------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }

.nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px;
    padding-top: 18px; padding-bottom: 18px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}
.brand span { color: var(--accent); }

.nav__menu {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 28px;
    font-size: 15px; font-weight: 500;
}
.nav__menu > a:not(.btn) { text-decoration: none; }

.nav__lang {
    display: inline-flex; gap: 6px;
    font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.nav__lang a { color: var(--muted); text-decoration: none; }
.nav__lang a:hover { color: var(--accent); }
.nav__lang [aria-current] { color: var(--ink); font-weight: 500; }

.nav__toggle {
    display: none;
    align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
    background: transparent; color: var(--ink);
    font-weight: 600; font-size: 15px;
    cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
    transition: transform .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
    .js .nav__toggle { display: inline-flex; }
    .js .nav__menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column; align-items: stretch;
        gap: 4px;
        padding: 8px 0 4px;
    }
    .js .nav__menu.is-open { display: flex; }
    .js .nav__menu > a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .js .nav__lang { padding: 12px 0; }
    .js .nav__menu .btn { margin-top: 8px; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 64px;
    align-items: center;
    padding-top: 88px; padding-bottom: 72px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.hero__subtitle { font-size: 20px; color: var(--body); max-width: 34em; }

.hero__art { position: relative; height: 440px; }

.mock-site {
    position: absolute; top: 0; left: 0; right: 64px;
    height: 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px -28px rgba(17, 32, 26, 0.35);
}
.mock-site__bar {
    height: 34px;
    border-bottom: 1px solid #E3E8E4;
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px;
}
.mock-site__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-site__bar em { margin-left: 14px; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.mock-site__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mock-line { height: 10px; background: #DDE3DE; border-radius: 3px; }
.mock-line--title { height: 14px; width: 58%; background: var(--ink); }
.mock-button { height: 30px; width: 130px; background: var(--accent); border-radius: 6px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.mock-cards div { height: 64px; background: #EEF1EE; border-radius: 6px; }

.mock-panel {
    position: absolute; bottom: 0; right: 0;
    width: 70%; height: 230px;
    background: var(--dark);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 28px 56px -26px rgba(17, 32, 26, 0.55);
}
.mock-panel__side {
    width: 56px;
    border-right: 1px solid #2A3A33;
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px 14px;
}
.mock-panel__side div { height: 22px; border-radius: 5px; background: #2A3A33; }
.mock-panel__side .is-active { background: var(--accent); }
.mock-panel__main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock-panel__title {
    font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-muted);
    letter-spacing: 0.05em; text-transform: uppercase;
}
.mock-row {
    height: 26px; border-radius: 5px; background: #1C2D26;
    display: flex; align-items: center; gap: 8px; padding: 0 10px;
}
.mock-row span:nth-child(1) { width: 40px; height: 6px; background: #4B5E55; border-radius: 3px; }
.mock-row span:nth-child(2) { flex: 1; height: 6px; background: #33463D; border-radius: 3px; }
.mock-row__pill { width: 36px; height: 12px; border-radius: 3px; }
.mock-row__pill--ok { background: #2F7A52; }
.mock-row__pill--warn { background: #8A5A2B; }

@media (max-width: 560px) {
    .hero { padding-top: 56px; gap: 48px; }
    .hero__art { height: 360px; }
    .mock-site { right: 24px; height: 250px; }
    .mock-panel { width: 82%; height: 200px; }
}

/* Trust strip ------------------------------------------------------------ */

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    padding-top: 28px; padding-bottom: 28px;
}
.trust__item { display: flex; flex-direction: column; gap: 4px; }
.trust__item strong { font-weight: 600; }
.trust__item span { color: var(--muted); font-size: 15px; }

/* Sections --------------------------------------------------------------- */

.section {
    display: flex; flex-direction: column; gap: 48px;
    padding-top: 96px; padding-bottom: 40px;
}
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section__head--split {
    max-width: none;
    flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 24px;
}
.section__head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.section__title--md { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.section__title--sm { font-size: clamp(28px, 3vw, 38px); }
.section__note { color: var(--muted); font-size: 15px; max-width: 360px; }

.grid { display: grid; gap: 24px; }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid--packages { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; align-items: stretch; }
.grid--projects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 28px; }

/* Cards ------------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.card--roomy { padding: 40px; gap: 18px; }
.card--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card__icon { color: inherit; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.card__title--lg { font-size: 28px; letter-spacing: -0.02em; }
.card__title--md { font-size: 26px; letter-spacing: -0.02em; }
.card__text { color: var(--body); }
.card__meta { color: var(--muted); }
.card--dark .card__text { color: #D3DCD7; }
.card--dark .card__meta { color: var(--on-dark-muted); }

@media (max-width: 560px) {
    .card--roomy { padding: 28px 24px; }
}

.callout {
    border: 1.5px dashed #9AA8A1;
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 20px;
}
.callout__copy { display: flex; flex-direction: column; gap: 6px; flex: 1 1 520px; }
.callout h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.callout p { color: var(--body); }

/* Packages --------------------------------------------------------------- */

.package { position: relative; }
.package__head { display: flex; flex-direction: column; gap: 8px; }
.package__desc { color: var(--muted); font-size: 15px; }
.package__price { font-family: var(--font-display); line-height: 1.2; }
.package__price-aside { font-size: 15px; color: var(--muted); }
.package__price-value { font-size: 36px; font-weight: 800; white-space: nowrap; }
.package__foot { margin-top: auto; color: var(--muted); }
.package__cta { width: 100%; padding: 12px; }

.package__badge {
    position: absolute; top: -14px; left: 24px;
    background: var(--accent); color: #FFFFFF;
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
}

.package--featured { border: 2px solid var(--accent); }
.package--featured .package__cta { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.package--featured .package__cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.package--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.package--dark .package__desc,
.package--dark .package__price-aside { color: var(--on-dark-body); }
.package--dark .package__foot { color: var(--on-dark-muted); }
.package--dark .ticks li::before { background: var(--on-dark-accent); }
.package--dark .package__cta { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.package--dark .package__cta:hover { background: #FFFFFF; }

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--accent); }

/* Projects --------------------------------------------------------------- */

.project { display: flex; flex-direction: column; gap: 18px; }
.project__shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 14px; background: var(--placeholder); }

.placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--placeholder);
    font-family: var(--font-mono); font-size: 13px; color: var(--muted);
    text-align: center; padding: 16px;
}

/* Process band ----------------------------------------------------------- */

.band { background: var(--dark); color: var(--on-dark); margin-top: 72px; }
.band .section { padding-bottom: 96px; }
.band a { color: var(--on-dark); }

.steps {
    margin: 0; padding: 0; list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 32px;
}
.steps__item { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--on-dark-line); padding-top: 22px; }
.steps__num { font-size: 14px; color: var(--on-dark-accent); }
.steps__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.steps__item p { color: var(--on-dark-body); font-size: 15px; }

/* Testimonials ----------------------------------------------------------- */

.section--testimonials { padding-top: 104px; gap: 40px; }
.quote { margin: 0; padding: 36px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 500; }
.quote figcaption { font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* About ------------------------------------------------------------------ */

.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 56px;
    align-items: center;
}
.about__photo { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; border-radius: var(--radius); object-fit: cover; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }

.prose { display: flex; flex-direction: column; gap: 16px; color: var(--body); }
.prose a { text-underline-offset: 4px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin-top: 16px; }

.chips {
    margin: 8px 0 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px;
    font-family: var(--font-mono); font-size: 13px;
}
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }

/* FAQ -------------------------------------------------------------------- */

#faq { padding-top: 104px; gap: 36px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); padding: 22px 0; }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 700; font-size: 21px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font: inherit; }
.faq__item summary:hover h3 { color: var(--accent); }
.faq__sign { position: relative; flex: none; width: 14px; height: 14px; margin-top: 10px; }
.faq__sign::before, .faq__sign::after {
    content: ''; position: absolute; background: var(--accent); border-radius: 1px;
    transition: transform .2s;
}
.faq__sign::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq__sign::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); }
.faq__answer { margin-top: 14px; }

/* Contact ---------------------------------------------------------------- */

.contact-wrap { margin-top: 72px; padding-bottom: 96px; }
.contact {
    background: var(--dark); color: var(--on-dark);
    border-radius: 24px;
    padding: clamp(32px, 5vw, 64px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 48px;
}
.contact__copy { display: flex; flex-direction: column; gap: 22px; }
.contact__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.contact__text { color: var(--on-dark-body); font-size: 18px; }
.contact__links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact__links a { color: var(--on-dark); text-underline-offset: 4px; }
.contact__links a:hover { color: var(--on-dark-accent); }
.contact__email { font-weight: 600; font-size: 18px; word-break: break-word; }

@media (max-width: 480px) {
    .contact { padding: 28px 20px; }
}

.form {
    background: var(--surface); color: var(--ink);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 480px) { .form { padding: 22px 18px; } }

.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
    background: #FDEDE6; color: #8A2C07;
    border: 1px solid #F3C3AD; border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 15px;
}

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
    font-weight: 400; font-size: 16px;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--field-line); border-radius: var(--radius-sm);
    padding: 12px; min-height: 44px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--accent) !important; background: #FFF7F3 !important; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--ink); }

.form--done { align-items: flex-start; justify-content: center; gap: 16px; color: var(--ink); }
.form--done svg { color: var(--ok); }
.form--done p { font-size: 18px; }

/* Legal ------------------------------------------------------------------ */

.legal { gap: 24px; padding-bottom: 96px; }
.legal__back { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 16px;
    padding-top: 32px; padding-bottom: 32px;
    font-size: 14px; color: var(--muted);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Phone gutter ----------------------------------------------------------- */

@media (max-width: 560px) {
    :root { --gutter: 16px; }
    .section { padding-top: 72px; }
    .callout { padding: 24px 20px; }
}
