/* ================================================================== */
/* 1. CONFIGURACIÓN GENERAL Y VARIABLES                               */
/* ================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0b0d;          /* Fondo casi negro ultra elegante */
    --neon-lime: #9eff0d;        /* Verde neón brillante de tu diseño */
    --text-white: #ffffff;       /* Blanco puro para contraste */
    --text-gray: #e0e0e0;        /* Gris suave para lectura cómoda */
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* ================================================================== */
/* 2. EFECTOS NEÓN DE FONDO (100% CSS)                                */
/* ================================================================== */

/* Degradado circular detrás del smartphone y el texto */
.neon-glow-circle {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(158, 255, 13, 0.07) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Cruz neón difuminada (Arriba a la izquierda) */
.neon-line-topleft {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    z-index: -1;
    pointer-events: none;
}
.neon-line-topleft::before,
.neon-line-topleft::after {
    content: '';
    position: absolute;
    background-color: var(--neon-lime);
    box-shadow: 0 0 20px var(--neon-lime), 0 0 40px var(--neon-lime);
    opacity: 0.4;
    filter: blur(2px);
}
/* Línea horizontal de la cruz */
.neon-line-topleft::before {
    top: 80px;
    left: -50px;
    width: 250px;
    height: 3px;
}
/* Línea vertical de la cruz */
.neon-line-topleft::after {
    top: -50px;
    left: 80px;
    width: 3px;
    height: 250px;
}

/* Esquina neón en escuadra (Abajo a la derecha) */
.neon-line-bottomright {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 220px;
    height: 220px;
    border-bottom: 5px solid var(--neon-lime);
    border-right: 5px solid var(--neon-lime);
    border-bottom-right-radius: 40px;
    /* Combinación de sombras externas e internas para el acabado brillante */
    box-shadow: 0 0 25px rgba(158, 255, 13, 0.6), inset 0 0 20px rgba(158, 255, 13, 0.4);
    filter: drop-shadow(0 0 15px var(--neon-lime));
    z-index: -1;
    pointer-events: none;
}

/* ================================================================== */
/* 3. ENCABEZADO (Logo)                                               */
/* ================================================================== */
.main-header {
    width: 100%;
    padding: 40px 8%;
    display: flex;
    justify-content: flex-end; /* Alinea el logo a la derecha como en tu muestra */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.site-logo {
    height: 50px; /* Ajusta la escala según tu archivo final */
    width: auto;
    display: block;
}

/* ================================================================== */
/* 4. ESTRUCTURA DEL HERO (Layout de dos columnas)                   */
/* ================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 8% 80px 8%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Columna de texto ligeramente más ancha */
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    width: 100%;
}

/* Columna Izquierda: Teléfono */
.hero-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-img {
    max-width: 100%;
    height: auto;
    max-height: 620px;
    /* Sombra proyectada suave para dar sensación de profundidad 3D */
    filter: drop-shadow(-15px 20px 30px rgba(0, 0, 0, 0.75));
}

/* Columna Derecha: Copys */
.hero-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--neon-lime);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 540px;
    font-weight: 400;
}

/* Contenedor de acciones en línea */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* ================================================================== */
/* 5. BOTÓN LLAMADO A LA ACCIÓN (CTA)                                 */
/* ================================================================== */
.cta-wrapper {
    display: flex;          /* Activa el alineamiento moderno en fila */
    align-items: center;    /* Centra verticalmente el botón y el círculo de WhatsApp */
    gap: 20px;              /* Añade una separación limpia entre ambos botones */
    margin-top: 30px;       /* Despega los botones del texto superior */
}
.btn-primary {
    display: inline-block;
    background-color: var(--neon-lime);
    color: var(--bg-dark);
    padding: 18px 42px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Formato píldora exacto del diseño */
    box-shadow: 0 8px 20px rgba(158, 255, 13, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animación sutil al pasar el cursor (Aumenta conversión) */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(158, 255, 13, 0.45);
    background-color: #adff1a; /* Variación ligera de brillo */
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* El botón de WhatsApp redondo con brillo */
.btn-hero-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--neon-lime); /* Verde oficial WhatsApp */
    color: var(--bg-dark);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero-wa:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

.wa-svg-icon {
    width: 32px;
    height: 32px;
}


/* ================================================================== */
/* 8. SECCIÓN PORTAFOLIO (Optimizado para Formato 4:5 - 1080x1350)     */
/* ================================================================== */
.portfolio-section {
    padding: 100px 8%;
    background-color: color-mix(in srgb, var(--bg-dark) 15%, transparent);
    position: relative;
    width: 100%;
}

.portfolio-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.portfolio-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

/* Grilla principal: Equilibrio perfecto de espacio entre bloques */
.portfolio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch; /* Empareja las alturas de ambos bloques automáticamente */
    width: 100%;
}

