/* ================================
   VARIABLES & RESET
================================ */
:root {
    --azul: #0057FF;
    --azul-dark: #0040CC;
    --negro: #080808;
    --blanco: #F8F8F6;
    --gris: #8a8a8a;
    --gris-claro: #f0f0ee;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--blanco);
    color: var(--negro);
    overflow-x: hidden;
    cursor: none;
}

/* ================================
   CURSOR PERSONALIZADO
================================ */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--azul);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--azul);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0.5;
}

/* ================================
   NAVBAR
================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 14px 48px;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--negro);
}

.logo span {
    color: var(--azul);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--gris);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--negro);
}

.nav-cta {
    background: var(--negro) !important;
    color: var(--blanco) !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--azul) !important;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--negro);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ================================
   HERO
================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 48px 48px;
    position: relative;
    overflow: hidden;
    gap: 40px;
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 28vw;
    font-weight: 800;
    color: rgba(0, 87, 255, 0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    letter-spacing: -0.05em;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gris);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-weight: 400;
}

.dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: slide-up 0.8s forwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-title .accent {
    color: var(--azul);
    font-style: italic;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: 18px;
    color: var(--gris);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    animation: slide-up 0.8s 0.55s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    animation: slide-up 0.8s 0.7s forwards;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--azul);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, transform 0.2s;
}

.btn-main span {
    transition: transform 0.2s;
}

.btn-main:hover {
    background: var(--azul-dark);
    transform: translateY(-2px);
}

.btn-main:hover span {
    transform: translate(2px, -2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--negro);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
    border-color: var(--negro);
    transform: translateY(-2px);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

.hero-circle svg {
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--azul);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-card {
    position: absolute;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    font-family: var(--font-body);
}

.hero-card p {
    font-size: 14px;
    font-weight: 500;
    color: var(--negro);
    margin-bottom: 4px;
}

.hero-card span {
    font-size: 12px;
    color: var(--gris);
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.card-dot.green {
    background: #22c55e;
}

.card-float {
    top: 60px;
    right: 20px;
    animation: float 5s ease-in-out infinite;
}

.card-float-2 {
    bottom: 80px;
    left: 20px;
    animation: float 7s ease-in-out infinite reverse;
}

.card-stat {
    font-family: var(--font-display);
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--azul) !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 1;
}

.scroll-hint span {
    font-size: 11px;
    color: var(--gris);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gris), transparent);
    animation: scroll-anim 1.5s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ================================
   MARQUEE
================================ */
.marquee-wrap {
    overflow: hidden;
    background: var(--negro);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================================
   SERVICIOS
================================ */
.servicios {
    padding: 100px 48px;
}

.seccion-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.eyebrow-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--azul);
}

.seccion-eyebrow span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.servicios-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 64px;
}

.servicios-header h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.servicios-header h2 em {
    font-style: italic;
    color: var(--azul);
}

.servicios-header p {
    font-size: 16px;
    color: var(--gris);
    line-height: 1.7;
    font-weight: 300;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.servicio-card {
    background: var(--blanco);
    padding: 36px 28px;
    position: relative;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.servicio-card:hover {
    background: var(--negro);
}

.servicio-card:hover h3,
.servicio-card:hover p,
.servicio-card:hover .card-num {
    color: white;
}

.servicio-card:hover .card-arrow {
    color: var(--azul);
    transform: translate(4px, -4px);
}

.card-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--gris);
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.card-icon {
    font-size: 28px;
    margin: 4px 0;
}

.servicio-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--negro);
    transition: color 0.3s;
}

.servicio-card p {
    font-size: 14px;
    color: var(--gris);
    line-height: 1.6;
    flex: 1;
    transition: color 0.3s;
}

.card-arrow {
    font-size: 20px;
    color: var(--gris);
    transition: color 0.3s, transform 0.3s;
    align-self: flex-end;
}

/* ================================
   STATS
================================ */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 64px 48px;
    background: var(--negro);
}

