/* ===========================
   EII PrivIA — Black & Gold UI v3
   Paleta: Dorado, Negro, Blanco
   =========================== */


/* ===== VARIABLES ===== */

:root {
    --gold: #D4AF37;
    /* Dorado */
    --gold-2: #E7C65A;
    /* Dorado claro */
    --black: #0B0B0B;
    /* Fondo principal */
    --ink: #111;
    /* Negro suave para tarjetas */
    --white: #FFFFFF;
    --muted: #B5B5B5;
    /* Texto secundario */
    --border: #1F1F1F;
    --container-width: 1140px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --transition: all .25s ease;
    --font-titulos: 'Poppins', sans-serif;
    --font-texto: 'Open Sans', sans-serif;
}


/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: var(--font-texto);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition)
}

a:hover {
    color: var(--gold-2)
}

p {
    color: var(--muted);
    margin-bottom: 1.1rem
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-titulos);
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem
}

h2 {
    font-size: 2.25rem
}

h3 {
    font-size: 1.35rem
}

ul {
    list-style: none
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px
}


/* ===== BOTONES ===== */

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--font-titulos);
    font-weight: 700;
    letter-spacing: .3px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer
}

.btn-primary {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold)
}

.btn-primary:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, .35)
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white)
}

.btn-secondary:hover {
    background: var(--white);
    color: #111
}

.btn-light {
    background: var(--white);
    color: #111;
    border-color: var(--white)
}

.btn-light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white)
}

.header-btn {
    padding: 10px 22px
}


/* ===== HEADER ===== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(11, 11, 11, .85);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px
}

.main-header .logo img {
    height: 90px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35))
}

.main-header .main-nav ul {
    display: flex;
    gap: 20px
}

.main-header .main-nav a {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding: 8px 2px
}

.main-header .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition)
}

.main-header .main-nav a:hover::after {
    width: 100%
}


/* ===== HERO (fondo con fallback + image-set) ===== */

.hero {
    color: #fff;
    padding: 120px 0;
    /* Fallback SIEMPRE visible */
    background: linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .78)), url('assets/hero-ai-justice.jpg') center/cover no-repeat;
}


/* image-set estándar */

@supports (background-image: image-set(url('x') 1x)) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .78)), image-set( url('assets/hero-ai-justice.jpg') 1x, url('assets/hero-ai-justice@2x.jpg') 2x) center/cover no-repeat;
    }
}


/* Safari prefijo */

@supports (background-image: -webkit-image-set(url('x') 1x)) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .78)), -webkit-image-set( url('assets/hero-ai-justice.jpg') 1x, url('assets/hero-ai-justice@2x.jpg') 2x) center/cover no-repeat;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center
}

.hero .headline {
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.12;
    margin: 0 0 16px
}

.gold {
    color: var(--gold)
}

.gold-soft {
    color: var(--gold-2)
}

.gold-underline {
    width: 84px;
    height: 6px;
    border-radius: 999px;
    background: var(--gold);
    margin: 14px 0 22px
}

.sub {
    font-size: 1.15rem;
    color: #dcdcdc;
    margin-bottom: 28px
}

.hero .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 26px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(212, 175, 55, .45);
    color: var(--gold);
    border-radius: 999px;
    background: rgba(212, 175, 55, .12);
    font-weight: 700;
    letter-spacing: .02em
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}


/* Visual (sin <img>) */

.visual-card {
    position: relative;
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    overflow: hidden
}

.visual-card .bar {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #121212;
    border-bottom: 1px solid #1f1f1f
}

.visual-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.visual-card .dot:nth-child(1) {
    background: var(--gold)
}

.visual-card .dot:nth-child(2) {
    background: var(--gold-2)
}

.visual-card .dot:nth-child(3) {
    background: #ffffff
}

.visual-media {
    min-height: 360px;
    background: radial-gradient(800px 300px at 60% -10%, rgba(212, 175, 55, .18), transparent 60%), linear-gradient(180deg, #111 0%, #0b0b0b 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* asset local del mockup */
    background-image: url('assets/mockup-dashboard.png');
}

.visual-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 200px at 20% 0%, rgba(0, 0, 0, .25), transparent 60%);
    pointer-events: none;
}


/* ===== SOCIAL PROOF ===== */

.social-proof {
    background: #0E0E0E;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0
}

.social-proof .container {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around
}

.social-proof span {
    color: #8a8a8a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .08em
}

.social-proof img {
    height: 34px;
    filter: grayscale(100%) brightness(.9);
    opacity: .7;
    transition: var(--transition)
}

.social-proof img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1
}


/* ===== BENEFICIOS ===== */

.benefits {
    background: #0b0b0b;
    padding: 80px 0
}

.benefits .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.benefit {
    background: linear-gradient(180deg, #111, #0b0b0b);
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.benefit:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45)
}

.benefit i {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 14px
}

.benefit h3 {
    margin-bottom: 6px
}

.benefit p {
    margin: 0;
    color: #cfcfcf
}


/* ===== MÉTRICAS ===== */

.metrics {
    background: linear-gradient(90deg, #D4AF37, #E7C65A);
    color: #111;
    padding: 26px 0
}

.metrics .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
    text-align: center
}

.metric strong {
    font-size: 1.6rem;
    display: block
}

.metric span {
    opacity: .85
}


/* ===== CTA FINAL ===== */

.cta-final {
    text-align: center;
    padding: 90px 0;
    background: #0b0b0b;
    border-top: 1px solid var(--border)
}

.cta-final h2 {
    margin-bottom: 12px
}

.cta-final p {
    max-width: 640px;
    margin: 0 auto 22px;
    color: #d7d7d7
}


/* ===== FOOTER ===== */

.main-footer {
    background: #080808;
    color: #cfcfcf;
    padding: 60px 0 0;
    border-top: 1px solid var(--border)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-logo {
    height: 90px;
    margin-bottom: 1rem;
    filter: grayscale(0) brightness(1.1)
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem
}

.footer-col ul a {
    color: #bfbfbf
}

.footer-col ul a:hover {
    color: var(--gold);
    padding-left: 6px
}

.footer-col p i {
    color: var(--gold);
    margin-right: 10px;
    width: 20px
}

.social-links {
    margin-top: 1rem
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition)
}

.social-links a:hover {
    background: var(--gold);
    color: #111
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    text-align: center;
    color: #9a9a9a
}


/* ===== SECCIONES GENERALES ===== */

.services {
    background: #0E0E0E;
    padding: 80px 0
}

.section-title {
    text-align: center;
    margin-bottom: 42px
}

.section-title span {
    color: var(--gold);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700
}

.section-title p {
    max-width: 640px;
    margin: 10px auto 0
}


/* ===== ACCESIBILIDAD / ANCLAS ===== */

#contacto {
    scroll-margin-top: 100px
}


/* ===== RESPONSIVE ===== */

@media (min-width:1200px) {
    .visual-media {
        min-height: 460px
    }
}

@media (max-width:1000px) {
    .hero .container {
        grid-template-columns: 1fr
    }
    .benefits .grid {
        grid-template-columns: 1fr
    }
    .metrics .container {
        grid-template-columns: 1fr 1fr
    }
    .footer-grid {
        grid-template-columns: 1fr
    }
}