.portfolio-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    min-width: 0;
}

/* Etiquetas inferiores en verde neón */
.block-label {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-lime);
    margin-top: 40px;
    text-transform: capitalize;
    text-align: center;
    width: 100%;
}

/* ================================================================== */
/* BLOQUE: PUBLICACIONES (Proporción vertical estricta 4:5)          */
/* ================================================================== */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    flex-grow: 1;
}

.portfolio-item {
    width: 100%;
    /* AJUSTE CLAVE: Proporción exacta para imágenes de 1080 x 1350 (4:5) */
    aspect-ratio: 4 / 5; 
    border-radius: 12px;
    background-color: #14161a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible; /* Permite la expansión suave hacia afuera */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Muestra el diseño completo sin deformaciones */
    border-radius: 12px;
    display: block;
}

/* Efecto Hover Premium */
.portfolio-item:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* ================================================================== */
/* BLOQUE: REELS                                                      */
/* ================================================================== */
.reel-showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    background-color: #14161a;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%; 
    overflow: hidden; 
    position: relative;
    z-index: 2;
}

.reel-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    z-index: 3;
}

.reel-thumb, .reel-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.reel-video-container:hover .reel-thumb,
.reel-video-container:hover video {
    transform: scale(1.04);
}

/* El Badge "¡Dale clic!" */
.reel-badge {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(10, 11, 13, 0.9);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 20;
    animation: pulseBadge 2s infinite alternate;
    transition: opacity 0.3s ease;
}

/* Tarjeta informativa derecha */
.reel-info-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #14161a;
    position: relative;
    z-index: 2;
}

.reel-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-white);
}

.reel-features-list {
    list-style: none;
    margin-bottom: 40px;
}

.reel-features-list li {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

/* Iconos de redes sociales */
.social-icons-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto; 
}

.social-icon {
    height: 28px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ================================================================== */
/* 8.2 ESTILOS DEL LIGHTBOX (IMAGEN EMERGENTE)                      */
/* ================================================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: color-mix(in srgb, var(--bg-dark) 10%, transparent);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 95%;
    max-width: 520px; /* Al limitar el ancho máximo, la imagen vertical no se deforma ni se agiganta */
    aspect-ratio: 4 / 5; /* Forzamos a mantener la proporción original de tus diseños */
    cursor: default;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -5px;
    right: 15px;
    color: var(--text-white);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--neon-lime);
}


/* ================================================================== */
/* 9. SECCIÓN PASOS (Estructura de Tarjetas 3D Simétricas)            */
/* ================================================================== */
.steps-section {
    padding: 100px 8%;
    background-color: var(--bg-dark);
    width: 100%;
    position: relative;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.steps-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--neon-lime); /* Color verde neón idéntico a la referencia */
    letter-spacing: -0.5px;
}

/* Grilla de 3 columnas perfectas en escritorio */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    width: 100%;
}

.step-card {
    background-color: #0a0b0d;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto sutil al pasar el mouse por encima de la tarjeta */
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(158, 255, 13, 0.1);
}