.stat {
    flex: 1;
    text-align: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* ================================
   PORTFOLIO
================================ */
.portfolio {
    padding: 100px 48px;
    background: var(--blanco);
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.portfolio-title em {
    font-style: italic;
    color: var(--azul);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 16px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-item.grande {
    grid-row: span 1;
}

.portfolio-img {
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.portfolio-label {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.portfolio-info {
    padding: 20px;
    background: white;
}

.portfolio-info strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--negro);
}

.portfolio-info p {
    font-size: 13px;
    color: var(--gris);
    margin-bottom: 10px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--azul);
    background: rgba(0, 87, 255, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ================================
   CONTACTO
================================ */
.contacto {
    padding: 100px 48px;
    background: var(--negro);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contacto .seccion-eyebrow span:last-child {
    color: rgba(255, 255, 255, 0.4);
}

.contacto .eyebrow-line {
    background: rgba(255, 255, 255, 0.2);
}

.contacto-left h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.contacto-left h2 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
}

.contacto-left p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 40px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: color 0.2s;
}

.info-item:hover {
    color: white;
}

.info-icon {
    font-size: 18px;
}

/* FORMULARIO EN NEGRO */
.contacto-right .contacto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-right .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contacto-right .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacto-right .form-group label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contacto-right .form-group input,
.contacto-right .form-group select,
.contacto-right .form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.contacto-right .form-group input::placeholder,
.contacto-right .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.contacto-right .form-group input:focus,
.contacto-right .form-group select:focus,
.contacto-right .form-group textarea:focus {
    outline: none;
    border-color: var(--azul);
}

.contacto-right .form-group select option {
    background: var(--negro);
    color: white;
}

.contacto-right .form-group textarea {
    height: 110px;
    resize: none;
}

.contacto-right .form-group input.error,
.contacto-right .form-group select.error,
.contacto-right .form-group textarea.error {
    border-color: #ff4444;
}

.mensaje-error {
    font-size: 12px;
    color: #ff6666;
    margin-top: 4px;
}

/* ================================
   MENSAJE ÉXITO
================================ */
.exito {
    text-align: center;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exito-icono {
    font-size: 40px;
    margin-bottom: 16px;
}

.exito h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.exito p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 24px;
}

.exito .btn-main {
    display: inline-flex;
}

/* ================================
   FOOTER
================================ */
.footer {
    padding: 40px 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--blanco);
}

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

.footer-logo {
    font-size: 20px;
}

.footer-claim {
    font-size: 13px;
    color: var(--gris);
    font-style: italic;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gris);
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ================================
   ANIMACIONES SCROLL
================================ */
.aparecer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.aparecer.visible {
    opacity: 1;
    transform: translateY(0);
}


/* SELECTOR IDIOMA */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-selector span {
    color: var(--gris);
    font-size: 13px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--gris);
    cursor: pointer;
    font-family: var(--font-body);
    padding: 2px 4px;
    transition: color 0.2s;
}

.lang-btn.active {
    color: var(--negro);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--negro);
}

/* ================================
   RESPONSIVE MÓVIL
================================ */
@media (max-width: 900px) {

    .navbar {
        padding: 16px 24px;
    }

    .navbar.scrolled {
        padding: 12px 24px;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links.abierto {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 20px 24px;
        gap: 20px;
        z-index: 100;
    }

    .nav-cta {
        align-self: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 72px 20px 60px;
        text-align: center;
        min-height: 100vh;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 60px);
    }

    .hero-bg-text {
        font-size: 45vw;
        opacity: 0.03;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-visual {
        display: block;
        height: 280px;
        opacity: 0.4;
        pointer-events: none;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-main,
    .btn-ghost {
        font-size: 14px;
        padding: 12px 22px;
    }

    .scroll-hint {
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }

    .marquee-track span {
        font-size: 12px;
        padding: 0 20px;
    }

    .servicios {
        padding: 60px 20px;
    }

    .servicios-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .servicios-header h2 {
        font-size: 32px;
    }

    .servicios-grid {
        grid-template-columns: 1fr 1fr;
        border-radius: 16px;
    }

    .servicio-card {
        padding: 24px 20px;
    }

    .stats {
        padding: 48px 20px;
        flex-direction: column;
        gap: 32px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .portfolio {
        padding: 60px 20px;
    }

    .portfolio-title {
        font-size: 32px;
    }

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

    .contacto {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        gap: 40px;
    }

    .contacto-left h2 {
        font-size: 32px;
    }

    .contacto-right .form-row {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 32px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Ocultar cursor personalizado en dispositivos táctiles (tablets incluidas) */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ================================
   RGPD CHECKBOX
================================ */
.form-group-rgpd {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
}

.rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.rgpd-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--azul);
    cursor: pointer;
}

.link-privacidad {
    background: none;
    border: none;
    color: var(--azul);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-privacidad:hover {
    color: #4d8fff;
}

/* ================================
   MODAL PRIVACIDAD
================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.activo {
    display: flex;
}

.modal-box {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-box h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.modal-content strong {
    color: rgba(255, 255, 255, 0.85);
}

.modal-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-cerrar:hover {
    color: white;
}

@media (max-width: 900px) {
    .modal-box {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(26px, 10vw, 48px);
    }

    .hero-tag {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero-sub {
        font-size: 14px;
    }

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

    .hero-bg-text {
        display: none;
    }
}