/* ============================================
   SPEAK CALL LINGO - STYLESHEET
   ============================================ */

/* --- VARIABLES CSS --- */
:root {
    --color-azul: #004991;
    --color-celeste: #00A4E0;
    --color-rojo: #D31A2B;
    --font-headline: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- ANIMACIONES SUTILES --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.7s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.7s ease-out;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out;
}

/* Delays para elementos secuenciales */
.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* --- FUENTES BASE --- */
body {
    font-family: var(--font-body);
}

.headline {
    font-family: var(--font-headline);
}

/* --- HERO PARALLAX --- */
.parallax-hero {
    background-image: url('./images/officeImage.png');
    background-size: cover;
    background-position: center 25%;
    background-attachment: fixed;
    min-height: 90vh;
}

/* --- CLASES DE UTILIDAD --- */
.bg-azul {
    background-color: var(--color-azul);
}

.text-azul {
    color: var(--color-azul);
}

.bg-celeste {
    background-color: var(--color-celeste);
}

.text-celeste {
    color: var(--color-celeste);
}

.bg-rojo {
    background-color: var(--color-rojo);
}

.text-rojo {
    color: var(--color-rojo);
}

/* --- BOTONES CON GRADIENTE --- */
.btn-gradient-azul {
    background-image: linear-gradient(to right, var(--color-azul) 0%, #1565C0 100%);
    box-shadow: 0 4px 15px 0 rgba(0, 73, 145, 0.5);
}

.btn-gradient-azul:hover {
    background-image: linear-gradient(to right, #1565C0 0%, var(--color-celeste) 100%);
}

.btn-gradient-rojo {
    background-image: linear-gradient(to right, var(--color-rojo) 0%, #AA101E 100%);
    box-shadow: 0 4px 15px 0 rgba(211, 26, 43, 0.5);
}

.btn-gradient-rojo:hover {
    background-image: linear-gradient(to right, #AA101E 0%, #E53935 100%);
}

/* --- GRADIENTE DE FONDO CELESTE --- */
.bg-celeste-gradient {
    background-image: linear-gradient(to top right, var(--color-celeste) 10%, #68C0E6 70%, #E0F7FA 100%);
    box-shadow: inset 0 0 10px rgba(0, 73, 145, 0.1);
}

/* --- OVERLAY HERO --- */
.hero-overlay-gradient {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* --- ICONOS MEJORADOS --- */
.icon-container-enhanced {
    background-image: linear-gradient(135deg, #E0F7FA, var(--color-celeste) 70%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 164, 224, 0.3);
    transition: all 0.3s ease;
}

.value-card:hover .icon-container-enhanced {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 164, 224, 0.5);
}

.icon-container-enhanced i {
    color: rgb(247, 242, 242);
    font-size: 36px;
    transition: all 0.3s ease;
}

.value-card:hover .icon-container-enhanced i {
    transform: scale(1.05);
}

/* --- CTA FLOTANTE MÓVIL --- */
.sticky-cta-mobile {
    z-index: 50;
    background-image: linear-gradient(to right, var(--color-rojo), #B31323);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

/* --- MENÚ MÓVIL --- */
#mobile-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- CARRUSEL INFINITO DE TESTIMONIOS --- */
.testimonials-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Degradado difuminado en los bordes */
.testimonials-carousel-wrapper::before,
.testimonials-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #004991, transparent);
}

.testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #004991, transparent);
}

@media (max-width: 768px) {
    .testimonials-carousel-wrapper::before,
    .testimonials-carousel-wrapper::after {
        width: 30px;
    }
}

.testimonials-carousel-track {
    display: flex;
    gap: 24px;
    animation: scroll-testimonials 40s linear infinite;
    width: max-content;
}

.testimonials-carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 6 - 24px * 6));
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }

    @keyframes scroll-testimonials {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 6 - 24px * 6));
        }
    }
}