.step-image-wrapper {
    width: 100%;
    height: 240px; /* Encapsula la altura para que las 3 tarjetas midan lo mismo */
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El círculo con el número flotante */
.step-number-badge {
    position: absolute;
    top: 240px; /* Ubicación exacta en la intersección (coincide con el height del wrapper) */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    /* Gradiente sutil para emular el efecto tridimensional de la imagen */
    background: linear-gradient(135deg, var(--neon-lime) 0%, #76cc0a 100%);
    color: #000000;
    font-size: 1.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #000000; /* Borde grueso para separarlo visualmente del fondo */
    box-shadow: 0 4px 14px rgba(158, 255, 13, 0.4);
    z-index: 10;
}

/* Contenedor de texto inferior (Fondo Negro Puro) */
.step-content {
    padding: 50px 30px 40px 30px; /* Padding superior amplio para no encimar el texto con el número */
    text-align: center;
    background-color: #000000; /* Bloque inferior totalmente negro */
    border-radius: 0 0 24px 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.step-content p {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* ================================================================== */
/* 10. SECCIÓN PLANES (Efecto de Columna Destacada Neón)             */
/* ================================================================== */
.pricing-section {
    padding: 100px 8%;
    background-color: color-mix(in srgb, var(--bg-dark) 10%, transparent);
    width: 100%;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 70px;
    color: #ffffff;
}

/* Grilla de 3 columnas que distribuye el espacio limpiamente */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Hace que todas las tarjetas midan lo mismo de alto */
}

/* Tarjeta Base (Plan Estándar) */
.price-card {
    background-color: #0b0c0e;
    border: 1px solid rgba(158, 255, 13, 0.25); /* Línea neón sutil y elegante */
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(158, 255, 13, 0.05);
}

/* Cabecera de la Tarjeta */
.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 25px;
    margin-bottom: 25px;
    min-height: 160px; /* Mantiene alineados los precios aunque el texto varíe */
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: #8a8d93;
    margin-left: 4px;
}

.plan-ideal {
    font-size: 0.95rem;
    color: #a0a5b0;
    line-height: 1.5;
}

/* Listado Interno de Características */
.card-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    justify-content: space-between; /* Envía la etiqueta a la izquierda y el valor a la derecha */
    align-items: center;
    font-size: 1.05rem;
    color: #e2e5ec;
}

.feature-label {
    color: #989ca6; /* Texto secundario para mejor contraste visual */
}

.feature-value {
    font-weight: 700;
}

.item-icon {
    width: 20px;
    height: 20px;
}

/* ================================================================== */
/* TARJETA DESTACADA (PLAN START UP VERDE COMPLETO)                  */
/* ================================================================== */
.featured-card {
    background-color: var(--neon-lime) !important;
    border: none !important;
    transform: scale(1.03); /* Sobresale sutilmente en tamaño */
    box-shadow: 0 20px 40px rgba(158, 255, 13, 0.15);
}

.featured-card:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Cambio de colores internos para la tarjeta verde */
.featured-card .plan-name,
.featured-card .plan-price,
.featured-card .feature-item {
    color: #000000 !important;
}

.featured-card .plan-ideal,
.featured-card .feature-label {
    color: #1e2022 !important;
    font-weight: 500;
}

.featured-card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Etiqueta flotante superior (Badge) */
.badge-recommended {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: var(--neon-lime);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 900;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ================================================================== */
/* 11. SECCIÓN CONTACTO (Diseño Minimalista y Profesional)            */
/* ================================================================== */
.contact-section {
    padding: 100px 8%;
    background-color: color-mix(in srgb, var(--bg-dark) 10%, transparent);
    width: 100%;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grilla de dos columnas perfectas */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- COLUMNA IZQUIERDA: MEDIA --- */
.contact-media-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.contact-image-wrapper {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.contact-promo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Botón de WhatsApp estilo Mockup */
.whatsapp-btn-contract {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--neon-lime); /* Color verde neón idéntico */
    color: #000000;
    padding: 14px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px; /* Completamente ovalado */
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(158, 255, 13, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn-contract:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(158, 255, 13, 0.4);
}

.wa-btn-icon {
    width: 24px;
    height: 24px;
}

/* --- COLUMNA DERECHA: FORMULARIO --- */
.contact-form-block {
    width: 100%;
}

.contact-main-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 35px;
    text-align: left;
}

/* Estructura del Formulario */
.clean-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #0b0c0e; /* Fondo oscuro integrado */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a0a5b0;
    letter-spacing: 0.3px;
}

/* Campos de entrada de datos (Inputs y Textarea) */
.clean-form input,
.clean-form textarea {
    width: 100%;
    background-color: #121418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Marcador de posición (Placeholder text) */
.clean-form input::placeholder,
.clean-form textarea::placeholder {
    color: #525660;
}

/* Efecto de iluminación interactiva al hacer clic en un campo */
.clean-form input:focus,
.clean-form textarea:focus {
    outline: none;
    border-color: var(--neon-lime);
    box-shadow: 0 0 12px rgba(158, 255, 13, 0.15);
}

/* Evita que el usuario desarme la caja de texto hacia los lados */
.clean-form textarea {
    resize: vertical;
}

/* Botón de envío estándar */
.submit-form-btn {
    background: transparent;
    border: 2px solid var(--neon-lime);
    color: var(--neon-lime);
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.submit-form-btn:hover {
    background-color: var(--neon-lime);
    color: #000000;
    transform: translateY(-2px);
}

.submit-form-btn:active {
    transform: translateY(0);
}


/* --- ANIMACIONES --- */
@keyframes pulseBadge {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(158, 255, 13, 0.2); }
    100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 12px 4px rgba(158, 255, 13, 0.15); }
}


/* ================================================================== */
/* 6. DISEÑO RESPONSIVO (Ordenado y optimizado para conversión)       */
/* ================================================================== */

/* --- TABLETS GRANDES / LAPTOPS COMPACTAS --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

/* --- TABLETS / PANTALLAS MEDIANAS --- */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .portfolio-block {
        height: auto;
    }
}

/* --- MÓVILES EN FORMATO VERTICAL (STAKING PRINCIPAL) --- */
@media (max-width: 768px) {
    .main-header {
        justify-content: center; /* Centra el logo en móviles */
        padding: 30px 20px;
    }

    .hero-section {
        padding-top: 140px;
    }

    .hero-container {
        grid-template-columns: 1fr; /* Pasa a una sola columna */
        text-align: center;
        gap: 50px;
    }

    .hero-text-column {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-column {
        order: 2; /* Pasa el teléfono abajo para dar prioridad al texto */
    }

    /* REDUCCIÓN DEL SMARTPHONE AL 50% */
    .hero-phone-img {
        width: 50% !important; /* Reduce la imagen exactamente a la mitad de su espacio */
        max-width: 320px; /* Candado de seguridad para pantallas intermedias */
        height: auto;
        margin: 0 auto; /* Lo mantiene perfectamente centrado */
        display: block;
    }

    /* Ajuste de los neones en pantallas pequeñas para que no saturen */
    .neon-glow-circle {
        width: 350px;
        height: 350px;
        top: 40%;
        left: 10%;
    }
    
    .neon-line-bottomright {
        width: 140px;
        height: 140px;
        bottom: -20px;
        right: -20px;
    }
}

/* --- MÓVILES PEQUEÑOS Y CARRUSELES (SWIPE NATIVO) --- */
@media (max-width: 576px) {
    /* Permitimos desborde horizontal controlado en el bloque de fotos */
    .portfolio-block:has(.publications-grid) {
        width: 100%;
        overflow: visible;
    }

    /* Transformamos la grilla en un carrusel táctil fluido */
    .publications-grid {
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: scroll !important; 
        scroll-snap-type: x mandatory; 
        scroll-behavior: smooth;
        gap: 24px;
        padding: 35px 16px 35px 16px; 
        margin: 0 -8%; /* Permite que el carrusel ruede de borde a borde en la pantalla */
        width: calc(100% + 16%); 
        -webkit-overflow-scrolling: touch; /* Deslizamiento inercial premium en iOS */
        cursor: grab;
    }

    .publications-grid:active {
        cursor: grabbing;
    }
    
    /* Oculta la barra de scroll para mantener el minimalismo visual */
    .publications-grid::-webkit-scrollbar {
        display: none !important; 
    }

    /* Definimos que cada tarjeta ocupe el 78% para que asome la siguiente */
    .portfolio-item {
        flex: 0 0 78% !important; 
        scroll-snap-align: center; 
        aspect-ratio: 4 / 5; /* Mantiene formato vertical 1080x1350 */
    }

    /* Hover controlado para dispositivos móviles/emuladores */
    .portfolio-item:hover {
        transform: scale(1.05) translateY(-5px); /* Escalado sutil que cabe perfectamente en el padding */
        z-index: 10;
    }
    
    /* Tarjeta del Reel se adapta a flujo vertical */
    .reel-showcase-card {
        grid-template-columns: 1fr; 
    }

    .reel-info-card {
        padding: 30px 20px;
    }
}

/* Adaptación móvil rápida */
@media (max-width: 768px) {
    .pricing-table-wrapper {
        margin: 0 -4%;
        width: calc(100% + 8%);
    }
    .pricing-table th, .pricing-table td {
        padding: 15px 10px;
        font-size: 0.95rem;
    }
    .price-cell { font-size: 1.1rem; }
}

/* ================================================================== */
/* INTEGRACIÓN EN TUS MEDIA QUERIES EXISTENTES                      */
/* ================================================================== */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr; /* Una sola tarjeta por fila en tablets y móviles */
        gap: 65px; /* Separación ampliada para acomodar los números flotantes */
    }
    
    .steps-main-title {
        font-size: 2.1rem;
        margin-bottom: 60px;
    }
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Una sola columna en tabletas y móviles */
        gap: 50px;
    }
    
    .contact-main-title {
        text-align: center;
        font-size: 2.1rem;
    }
    
    .clean-form {
        padding: 30px 20px;
    }
}

