:root {
    --bg-main: #050608;
    --bg-section: #0b0d11;
    --bg-accent: #11151c;
    --text-main: #f5f5f5;
    --text-muted: #a0a4b0;
    --primary: #ffffff;
    --border-subtle: #27292d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER */
.header {
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(5, 6, 8, 0.9);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

/* Botón menú móvil */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-main);
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

/* HERO */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #050608;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-card {
    background: radial-gradient(circle at top left, #1f2937 0, #050608 75%);
    border-radius: 1.25rem;
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
}

.hero-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-card-metric {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECCIONES GENERALES */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 32rem;
}

/* FEATURES / BENEFICIOS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-section);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    padding: 1.4rem;
}

.feature-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.feature-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* TEXTO LARGO / SOBRE */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.aside-card {
    background: var(--bg-section);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    padding: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bullet-list {
    margin-top: 0.75rem;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bullet-list li {
    margin-bottom: 0.35rem;
}

/* FORMULARIO CONTACTO */
.contact-form .field {
    margin-bottom: 0.9rem;
}

.contact-form label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-subtle);
    background: #050608;
    color: var(--text-main);
    font-size: 0.9rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #565a66;
}

.form-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-brand {
    max-width: 260px;
}

.footer-columns {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-col-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.footer-link {
    display: block;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        position: absolute;
        top: 56px;
        right: 1.5rem;
        background: #050608;
        border: 1px solid var(--border-subtle);
        border-radius: 0.8rem;
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

.page-fade {
    position: fixed;
    inset: 0;
    /* top/right/bottom/left: 0 */
    background: #000000;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

/* Clase que hace desaparecer el negro */
.page-fade.is-hidden {
    opacity: 0;
}

.section-header-wide {
    max-width: 900px;
    /* más ancho que el resto */
    margin-bottom: 1.2rem;
    /* menos margen inferior */
}

.section-subtitle-wide {
    max-width: none;
    /* ocupa todo el ancho permitido */
    font-size: 1rem;
    line-height: 1.5;
}

/* Si quieres que la sección servicio tenga menos padding vertical: */
#servicio {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* CONSEJOS */
.consejos-grid {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.consejo-card {
    background: var(--bg-section);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.consejo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

.consejo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.75rem 0;
}

.consejo-numero {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--primary), #e0e0e0);
    color: #050608;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.consejo-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.consejo-texto {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding: 1.5rem 1.75rem 1.75rem;
    margin: 0;
}

/* Responsive consejos */
@media (max-width: 900px) {
    .consejos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

/* CONTACTO DIVIDIDO */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-section);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-main);
}

.contact-avatar {
    margin-bottom: 1.25rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #050608;
    border: 3px solid var(--border-subtle);
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.contact-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item a {
    color: var(--primary);
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #e0e0e0;
}

.contact-social {
    margin-top: auto;
}

.social-link {
    display: inline-flex;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: left;
        align-items: flex-start;
    }
}
/* CENTRO PERFECTO contacto en móvil */
@media (max-width: 900px) {
    .contact-info {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto;
    }
    
    .contact-avatar {
        margin: 0 auto 1rem !important;
    }
}
