/* ESTILOS BASE */
body {
    background-color: #0f0e17;
    color: #fffffe;
    overflow-x: hidden;
    margin: 0;
}

*,
select,
option {
    cursor: none !important;
}

/* CURSOR PERSONALIZADO */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 10000;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #7e22ce;
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(126, 34, 206, 0.4);
}

/* Estados del cursor */
.cursor-active .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(126, 34, 206, 0.1);
    border-color: #7e22ce;
}

.cursor-zoom .cursor-outline::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: white;
}

/* FORMULARIOS */
textarea {
    resize: none !important;
}

/* ANIMACIONES */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================================
   BOTÓN DE CAMBIO DE IDIOMA - ESTILO PILL (ESP | ENG)
   Contenedor tipo "pill" con dos botones lado a lado.
   El idioma activo se resalta con fondo morado y resplandor.
   ===================================================================== */

/* Animación de entrada suave para el pill (aparece al cargar) */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contenedor pill: fondo semitransparente con borde sutil y bordes redondeados */
.lang-pill-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 3px;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cada botón dentro del pill */
.lang-pill-btn {
    padding: 4px 16px;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6b7280;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Estado activo: fondo morado, texto blanco, sombra con resplandor */
.lang-pill-btn.lang-pill-active {
    background-color: #7e22ce;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.25);
}

/* Hover en botón inactivo: texto más claro */
.lang-pill-btn:not(.lang-pill-active):hover {
    color: #d1d5db;
}

/* Variante móvil: botones más grandes para mejor toque en pantalla táctil */
.lang-pill-mobile {
    width: 100%;
    justify-content: center;
}

.lang-pill-btn-mobile {
    flex: 1;
    padding: 10px 16px;
    font-size: 12px;
    text-align: center;
}

/* Variante para el header (Móvil) */
.lang-pill-header {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.lang-pill-btn-header {
    padding: 4px 8px; /* Más compacto para el header */
    font-size: 9px;
    min-width: 40px;
    text-align: center;
}

/* ANIMACIONES EN CASCADA */
.reveal-1 {
    animation-delay: 100ms;
}

.reveal-2 {
    animation-delay: 200ms;
}

.reveal-3 {
    animation-delay: 300ms;
}

.reveal-4 {
    animation-delay: 400ms;
}

.reveal-5 {
    animation-delay: 500ms;
}

.reveal-6 {
    animation-delay: 600ms;
}

/* PORTFOLIO GLOW */
.portfolio-item:hover .relative {
    box-shadow: 0 0 30px rgba(126, 34, 206, 0.4);
    border-color: rgba(126, 34, 206, 0.5);
}

/* MARQUEE */
.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 4rem;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: running;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    white-space: nowrap;
}

/* MODAL DE PRECIOS - RESPONSIVE */
@media (max-width: 768px) {
    #price-modal .modal-content {
        max-height: 60vh !important;
        margin: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #price-modal .modal-content>.sticky {
        flex-shrink: 0;
        padding: 0.75rem 1rem !important;
    }

    #price-modal .modal-content>.sticky span {
        font-size: 1.1rem !important;
    }

    #price-modal .modal-content>.p-6 {
        flex: 1;
        overflow-y: auto;
        padding: 0.75rem !important;
        -webkit-overflow-scrolling: touch;
    }

    #price-modal .bg-yellow-500\/10 {
        padding: 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem !important;
    }

    #price-modal .bg-yellow-500\/10 p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    #price-modal table th,
    #price-modal table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }

    #price-modal h4 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        padding-left: 0.5rem !important;
    }

    #price-modal-nav {
        display: none !important;
    }

    #price-modal #modal-cta-box {
        display: block;
        margin-top: 0.75rem;
        padding: 0.5rem;
        background: transparent !important;
        border: none !important;
    }

    #price-modal #modal-cta-box p {
        display: none;
    }

    #price-modal #modal-cta-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        width: 100%;
    }
}

#price-modal-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.service-art-ilustracion,
.service-art-tcg,
.service-art-figuras,
.service-art-ropa {
    padding-bottom: 1.5rem;
}

#price-accordion-container button:active {
    transform: scale(0.98);
}

/* Animación suave para el cambio de sección */
#price-modal-output {
    transition: opacity 0.2s ease;
}

/* Estado deshabilitado de botones de navegación */
#price-modal-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

#price-modal-nav button:disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.marquee-item:hover {
    color: #fffffe;
}

.marquee-item i {
    font-size: 1.4rem;
}

/* =====================================================================
   FICHA TÉCNICA (MODALES)
   ===================================================================== */
.project-meta {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
}