/* ================================================================== */
/* 7. ANIMACIONES DE FLOTACIÓN Y DESTELLO NEÓN                        */
/* ================================================================== */

/* Aplicar flotación al Smartphone */
.hero-phone-img {
    animation: floatingSmartphone 4s ease-in-out infinite;
}

/* Aplicar destello de energía a las líneas y círculos neón */
.neon-line-topleft::before,
.neon-line-topleft::after,
.neon-line-bottomright {
    animation: neonPulse 3s ease-in-out infinite alternate;
}

.neon-glow-circle {
    animation: ambientGlow 6s ease-in-out infinite alternate;
}

/* --- KEYFRAMES (Los movimientos matemáticos) --- */

/* Efecto Flotar: Sube, baja y rota un grado simulando gravedad cero */
@keyframes floatingSmartphone {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(0.5deg); /* Sube 15px */
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Efecto Energía Neón: Varía la intensidad de las sombras imitando el paso de corriente */
@keyframes neonPulse {
    0%, 100% {
        opacity: 0.35;
        filter: drop-shadow(0 0 10px var(--neon-lime)) blur(0.5px);
    }
    50% {
        opacity: 0.6; /* Se vuelve más brillante en el medio */
        filter: drop-shadow(0 0 22px var(--neon-lime)) blur(1.5px);
    }
}

/* Efecto Brillo Ambiental: El círculo de fondo se expande y se contrae suavemente */
@keyframes ambientGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}


