/* ============================================
   TARJETA ITV — Modern Stylesheet
   Brand: Soluciones y Proyectos Avanzados
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Brand Colors */
    --color-primary: #e96656;
    --color-primary-hover: #cb4332;
    --color-primary-light: rgba(233, 102, 86, 0.1);
    --color-secondary: #34d293;
    --color-tertiary: #3ab0e2;
    --color-gold: #f7d861;

    /* Neutrals */
    --color-heading: #1a1a2e;
    --color-text: #555555;
    --color-text-light: #808080;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fb;
    --color-dark: #1a1a2e;
    --color-dark-soft: #272727;
    --color-footer: #171717;
    --color-border: #e8e8e8;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.3;
    font-weight: 700;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 102, 86, 0.35);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: #fff;
    color: var(--color-heading);
    border-color: #fff;
    transform: translateY(-2px);
}

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

.btn--outline-dark:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header .container {
    max-width: 1600px;
    padding: 0 48px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo__img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition);
}

.header--scrolled .logo__img {
    height: 34px;
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.logo__text strong {
    font-weight: 800;
}

/* Nav */
.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav__link--cta {
    background: var(--color-primary);
    color: #fff !important;
}

.nav__link--cta:hover {
    background: var(--color-primary-hover) !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(233, 102, 86, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(58, 176, 226, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero__badge {
    display: inline-block;
    background: rgba(52, 210, 147, 0.18);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1.5px solid rgba(52, 210, 147, 0.6);
    letter-spacing: 0.04em;
    animation: badge-glow 2.8s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(52, 210, 147, 0.25), 0 0 24px rgba(52, 210, 147, 0.1);
    }
    50% {
        box-shadow: 0 0 22px rgba(52, 210, 147, 0.5), 0 0 48px rgba(52, 210, 147, 0.2);
    }
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    max-width: 850px;
    margin: 0 auto 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero__highlights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.hero__highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(233, 102, 86, 0.28) 0%, rgba(247, 216, 97, 0.22) 100%);
    border: 1.5px solid rgba(233, 102, 86, 0.75);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.7vw, 1.05rem);
    padding: 16px 32px;
    border-radius: 50px;
    animation: highlight-pulse 1.8s ease-in-out infinite;
    letter-spacing: 0.02em;
    max-width: 720px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero__highlight::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: highlight-shine 3s ease-in-out infinite;
}

.hero__highlight--alt {
    background: linear-gradient(135deg, rgba(58, 176, 226, 0.15) 0%, rgba(52, 210, 147, 0.15) 100%);
    border-color: rgba(58, 176, 226, 0.35);
    animation: highlight-pulse-alt 2.5s ease-in-out infinite;
    animation-delay: 1.25s;
}

.hero__highlight svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.hero__highlight--alt svg {
    color: var(--color-tertiary);
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(233, 102, 86, 0.35), 0 0 45px rgba(233, 102, 86, 0.18), 0 4px 20px rgba(0,0,0,0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(233, 102, 86, 0.65), 0 0 70px rgba(247, 216, 97, 0.25), 0 4px 24px rgba(0,0,0,0.2);
        transform: scale(1.015);
    }
}

@keyframes highlight-shine {
    0% { left: -100%; }
    50%, 100% { left: 160%; }
}

@keyframes highlight-pulse-alt {
    0%, 100% { box-shadow: 0 0 15px rgba(58, 176, 226, 0.15), 0 0 30px rgba(58, 176, 226, 0.08); }
    50% { box-shadow: 0 0 25px rgba(58, 176, 226, 0.3), 0 0 50px rgba(58, 176, 226, 0.12); }
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.stat__symbol {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Hero scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.hero__scroll a:hover {
    color: #fff;
}

.hero__scroll svg {
    width: 28px;
    height: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   SECTIONS — General
   ======================================== */
.section {
    padding: var(--section-padding);
}

.section--light {
    background: var(--color-bg);
}

/* ITV Card background for the "Qué es" section */
#que-es {
    position: relative;
    overflow: hidden;
}

#que-es::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(-5deg);
    width: 640px;
    height: 444px;
    background: url('../img/tarjeta-itv.svg') center / contain no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    #que-es::before {
        display: none;
    }
}

#que-es .container {
    position: relative;
    z-index: 1;
}

.section--dark {
    background: var(--color-dark);
}

.section--accent {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 12px;
    background: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: 50px;
}

.section__tag--light {
    color: var(--color-secondary);
    background: rgba(52, 210, 147, 0.15);
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section__title--light {
    color: #fff;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.section__subtitle--light {
    color: rgba(255, 255, 255, 0.55);
}

/* ========================================
   QUÉ ES — Two Column Layout
   ======================================== */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.two-cols__text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.two-cols__text strong {
    color: var(--color-heading);
}

.two-cols__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.info-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card__icon svg {
    width: 22px;
    height: 22px;
}

.info-card__icon--red {
    background: rgba(233, 102, 86, 0.12);
    color: var(--color-primary);
}

.info-card__icon--blue {
    background: rgba(58, 176, 226, 0.12);
    color: var(--color-tertiary);
}

.info-card__icon--green {
    background: rgba(52, 210, 147, 0.12);
    color: var(--color-secondary);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-card ul li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    padding-left: 12px;
    position: relative;
}

.info-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-tertiary);
}

.info-card__icon--gold {
    background: rgba(247, 216, 97, 0.15);
    color: var(--color-gold);
}