/* GLASSMORPHISM */
.glass-panel {
    background: rgba(26, 26, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* EFECTOS DE IMAGEN */
.img-zoom {
    transition: transform 0.5s ease;
}

.group:hover .img-zoom {
    transform: scale(1.05);
}

/* MODALES RESPONSIVE */
@media (max-width: 640px) {
    .modal-inner-scroll {
        padding: 1.5rem !important;
    }

    #project-modal .modal-content {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    #project-modal .absolute.top-4.right-4 button,
    #project-modal [onclick*="closeModal"] {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.5rem;
    }

    #project-modal [onclick*="closeModal"] i {
        font-size: 1.5rem;
    }
}

/* CURSORES */
.cursor-zoom-in {
    cursor: zoom-in;
}

/* TRANSICIONES MODAL */
.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    padding: 2rem 0;
}

body.is-lab .modal {
    overflow-y: hidden;
    padding: 0;
}

/* GRID PROYECTO */
#project-grid {
    align-items: start;
}

@media (min-width: 1024px) {

    body:not(.is-lab) #project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding-top: 1rem;
    }

    body:not(.is-lab) #project-info,
    body:not(.is-lab) #project-gallery {
        position: sticky;
        top: 2rem;
        align-self: start;
    }

    body:not(.is-lab) #project-gallery {
        padding-top: 2rem;
    }
}

#modal-main-image-container {
    aspect-ratio: 16 / 9 !important;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* JUSTIFICACIÓN TEXTO */
#modal-desc {
    text-align: left;
    text-wrap: pretty;
}

.lab-info-col p {
    text-align: left;
    text-wrap: pretty;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    /* Posicionado en la esquina superior derecha */
    position: absolute;
    top: 20px;
    right: 20px;
    /* Color blanco para contrastar con el fondo oscuro */
    color: white;
    /* Tamaño grande para fácil interacción */
    font-size: 2rem;
    /* Cursor pointer para indicar que es clickeable */
    cursor: pointer;
    /* Fondo semi-transparente para que se vea pero no distraiga */
    background: rgba(255, 255, 255, 0.1);
    /* Dimensiones cuadradas para el botón circular */
    width: 50px;
    height: 50px;
    /* Forma circular perfecta */
    border-radius: 50%;
    /* Flexbox para centrar el ícono de X dentro del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(126, 34, 206, 0.8);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f0e17;
}

::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}

/* MODAL OPEN */
body.modal-open {
    overflow: hidden;
}

/* TECH ICONS */
.tech-icon {
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.group:hover .tech-icon {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.marquee-item::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #7e22ce;
    margin: 4px auto 0;
    border-radius: 10px;
    transition: width 0.3s ease;
    opacity: 0.5;
}

.marquee-item:hover::after {
    width: 100%;
}

/* LABS LAYOUT */
body:not(.is-lab) .modal-inner-scroll {
    overflow-y: visible !important;
}

body.is-lab .modal-inner-scroll {
    overflow-y: auto !important;
}

body.is-lab .modal-content {
    max-height: 90vh;
}

body:not(.is-lab) .modal-content {
    max-height: none !important;
    height: auto !important;
}

body.is-lab #project-grid {
    grid-template-columns: 1fr !important;
}

/* Fuerza que la información (texto) aparezca primero (arriba) */
body.is-lab #project-info {
    order: 1 !important;
}

/* Fuerza que la galería aparezca después (abajo) */
body.is-lab #project-gallery {
    order: 2 !important;
}

/* =====================================================================
   GRID IRREGULAR PARA LABS (MASONRY STYLE)
   Clases para crear el layout "desorganizado pero ordenado".
   ===================================================================== */

/* Contenedor del grid para Labs */
.lab-gallery-grid {
    display: grid;
    /* 3 columnas en desktop */
    grid-template-columns: repeat(3, 1fr);
    /* Espaciado entre items */
    gap: 1rem;
    /* 'dense' es la clave: rellena huecos vacíos automáticamente */
    grid-auto-flow: dense;
}

/* En móviles, forzar 2 columnas para que se vea el efecto, pero más pequeño */
@media (max-width: 640px) {
    .lab-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -- Variaciones de tamaño para los items -- */

/* Estándar (1x1) - No necesita clase, es el defecto */
.lab-item-normal {
    aspect-ratio: 1;
    /* Cuadrado */
}

/* Ancho (2x1) - Ocupa 2 columnas */
.lab-item-wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
    /* Rectangular horizontal */
}

/* Alto (1x2) - Ocupa 2 filas */
.lab-item-tall {
    grid-row: span 2;
    aspect-ratio: 1/2;
    /* Rectangular vertical */
}