/* --- CARRUSEL DE PROCESO --- */
input[type=radio][name="proceso-slider"] {
    display: none;
}

.proceso-carousel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.proceso-cards {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

.proceso-card {
    position: absolute;
    width: 70%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}

.proceso-card-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 30px;
    box-sizing: border-box;
}

.proceso-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-rojo);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.proceso-icon {
    font-size: 80px;
    color: var(--color-celeste);
    margin-bottom: 20px;
}

.proceso-card-title {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: bold;
    color: var(--color-azul);
    margin-bottom: 15px;
    text-align: center;
}

.proceso-card-text {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

/* Animaciones del carrusel - 4 items */
#proceso-item-1:checked ~ .proceso-cards #proceso-step-4,
#proceso-item-2:checked ~ .proceso-cards #proceso-step-1,
#proceso-item-3:checked ~ .proceso-cards #proceso-step-2,
#proceso-item-4:checked ~ .proceso-cards #proceso-step-3 {
    transform: translateX(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#proceso-item-1:checked ~ .proceso-cards #proceso-step-2,
#proceso-item-2:checked ~ .proceso-cards #proceso-step-3,
#proceso-item-3:checked ~ .proceso-cards #proceso-step-4,
#proceso-item-4:checked ~ .proceso-cards #proceso-step-1 {
    transform: translateX(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#proceso-item-1:checked ~ .proceso-cards #proceso-step-1,
#proceso-item-2:checked ~ .proceso-cards #proceso-step-2,
#proceso-item-3:checked ~ .proceso-cards #proceso-step-3,
#proceso-item-4:checked ~ .proceso-cards #proceso-step-4 {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

/* Player (Info Box) */
.proceso-player {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proceso-upper-part {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    height: 60px;
    overflow: hidden;
}

.proceso-play-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.proceso-info-area {
    width: 100%;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

.proceso-song-info {
    width: 100%;
    display: block;
    height: 60px;
}

.proceso-title {
    color: var(--color-azul);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 4px;
}

.proceso-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: #6b7280;
}

.proceso-sub-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.proceso-progress-bar {
    height: 4px;
    width: 100%;
    background-color: #e9efff;
    border-radius: 2px;
    overflow: hidden;
}

.proceso-progress {
    display: block;
    position: relative;
    width: 25%;
    height: 100%;
    background-color: var(--color-celeste);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Animación del texto según la card seleccionada */
#proceso-item-1:checked ~ .proceso-player .proceso-info-area {
    transform: translateY(0);
}

#proceso-item-2:checked ~ .proceso-player .proceso-info-area {
    transform: translateY(-60px);
}

#proceso-item-3:checked ~ .proceso-player .proceso-info-area {
    transform: translateY(-120px);
}

#proceso-item-4:checked ~ .proceso-player .proceso-info-area {
    transform: translateY(-180px);
}

/* Animación de la barra de progreso */
#proceso-item-1:checked ~ .proceso-player .proceso-progress {
    width: 25%;
}

#proceso-item-2:checked ~ .proceso-player .proceso-progress {
    width: 50%;
}

#proceso-item-3:checked ~ .proceso-player .proceso-progress {
    width: 75%;
}

#proceso-item-4:checked ~ .proceso-player .proceso-progress {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .proceso-cards {
        height: 350px;
    }

    .proceso-card {
        width: 85%;
    }

    .proceso-icon {
        font-size: 60px;
    }

    .proceso-card-title {
        font-size: 20px;
    }

    .proceso-card-text {
        font-size: 14px;
    }

    .proceso-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .proceso-title {
        font-size: 16px;
        line-height: 24px;
    }

    .proceso-subtitle {
        font-size: 13px;
    }

    .proceso-player {
        padding: 16px;
    }
}

/* --- CARRUSEL DE VALOR --- */
input[type=radio][name="valor-slider"] {
    display: none;
}