/* ========================================
   TIPOS DE TARJETA — Expanded card
   ======================================== */
.info-card--tipos {
    flex-direction: column;
    gap: 12px;
}

.info-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tipos-group {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.tipos-group__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.3;
}

.tipos-group--consultar .tipos-group__header {
    background: rgba(128, 128, 128, 0.1);
    color: var(--color-text);
}

.tipos-group--disponible .tipos-group__header {
    background: rgba(52, 210, 147, 0.1);
    color: #1a7a52;
}

.tipos-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.tipos-badge--consultar {
    background: rgba(128, 128, 128, 0.2);
    color: #777;
}

.tipos-badge--disponible {
    background: rgba(52, 210, 147, 0.25);
    color: #1a7a52;
}

.tipos-list {
    padding: 2px 0;
}

.tipo-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.tipo-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.76rem;
    color: var(--color-primary);
    min-width: 26px;
    flex-shrink: 0;
}

.tipo-item > span:last-child {
    font-size: 0.76rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Target Audience band */
.target-audience {
    display: flex;
    align-items: center;
    gap: 20px 32px;
    margin-top: 48px;
    padding: 20px 28px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.target-audience__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.target-audience__label svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.target-audience__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.target-tag {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(233, 102, 86, 0.25);
}

/* Dark section variant */
.section--dark .target-audience {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.section--dark .target-audience__label {
    color: rgba(255, 255, 255, 0.9);
}

.section--dark .target-tag {
    background: rgba(233, 102, 86, 0.2);
    border-color: rgba(233, 102, 86, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   FUNCIONALIDADES — Feature Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__icon--red {
    background: rgba(233, 102, 86, 0.15);
    color: var(--color-primary);
}

.feature-card__icon--blue {
    background: rgba(58, 176, 226, 0.15);
    color: var(--color-tertiary);
}

.feature-card__icon--green {
    background: rgba(52, 210, 147, 0.15);
    color: var(--color-secondary);
}

.feature-card__icon--gold {
    background: rgba(247, 216, 97, 0.15);
    color: var(--color-gold);
}

.feature-card__title {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ========================================
   NORMATIVA — Grid
   ======================================== */
.normativa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.norma-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--transition);
}

.norma-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.norma-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.norma-card__badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
}

.norma-card__badge--eu {
    background: rgba(58, 176, 226, 0.12);
    color: var(--color-tertiary);
}

.norma-card__badge--es {
    background: rgba(233, 102, 86, 0.12);
    color: var(--color-primary);
}

.norma-card__badge--digital {
    background: rgba(52, 210, 147, 0.12);
    color: var(--color-secondary);
}

.norma-card__status {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.norma-card__title {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.norma-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   VERSIONES — Cards
   ======================================== */
.versions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.version-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.version-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.version-card--featured {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.version-card--featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.version-card--featured .version-card__header h3,
.version-card--featured .version-card__tagline,
.version-card--featured .version-card__features li {
    color: var(--color-heading);
}

.version-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 16px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.version-card__header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-card--featured .version-card__header {
    border-color: var(--color-border);
}

.version-card__header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

.version-card__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.version-card__features {
    text-align: left;
    margin-bottom: 28px;
}

.version-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.version-card__features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-secondary);
}

/* ========================================
   SOBRE NOSOTROS / EMPRESA
   ======================================== */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-intro strong {
    color: var(--color-heading);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card__icon--red {
    background: rgba(233, 102, 86, 0.12);
    color: var(--color-primary);
}

.service-card__icon--blue {
    background: rgba(58, 176, 226, 0.12);
    color: var(--color-tertiary);
}

.service-card__icon--green {
    background: rgba(52, 210, 147, 0.12);
    color: var(--color-secondary);
}

.service-card__icon--gold {
    background: rgba(247, 216, 97, 0.15);
    color: var(--color-gold);
}

.service-card__icon--purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.service-card__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card__list {
    list-style: none;
    padding: 0;
}

.service-card__list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.about-cta {
    text-align: center;
    padding-top: 10px;
}

.about-cta p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-grid {
    display: flex;
    justify-content: center;
}

.contact-grid--centered {
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 60px;
    max-width: 860px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(233, 102, 86, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item__icon svg {
    width: 22px;
    height: 22px;
}

.contact-item h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: #fff;
}

.contact-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-primary);
}

.contact-item a:hover {
    color: var(--color-primary-hover);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-dark-soft);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .header__logo {
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer__links h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.22);
    max-width: 820px;
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   ANIMATIONS — Scroll Reveal
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Nav colapsa a hamburger antes (1200px) para evitar crowding */
@media (max-width: 1200px) {
    .header__hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-dark);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .features-grid,
    .normativa-grid,
    .versions-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .version-card--featured {
        transform: scale(1);
    }

    .version-card--featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .header__hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-dark);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Layout */
    .two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info--grid {
        grid-template-columns: 1fr;
    }

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

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__stats {
        gap: 30px;
    }

    .stat__number {
        font-size: 2rem;
    }

}

/* ========================================
   COOKIE BANNER
   ======================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1f2e;
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 260px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: var(--color-primary-hover);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.cookie-btn--accept {
    background: var(--color-primary);
    color: #fff;
}

.cookie-btn--accept:hover {
    background: var(--color-primary-hover);
}

.cookie-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn--reject:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        padding: 16px 20px;
        gap: 16px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
    }
}