/* Grande (2x2) - Ocupa 2 columnas y 2 filas */
.lab-item-big {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
    /* Cuadrado grande */
}

/* Asegurar que las imágenes cubran todo el espacio */
.lab-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   OVERLAYS DE GALERÍA (TEXTO AL HOVER)
   Estilos para mostrar título y descripción sobre las imágenes.
   ===================================================================== */

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

/* Mostrar overlay al hacer hover en el contenedor padre */
.group:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-desc {
    color: #cbd5e1;
    /* gray-300 */
    font-size: 0.85rem;
    line-height: 1.4;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
    /* Ligero retraso */
}

.group:hover .gallery-title,
.group:hover .gallery-desc {
    transform: translateY(0);
}

/* =====================================================================
   OPTIMIZACIÓN MÓVIL (Touch Devices)
   En pantallas táctiles no hay hover, así que mostramos el texto siempre
   pero con un gradiente más sutil para no tapar toda la foto.
   ===================================================================== */
@media (hover: none) and (pointer: coarse) {
    .gallery-overlay {
        opacity: 1;
        /* Siempre visible */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
        padding: 1rem;
        /* Un poco menos de padding en móvil */
    }

    .gallery-title,
    .gallery-desc {
        transform: translateY(0);
        /* Sin desplazamiento inicial */
    }

    .gallery-title {
        font-size: 0.9rem;
        /* Texto un poco más pequeño */
    }

    .gallery-desc {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Limitar a 2 líneas para no tapar mucho */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =====================================================================
   LAYOUT ZIG-ZAG (LABS)
   Diseño intercalado de Imagen + Texto para cada proyecto.
   ===================================================================== */

.lab-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .lab-row {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
        /* Importante para el sticky */
    }

    /* Filas Pares: Imagen derecha, Texto izquierda (revertido) */
    .lab-row:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* Info de Labs Sticky para que el texto te acompañe al scrollear la imagen */
    .lab-info-col {
        position: sticky;
        top: 2rem;
    }
}

.lab-image-col {
    flex: 1;
    width: 100%;
}

.lab-info-col {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-row:nth-child(even) .lab-info-col {
    align-items: flex-end;
    /* Texto alineado a la derecha en filas pares (opcional) */
    text-align: right;
}


/* Forzar alineación izquierda en móvil siempre */
@media (max-width: 768px) {
    .lab-row:nth-child(even) .lab-info-col {
        align-items: flex-start;
        text-align: left;
    }
}

/* =====================================================================
   REVEAL DE PORTAFOLIO (NUEVA ANIMACIÓN)
   ===================================================================== */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item h3 {
    position: relative;
    display: inline-block;
}

.portfolio-item h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7e22ce;
    transition: width 0.3s ease;
}

.portfolio-item:hover h3::after {
    width: 100%;
}

/* Colores personalizados para las líneas animadas en servicios */

/* Base para el subrayado en cualquier título dentro de un servicio */
[class^="service-"] h3,
[class^="service-"] h4 {
    position: relative;
    width: fit-content;
}

[class^="service-"] h3::after,
[class^="service-"] h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animación de la línea al hacer hover en la tarjeta (group) */
.group:hover h3::after,
.group:hover h4::after {
    width: 100%;
}

/* Colores específicos por categoría */
.service-web:hover h4::after {
    background: #3b82f6 !important;
}

.service-branding:hover h4::after {
    background: #a855f7 !important;
}

.service-print:hover h4::after {
    background: #eab308 !important;
}

.service-multimedia:hover h4::after {
    background: #ef4444 !important;
}

/* Servicios Arteosky */
.service-art-illust:hover h3::after,
.service-art-illust:hover h4::after {
    background: #14b8a6 !important;
}

/* Teal */
.service-art-tcg:hover h3::after,
.service-art-tcg:hover h4::after {
    background: #db2777 !important;
}

/* Pink */
.service-art-figures:hover h3::after,
.service-art-figures:hover h4::after {
    background: #f97316 !important;
}

/* Orange */
.service-art-clothes:hover h3::after,
.service-art-clothes:hover h4::after {
    background: #795548 !important;
}

/* Brown */

/* Botón de descarga de CV */
.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #7e22ce 0%, #3b82f6 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1.5rem;
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.5);
    filter: brightness(1.1);
}

.cv-btn i {
    font-size: 1.1rem;
}

/* =====================================================================
   CONTACT FORM PREMIUM (GLOW EFFECT)
   ===================================================================== */
form {
    transition: all 0.4s ease;
    background: rgba(22, 22, 30, 0.4);
    backdrop-filter: blur(10px);
}

