/* ==========================================================================
   Marcos Serón Gras — Preparador Físico
   Tema oscuro construido sobre la paleta de marca (rojo carmesí / vino).
   ========================================================================== */

:root {
    /* Marca */
    --brand: #E63946;
    --brand-dark: #B81D2A;

    /* Fondo — oscuro, sin blanco ni negro puro */
    --bg: #121417;
    --bg-elevated: #1A1D20;
    --bg-alt: #1D2124;

    /* Texto */
    --text: #F5F6F7;
    --text-muted: #9BA1A7;
    --border: #2B2F33;

    /* Tipografía */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1180px;
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--text);
}

p {
    margin: 0 0 1em;
    color: var(--text-muted);
    max-width: 62ch;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 96px 0;
}

/* ---- Botones ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--brand);
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--brand-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-block {
    width: 100%;
}

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

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

.site-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 20, 23, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--text);
}

.contact-btn {
    background: var(--brand);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
}

.contact-btn:hover {
    background: var(--brand-dark);
    color: #FFFFFF;
}

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

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 88px 32px 96px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
}

.hero-tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--brand);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    max-width: 14ch;
}

.hero-lead {
    font-size: 17px;
    max-width: 48ch;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin: 28px 0 36px;
    flex-wrap: wrap;
}

.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 2px;
    background: var(--brand);
}

.hero-frame {
    aspect-ratio: 4 / 5;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 86%);
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-frame span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    color: var(--brand);
}

/* ---- Contacto ------------------------------------------------------------ */

.contact {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact h2 {
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

.contact-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

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

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-name-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.footer-role {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.footer-social a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-frame {
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1,
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 1.9rem;
        max-width: 20ch;
    }

    .hero-highlights {
        display: inline-flex;
        text-align: left;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    section,
    .hero,
    .contact {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}