/* ============================================
   INNOVAKIT - ESTILOS PRINCIPALES
   Extraído del index original - Mismo diseño
   Colores: Verde #7eb74a, Amarillo #fdc344, Azul #3b82f6
   ============================================ */

:root {
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-standard: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    --border-radius-card: 16px;
    --border-radius-btn: 12px;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body { 
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Botones */
.btn-hover {
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::after {
    left: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-standard);
}

.btn-icon:hover {
    gap: 12px;
}

/* Gradiente animado */
.bg-animated {
    background: linear-gradient(270deg, #1e3a8a, #22be80, #1a47dc);
    background-size: 200% 200%;
    animation: moveGradient 8s ease infinite;
}

/* Cards */
.card-elevated {
    background: white;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition-standard);
    overflow: hidden;
}

.card-elevated:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.product-hover {
    transition: var(--transition-standard);
    cursor: pointer;
}

.product-hover:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Navegación */
.nav-link {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-standard);
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: var(--transition-standard);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Portada sin márgenes */
.portada-sin-margenes {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 40vh;
    position: relative;
    overflow: hidden;
}

.portada-sin-margenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portada-sin-margenes:hover img {
    transform: scale(1.05);
}

/* Swiper personalizado */
.swiper-button-next, .swiper-button-prev {
    background-color: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #3b82f6;
    padding: 15px;
    box-shadow: var(--shadow-standard);
    transition: var(--transition-standard);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Modales */
.modal {
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

body.modal-active {
    overflow-x: hidden;
    overflow-y: visible !important;
}

.modal-container {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius-card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Formularios */
.form-input-enhanced {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-btn);
    padding: 12px 16px;
    transition: var(--transition-standard);
    font-size: 16px;
}

.form-input-enhanced:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--border-radius-btn);
    box-shadow: var(--shadow-card);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.notification-success { background: #10b981; color: white; }
.notification-error { background: #ef4444; color: white; }
.notification-warning { background: #f59e0b; color: white; }

/* Rating stars */
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars .star { color: #d1d5db; font-size: 1.2rem; }
.rating-stars .star.filled { color: #fbbf24; }

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    border: 1px solid #f3f4f6;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.verified-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Paginación */
.pagination-fixed {
    position: sticky;
    bottom: 0;
    background-color: #f5f5f5;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Utilidades */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-readable {
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-mobile {
        padding: 14px 22px;
        font-size: 16px;
        border-radius: var(--border-radius-btn);
        font-weight: 600;
        transition: var(--transition-standard);
    }
    
    .transform-mobile {
        will-change: transform;
    }
    
    .product-card-mobile {
        border-radius: 12px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .product-card-mobile:active {
        transform: scale(0.98);
    }
    
    .mobile-stack { flex-direction: column; }
    .mobile-center { text-align: center; justify-content: center; }
    .mobile-padding { padding: 1rem; }
}

@media (max-width: 640px) {
    .mobile-stack { flex-direction: column; }
    .mobile-center { text-align: center; justify-content: center; }
    .mobile-padding { padding: 1rem; }
}

/* Safe areas para iPhone X+ */
.safe-top { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus, button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.contrast-enhanced {
    filter: contrast(1.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* WhatsApp */
.whatsapp-desktop { display: flex; }
.whatsapp-movil { display: none; }

@media (max-width: 768px) {
    .whatsapp-desktop { display: none !important; }
    .whatsapp-movil { display: flex !important; width: 60px !important; height: 60px !important; }
    .contactos-movil { flex-direction: row !important; gap: 1.5rem !important; }
    .contactos-movil a[href*="facebook"], .contactos-movil a[href*="instagram"] { font-size: 2.5rem !important; }
}

@media (min-width: 769px) {
    .whatsapp-movil { display: none !important; }
    .whatsapp-desktop { display: flex !important; }
}
/* ============================================
   REDUCCIÓN DE ESPACIO EN TESTIMONIOS
   ============================================ */

/* Reducir padding vertical de la sección */
#testimonios {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

/* Reducir márgenes del título */
#testimonios h3 {
    margin-bottom: 0.5rem !important;
}

/* Reducir margen del párrafo descriptivo */
#testimonios .text-gray-700.text-center {
    margin-bottom: 1rem !important;
}

/* Reducir margen del botón "Comparte tu proyecto" */
#testimonios .flex.justify-center.mb-8 {
    margin-bottom: 0.75rem !important;
}

/* Reducir margen del texto "Muestra al mundo" */
#testimonios .text-center.text-gray-700.text-sm.mb-6 {
    margin-bottom: 0.75rem !important;
}

/* Reducir gap entre tarjetas */
#testimonios-reales {
    gap: 1rem !important;
}

/* Eliminar margen extra en tarjetas */
#testimonios-reales > div {
    margin-bottom: 0 !important;
}

/* ============================================
   ARREGLAR ESTRELLAS INTERACTIVAS
   ============================================ */

/* Asegurar que las estrellas sean cliqueables */
#rating-stars i {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    transition: all 0.2s ease;
}

#rating-stars i:hover {
    transform: scale(1.1);
}

/* Asegurar z-index del modal */
#proyecto-modal {
    z-index: 9999 !important;
}

/* Asegurar que el modal esté por encima */
.modal, [id*="modal"] {
    z-index: 9998;
}
/* Loading spinner mejorado */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Para las tarjetas de productos individuales */
.card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* ============================================
   IMPRESORA DESTACADA PREMIUM - VERSIÓN FINAL (+17% sobre reducida)
============================================ */

#impresora-destacada {
    position: relative;
    overflow: hidden;
    padding: 17px 8px;
    background: #FFFFFF
     
}

/* Container */

.impresora-container {
    max-width: 1265px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* Layout */

.impresora-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ============================================
   BADGE SUPERIOR
============================================ */

.top-badge {
    width: fit-content;
    margin: 0 auto 15px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(9px);
    color: #3451d1;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

/* ============================================
   PRODUCT SIDE
============================================ */

.product-side {
    position: relative;
    width: 58%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo */

.product-circle {
    position: absolute;
    width: 310px;
    height: 282px;
    border-radius: 30%;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0.45));
    z-index: 1;
}

/* Plataforma */

.product-platform {
    position: absolute;
    bottom: 56px;
    width: 88%;
    height: 112px;
    border-radius: 94px;
    background: linear-gradient(to bottom, #ffffff, #e9eeff);
    box-shadow:
        0 29px 56px rgba(120,140,255,0.12),
        inset 0 -7px 18px rgba(0,0,0,0.03);
    z-index: 2;
}

/* Imagen producto - TAMAÑO PROPORCIONAL */
.product-image {
    position: relative;
    width: 88%;
    max-width: 750px;
    z-index: 5;
    object-fit: contain;
    transition: transform .5s ease;
}

.product-image:hover {
    transform: translateY(-7px) scale(1.018);
}

/* Badge */

.nuevo-badge {
    position: absolute;
    top: 38px;
    right: 56px;
    z-index: 20;
    background: #ffd43b;
    color: #111;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 9px 23px rgba(255,212,59,0.35);
}

/* ============================================
   CONTENT SIDE
============================================ */

.content-side {
    width: 42%;
}

.product-title {
    font-size: 50px;
    line-height: 1.1;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
}

.product-title span {
    background: linear-gradient(90deg, #22c55e, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-description {
    font-size: 18px;
    line-height: 1.66;
    color: #5b6475;
    margin-bottom: 28px;
}

/* ============================================
   FEATURES
============================================ */

.features-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 19px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(11px);
    border-radius: 22px;
    box-shadow: 0 9px 23px rgba(0,0,0,0.04);
    transition: .3s ease;
}

.feature-card:hover {
    transform: translateX(7px);
}

.feature-card i {
    font-size: 18px;
    color: #22c55e;
}

.feature-card span {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

/* ============================================
   BOTONES - TAMAÑO PROPORCIONAL
============================================ */

.buttons-row {
    display: flex;
    gap: 20px;
    margin-bottom: 38px;
}

.btn-primary,
.btn-whatsapp {
    border: none;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .3s ease;
    color: white;
}

.btn-primary i,
.btn-whatsapp i {
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 14px 28px rgba(37,99,235,0.25);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 14px 28px rgba(34,197,94,0.25);
}

.btn-primary:hover,
.btn-whatsapp:hover {
    transform: translateY(-4px);
}

/* ============================================
   FOOTER INFO
============================================ */

.bottom-info {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    color: #8a94a7;
    font-size: 15px;
    justify-content: flex-start; /* Esto fuerza a la izquierda */
}

.bottom-info div {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ============================================
   GLOW DECORATIVO
============================================ 

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
}

.bg-glow-1 {
    width: 328px;
    height: 328px;
    background: rgba(34,197,94,0.12);
    top: -94px;
    left: -94px;
}

.bg-glow-2 {
    width: 422px;
    height: 422px;
    background: rgba(37,99,235,0.10);
    bottom: -188px;
    right: -188px;
}
*/
/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 1100px) {

    .impresora-layout {
        flex-direction: column;
    }

    .product-side,
    .content-side {
        width: 100%;
    }

    .product-side {
        min-height: 563px;
    }

    .product-circle {
        width: 563px;
        height: 563px;
    }

    .product-title {
        font-size: 40px;
        text-align: center;
    }

    .product-description {
        text-align: center;
    }

    .buttons-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bottom-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    #impresora-destacada {
        padding: 65px 18px;
    }

    .product-side {
        min-height: 394px;
    }

    .product-circle {
        width: 357px;
        height: 357px;
    }

    .product-platform {
        height: 65px;
        bottom: 38px;
    }

    .product-title {
        font-size: 32px;
    }

    .product-description {
        font-size: 15px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card span {
        font-size: 15px;
    }

    .buttons-row {
        flex-direction: column;
    }

    .btn-primary,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-primary i,
    .btn-whatsapp i {
        font-size: 14px;
    }
}
/* ============================================
   BOTONES DENTRO DE PRODUCT-SIDE
============================================ */

.buttons-row-product {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    z-index: 20;
    width: 100%;
    justify-content: center;
}

.buttons-row-product .btn-primary,
.buttons-row-product .btn-whatsapp {
    border: none;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .3s ease;
    color: white;
}

.buttons-row-product .btn-primary i,
.buttons-row-product .btn-whatsapp i {
    font-size: 14px;
}

.buttons-row-product .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 14px 28px rgba(37,99,235,0.25);
}

.buttons-row-product .btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 14px 28px rgba(34,197,94,0.25);
}

.buttons-row-product .btn-primary:hover,
.buttons-row-product .btn-whatsapp:hover {
    transform: translateY(-4px);
}

/* Ajuste responsive para los botones */
@media (max-width: 1100px) {
    .buttons-row-product {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