form:focus-within {
    border-color: rgba(126, 34, 206, 0.4);
    box-shadow: 0 0 30px rgba(126, 34, 206, 0.1);
    background: rgba(126, 34, 206, 0.05);
}

/* Optimizaciones de accesibilidad para el cursor */
@media (hover: none) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* =====================================================================
   ESTILO DE CARRUSEL DE RESEÑAS (TESTIMONIOS)
   ===================================================================== */
.reviews-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-item {
    flex: 0 0 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Burbuja Premium para Carrusel */
.chat-bubble-card {
    background: #16161e;
    /* Color que se funde con el fondo oscurecido */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.carousel-item.active .chat-bubble-card {
    border-color: rgba(126, 34, 206, 0.4);
}

/* La colita centrada */
.chat-bubble-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-left: none;
}

/* Botones de Navegación */
.carousel-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: #7e22ce;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.4);
}

.carousel-btn.prev {
    margin-left: -25px;
}

.carousel-btn.next {
    margin-right: -25px;
}

/* Indicadores de posición */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #7e22ce;
    width: 60px;
}

/* --- RESPONSIVIDAD DEL CARRUSEL --- */
@media (max-width: 768px) {
    .reviews-carousel {
        padding: 0 10px;
    }

    .carousel-nav {
        position: relative;
        top: 0;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        order: 2;
    }

    .carousel-btn.prev,
    .carousel-btn.next {
        margin: 0;
        position: static;
    }

    .carousel-container {
        padding-bottom: 20px;
    }

    .chat-bubble-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .chat-bubble-card p {
        font-size: 1rem;
    }

}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* Vuelve el icono blanco */
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* =====================================================================
   MODAL DE PRECIOS ESTIMADOS
   Estilos específicos para la tabla de precios y el modal informativo.
   ===================================================================== */

/* Ancho personalizado para scrollbar dentro del modal */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(126, 34, 206, 0.5);
    border-radius: 10px;
}

/* Tabla de Precios */
#price-table-body tr:last-child {
    border-bottom: none;
}

#price-table-body tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Ajustes Responsive para Modal de Precios */
@media (max-width: 640px) {
    #price-modal .modal-content {
        max-height: 85vh;
        width: 95%;
    }

    #price-modal table {
        min-width: 100%;
    }

    #price-modal th,
    #price-modal td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Animación de entrada para el modal de precios */
#price-modal.active {
    visibility: visible;
    opacity: 1;
}

#price-modal.active .modal-content {
    animation: modalPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPopUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =====================================================================
   DINAMISMO: SCROLL REVEAL (Aparición al hacer scroll)
   ===================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos escalonados para grupos de elementos */
.reveal-delay-100 {
    transition-delay: 100ms;
}

.reveal-delay-200 {
    transition-delay: 200ms;
}

.reveal-delay-300 {
    transition-delay: 300ms;
}

/* =====================================================================
   DINAMISMO: TILT EFFECT 3D (Solo Desktop)
   ===================================================================== */
@media (min-width: 1024px) {
    .tilt-card {
        transform-style: preserve-3d;
        transform: perspective(1000px);
        will-change: transform;
    }

    /* Efecto de brillo en el tilt */
    .tilt-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 20;
        background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .tilt-card:hover::before {
        opacity: 1;
    }
}

/* =====================================================================
   DINAMISMO: TYPEWRITER EFFECT (Efecto de escritura)
   ===================================================================== */
/* =====================================================================
   DINAMISMO: TYPEWRITER EFFECT (SOLO MULTIMEDIA - STATIC LAYOUT)
   ===================================================================== */
/* Clase auxiliar para métricas verticales de texto hero (Aplicar a ghost y typewriter) */
.hero-text-metrics {
    /* Ajuste para evitar corte de descendentes (g, j, p, q, y) */
    line-height: 1.4;
    /* Espacio vertical generoso */
    padding-bottom: 0.25em;
    /* Espacio extra abajo */
    margin-bottom: -0.15em;
    /* Compensación visual */
    display: inline-block;
    /* Necesario para que el padding funcione */
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #7e22ce;
    width: 0;
    display: block;
    /* Las métricas de altura se manejan en .hero-text-metrics */

    /* Ocupa el ancho del padre relativo/absoluto */
    animation:
        typing 1.2s steps(20, end) forwards,
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #7e22ce
    }
}

/* =====================================================================
   DINAMISMO: SHIMMER EFFECT (Brillo animado)
   ===================================================================== */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Pasa rápido */
    100% {
        left: 200%;
    }

    /* Espera antes de volver */
}

/* =====================================================================
   DINAMISMO: SCROLL REVEAL (Aparición suave al hacer scroll)
   ===================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilitarios para delays en cascada */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}