:root {
    --ink: #1d3d48;
    --muted: #54727c;
    --paper: #f6fbfc;
    --white: #ffffff;
    --teal: #0c7c9c;
    --teal-deep: #0a6a86;
    --cyan: #3ec8e0;
    --foam: #dff4f8;
    --sand: #f4efe4;
    --line: rgba(12, 124, 156, 0.14);
    --shadow: 0 18px 40px rgba(29, 61, 72, 0.08);
    --radius: 22px;
}

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

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

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 480px at 8% -10%, #d8f3f8 0%, transparent 58%),
        radial-gradient(700px 420px at 100% 8%, #efe7d4 0%, transparent 52%),
        var(--paper);
    font-family: Outfit, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.page-glow {
    pointer-events: none;
    position: fixed;
    inset: auto -80px -80px auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(62, 200, 224, 0.22), transparent 70%);
    z-index: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(246, 251, 252, 0.84);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.brand img {
    height: 52px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(12, 124, 156, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--teal);
}

.nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white) !important;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 10px;
}

.menu-btn span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    padding: 72px 0 40px;
}

.hero-grid,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead,
.about-lead {
    font-size: 1.12rem;
    color: var(--muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), #1294b5);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(12, 124, 156, 0.22);
}

.btn-ghost {
    background: var(--white);
    color: var(--teal-deep);
    border: 1px solid var(--line);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.hero-meta dt {
    font-size: 0.78rem;
    color: var(--muted);
}

.hero-meta dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.hero-panel {
    display: grid;
    gap: 14px;
}

.panel-card,
.dev-card,
.service,
.about-quote,
.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-card {
    padding: 28px;
}

.panel-kicker {
    margin: 0 0 8px;
    color: var(--teal);
    font-weight: 700;
}

.panel-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.panel-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.panel-list a {
    color: inherit;
    text-decoration: none;
}

.panel-list a:hover,
.panel-list a:focus-visible {
    color: var(--teal);
}

.panel-list em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 0.92rem;
}

.dot {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.dot-live { background: #2bb673; }
.dot-next { background: #e0b14a; }
.dot-idea { background: var(--cyan); }

.panel-note {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--sand);
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    position: relative;
    padding: 72px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(223, 244, 248, 0.7), transparent);
}

.section-head {
    max-width: 640px;
    margin-bottom: 36px;
}

.bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.dev-card {
    padding: 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.dev-card-live {
    background:
        linear-gradient(180deg, rgba(223, 244, 248, 0.65), #fff 42%),
        var(--white);
}

.dev-card-cta {
    background: linear-gradient(160deg, #fff 40%, var(--sand));
}

.dev-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dev-index {
    font-weight: 800;
    color: #9bb8c1;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-live {
    background: #e4f7ed;
    color: #1d7a4a;
}

.badge-soon {
    background: #fff4d8;
    color: #8a6918;
}

.badge-idea {
    background: var(--foam);
    color: var(--teal-deep);
}

.dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.dev-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-size: 0.8rem;
}

.text-link {
    margin-top: auto;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.dev-card-live .text-link {
    margin-top: 16px;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service {
    padding: 24px;
}

.service-mark {
    display: block;
    margin-bottom: 18px;
    color: var(--cyan);
    font-weight: 800;
}

.about-quote {
    padding: 36px;
    background: linear-gradient(160deg, var(--teal), #1590b0);
    color: var(--white);
    border: 0;
}

.about-quote p {
    margin: 0 0 18px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.3;
}

.about-quote cite {
    font-style: normal;
    opacity: 0.85;
}

.section-contact {
    padding-bottom: 96px;
}

.contact-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.contact-list span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-list a,
.contact-list strong {
    font-weight: 700;
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 28px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(12, 124, 156, 0.35);
    border-color: var(--teal);
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Estado del envío del formulario (éxito / error) */
.form-status {
    margin: 0;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status[hidden] {
    display: none;
}

.form-status.success {
    background: #e4f7ed;
    color: #1d7a4a;
    border: 1px solid rgba(45, 182, 115, 0.35);
}

.form-status.error {
    background: #fdecec;
    color: #a3302e;
    border: 1px solid rgba(200, 60, 60, 0.3);
}

/* Trampa anti-spam: invisible para personas, rellenada por bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

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

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-brand {
    font-weight: 700;
    color: var(--teal-deep);
}

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

    .menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 84px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .footer-bar {
        flex-direction: column;
    }
}
