/* -----------------------------
   Base
------------------------------ */
:root {
    --bg: #0e0f12;
    --panel: #13161b;
    --fg: #f2f4f7;
    --muted: #9aa3af;
    --line: #1f232b;
    --brand: #47c4f5;
    /* dorado sobrio */
    --brand-ink: #0d0f12;
    --radius: 16px;
    --maxw: 1100px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
}

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

a:hover {
    opacity: .9
}

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

.nowrap {
    white-space: nowrap
}

/* Layout helpers */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px
}

.maxw {
    max-width: 720px
}

.muted {
    color: var(--muted)
}

/* -----------------------------
   Navbar
------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 15, 18, .7);
    backdrop-filter: saturate(120%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav--simple {
    position: relative
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .5px
}

.brand--small .brand__text {
    font-weight: 700
}

.brand__logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 900
}

.brand__text {
    font-size: 14px
}

/* hamburger */
.nav__toggle {
    display: none
}

.nav__hamburger {
    display: none;
    cursor: pointer
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    margin: 5px 0;
    border-radius: 2px
}

.nav__menu {
    display: flex;
    gap: 22px
}

.nav__menu a {
    font-size: 14px;
    padding: 10px 10px;
    border-radius: 10px;
    opacity: .9;
}

.nav__menu a:hover {
    color: white;
}

/* Responsive nav */
@media (max-width: 860px) {
    .nav__hamburger {
        display: block
    }

    .nav__menu {
        position: absolute;
        right: 20px;
        top: 64px;
        display: none;
        flex-direction: column;
        gap: 8px;
        background: var(--panel);
        border: 1px solid var(--line);
        padding: 12px;
        border-radius: 12px;
        min-width: 210px
    }

    .nav__toggle:checked~.nav__menu {
        display: flex
    }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    min-height: calc(100vh - 70px);
    /* más grande, ajusta a tu gusto */
    display: flex;
    align-items: center;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 20px;
    /* más padding para dar altura */
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    margin: 0 0 20px;
    font-weight: 800;
}

.hero p {
    color: var(--muted);
    margin: 0 auto 30px;
    max-width: 760px;
    font-size: 18px;
}

/* Background image */
.hero__bg {
    position: absolute;
    inset: 0;
    background: url("assets/hero.jpg") center/cover no-repeat;
    z-index: 0;
    filter: brightness(0.5);
    /* oscurece para mejorar contraste */
}

/* -----------------------------
   Sections
------------------------------ */
.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--line)
}

.section--alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent)
}

.section__head {
    margin-bottom: 28px
}

.section h2 {
    font-size: clamp(22px, 3.6vw, 32px);
    margin: 0 0 10px;
    font-weight: 800
}

/* Cards + grids */
.grid {
    display: grid;
    gap: 18px
}

.grid--features {
    grid-template-columns: repeat(4, 1fr)
}

.grid--services {
    grid-template-columns: repeat(4, 1fr)
}

@media (max-width:1024px) {

    .grid--features,
    .grid--services {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:620px) {

    .grid--features,
    .grid--services {
        grid-template-columns: 1fr
    }
}

.card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), #0f1217);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px
}

/* Services cards */
.card--service ul {
    margin: 0;
    padding-left: 18px
}

.card--service li {
    margin: .25rem 0;
    color: var(--muted)
}

/* -----------------------------
   Form / Contacto
------------------------------ */
.form {
    margin-top: 10px
}

.form__row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr
}

@media (max-width:720px) {
    .form__row {
        grid-template-columns: 1fr
    }
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

label {
    font-size: 13px;
    color: var(--muted)
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0c0e12;
    color: var(--fg);
    border: 1px solid var(--line);
    outline: none
}
.message{
    resize: none;
}

input:focus,
textarea:focus {
    border-color: #2c3441
}

.form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px
}


.form__legal {
    font-size: 12px;
    color: var(--muted)
}

.address {
    margin-top: 26px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted)
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: white;
    font-weight: 800;
    cursor: pointer
}

.btn--ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid white;
}

.btn--ghost:hover {
    border-color: var(--fg)
}

/* -----------------------------
   Legal page
------------------------------ */
.legal {
    padding: 36px 20px
}

.legal h1 {
    font-size: 28px;
    margin: 16px 0
}

.legal h2 {
    font-size: 18px;
    margin: 22px 0 8px
}

.legal__back {
    margin-top: 24px
}

/* -----------------------------
   Footer
------------------------------ */
.footer {
    border-top: 1px solid var(--line);
    background: #0c0f14
}

.footer__inner {
    display: grid;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: auto 1fr auto;
    padding: 18px 0
}

.footer__links {
    justify-self: center;
    display: flex;
    gap: 18px
}

.footer__copy {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

@media (max-width:720px) {
    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center
    }
}

/* Focus visible for a11y */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px
}

/* Small utility */
hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0
}

/* Select field (Product dropdown) */
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0c0e12;
    color: var(--fg);
    border: 1px solid var(--line);
    outline: none;
    font-size: 14px;
    appearance: none;
    /* quita el estilo por defecto */
    cursor: pointer;
}

select:focus {
    border-color: #2c3441;
}

select option {
    background: #0c0e12;
    color: var(--fg);
}