.valor-carousel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.valor-cards {
    position: relative;
    width: 100%;
    height: 420px;
    margin-bottom: 20px;
}

.valor-card {
    position: absolute;
    width: 70%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}

.valor-card-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    border-top: 4px solid var(--color-celeste);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}

.valor-icon {
    background-image: linear-gradient(135deg, #E0F7FA, var(--color-celeste) 70%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 164, 224, 0.3);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.valor-icon i {
    color: white;
    font-size: 40px;
}

.valor-card-content:hover .valor-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 164, 224, 0.5);
}

.valor-card-title {
    font-family: var(--font-headline);
    font-size: 26px;
    font-weight: bold;
    color: var(--color-azul);
    margin-bottom: 20px;
    text-align: center;
}

.valor-card-text {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

/* Animaciones del carrusel - 3 items */
#valor-item-1:checked ~ .valor-cards #valor-step-3,
#valor-item-2:checked ~ .valor-cards #valor-step-1,
#valor-item-3:checked ~ .valor-cards #valor-step-2 {
    transform: translateX(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#valor-item-1:checked ~ .valor-cards #valor-step-2,
#valor-item-2:checked ~ .valor-cards #valor-step-3,
#valor-item-3:checked ~ .valor-cards #valor-step-1 {
    transform: translateX(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#valor-item-1:checked ~ .valor-cards #valor-step-1,
#valor-item-2:checked ~ .valor-cards #valor-step-2,
#valor-item-3:checked ~ .valor-cards #valor-step-3 {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

/* Indicadores del carrusel */
.valor-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.valor-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valor-indicator:hover {
    background-color: #9ca3af;
    transform: scale(1.15);
}

#valor-item-1:checked ~ .valor-carousel-indicators label:nth-child(1),
#valor-item-2:checked ~ .valor-carousel-indicators label:nth-child(2),
#valor-item-3:checked ~ .valor-carousel-indicators label:nth-child(3) {
    background-color: var(--color-azul);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .valor-cards {
        height: 380px;
    }

    .valor-card {
        width: 85%;
    }

    .valor-icon {
        width: 70px;
        height: 70px;
    }

    .valor-icon i {
        font-size: 35px;
    }

    .valor-card-title {
        font-size: 22px;
    }

    .valor-card-text {
        font-size: 15px;
    }

    .valor-card-content {
        padding: 30px;
    }
}

/* --- VIDEO PLAYER PERSONALIZADO --- */
.video-container-custom {
    position: relative;
    background: #000;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.play-button-custom {
    cursor: pointer;
    border: none;
    outline: none;
    animation: pulse 2s infinite;
}

.play-button-custom:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 164, 224, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 164, 224, 0);
    }
}

#videoPlayerWrapper {
    position: relative;
}

#demoVideo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

/* Fullscreen - mantener relación de aspecto */
.video-container-custom:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:-moz-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:-ms-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:fullscreen #videoPlayerWrapper {
    width: auto;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:-webkit-full-screen #videoPlayerWrapper {
    width: auto;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-custom:fullscreen #demoVideo {
    max-height: 100vh;
    width: auto;
    height: auto;
}

.video-container-custom:-webkit-full-screen #demoVideo {
    max-height: 100vh;
    width: auto;
    height: auto;
}

.custom-video-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#videoPlayerWrapper:hover .custom-video-controls,
.video-container-custom:fullscreen .custom-video-controls {
    opacity: 1;
}

.video-container-custom:-webkit-full-screen .custom-video-controls {
    opacity: 1;
}

.custom-video-controls button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    transition: opacity 0.3s ease-in-out;
}

.scroll-to-top.show {
    display: flex !important;
    opacity: 1 !important;
}

/* --- FAQ ACCORDION --- */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.4s ease-in, padding 0.3s ease-in;
}

/* --- ANIMACIONES DE SCROLL --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1023px) {
    .sticky-cta-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .sticky-cta-mobile {
        display: none !important;
    }
}
