/* Process Cards Mobile - Cards Rotativas Modernas */

/* Ocultar/Mostrar según dispositivo */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Contenedor de Cards Móvil */
.process-cards-mobile {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.process-cards-container {
    position: relative;
    width: 100%;
    height: 320px;
    perspective: 1000px;
}

/* Card Individual */
.process-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    width: 90%;
    max-width: 340px;
    height: 280px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(71, 115, 175, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Activa */
.process-card.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
    box-shadow: 0 20px 60px rgba(71, 115, 175, 0.15);
    border-color: var(--primary-blue);
}

/* Número de Card */
.card-number {
    font-size: 80px;
    font-weight: 700;
    font-family: 'Prata', serif;
    color: rgba(71, 115, 175, 0.08);
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 20px;
    user-select: none;
}

/* Contenido de Card */
.card-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.card-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-family: 'Prata', serif;
}

.card-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

/* Icono de Card */
.card-icon {
    font-size: 48px;
    text-align: right;
    margin-top: 10px;
    filter: grayscale(0.2);
}

/* Navegación */
.cards-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Flechas de Navegación */
.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 115, 175, 0.3);
    font-weight: 300;
}

.nav-arrow:hover {
    background: #3d5f8f;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(71, 115, 175, 0.4);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots Indicadores */
.cards-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(71, 115, 175, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary-blue);
}

.dot:hover:not(.active) {
    background: rgba(71, 115, 175, 0.4);
    transform: scale(1.2);
}

/* Animaciones de entrada */
@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.process-card.active {
    animation: slideInCard 0.4s ease-out;
}

/* Tema Oscuro Soporte */
body.dark-mode .process-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(239, 192, 118, 0.2);
}

body.dark-mode .process-card.active {
    border-color: var(--secondary-gold);
    box-shadow: 0 20px 60px rgba(239, 192, 118, 0.15);
}

body.dark-mode .card-number {
    color: rgba(239, 192, 118, 0.08);
}

body.dark-mode .card-content h3 {
    color: var(--secondary-gold);
}

body.dark-mode .card-content p {
    color: #ccc;
}

body.dark-mode .nav-arrow {
    background: var(--secondary-gold);
    color: var(--primary-blue);
}

body.dark-mode .nav-arrow:hover {
    background: #d4a86a;
}

body.dark-mode .dot.active {
    background: var(--secondary-gold);
}

/* Responsive para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .process-card {
        max-width: 420px;
        height: 300px;
    }
}

/* Swipe gestures hint */
.process-cards-mobile::before {
    content: '← Desliza →';
    display: block;
    text-align: center;
    font-size: 14px;
    color: rgba(71, 115, 175, 0.4);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (min-width: 769px) {
    .process-cards-mobile::before {
        content: none;
    }
}