/* ================================================================== */
/* CORRECCIÓN INTERACTIVA PARA EL CARRUSEL DE PRECIOS EN MÓVIL         */
/* ================================================================== */
@media (max-width: 768px) {
    /* 1. Transformamos la grilla rígida en una fila horizontal fluida */
    .pricing-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Forzar línea única */
        
        overflow-x: auto !important;  /* Activa desplazamiento horizontal */
        scroll-snap-type: x mandatory !important; /* Efecto imán */
        
        gap: 20px !important;
        padding: 30px 20px !important;
        margin: 0 -8% !important; /* Se extiende de borde a borde de la pantalla */
        width: calc(100% + 16%) !important;
        
        /* Desactivamos por completo el Grid de escritorio */
        grid-template-columns: none !important; 
        
        -webkit-overflow-scrolling: touch; /* Deslizamiento premium en iOS */
        scrollbar-width: none; /* Oculta scroll en Firefox */
    }

    .pricing-grid::-webkit-scrollbar {
        display: none !important; /* Oculta scroll en Chrome/Safari */
    }

    /* 2. Forzamos a las tarjetas reales (.price-card) a comportarse en el carrusel */
    .price-card {
        display: flex !important; /* Mantiene la organización vertical interna */
        flex: 0 0 80% !important; /* Ocupa el 80% de la pantalla para que asome la otra */
        max-width: 310px !important;
        scroll-snap-align: center !important; /* Se imanta perfecto al centro */
        margin: 0 !important;
    }

    /* Ajuste visual para que la tarjeta destacada no rompa el layout horizontal */
    .featured-card {
        transform: scale(1) !important; /* En móvil es mejor que midan igual */
    }
    .featured-card:hover {
        transform: translateY(-5px) !important;
    }
}
