/**
 * Landing Page Styles for Reffi - Diseño basado en landings
 */

/* ===== Variables - Reffi Brand Colors ===== */
:root {
    --primary-color: #FF416C;
    --primary-hover: #FF4B2B;
    --secondary-color: #00DCC7;
    --secondary-hover: #00C6B3;
    --accent-color: #EE3958;
    --purple-color: #693E98;
    --orange-color: #F89F2B;
    --text-dark: #000000;
    --text-normal: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F1F3F3;
    --border-color: #E2E4EF;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    --gradient-purple-red: linear-gradient(90deg, rgba(105,62,152,1) 0%, rgba(238,57,88,1) 100%);
    --gradient-red-purple: linear-gradient(90deg, rgba(238,57,88,1) 0%, rgba(105,62,152,1) 100%);
}

/* ===== Utility Classes ===== */
.min-h-screen {
    min-height: 100vh;
}

.gradient-reffi {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.arrow-pattern {
    position: relative;
}

.arrow-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 200px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 200px);
    pointer-events: none;
    z-index: 1;
}

.gradient-reffi > * {
    position: relative;
    z-index: 2;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Decorative Circles ===== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ===== Animate Ping ===== */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== Glass Card Effect ===== */
.glass-card {
    background: #FFFFFF !important;
    backdrop-filter: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: none;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Fondo blanco para secciones específicas */
.bg-white {
    background-color: #FFFFFF !important;
}

.bg-light {
    background-color: #F8F9FA !important;
}

/* Remover backdrop-filter de elementos con bg-white */
.bg-white.rounded-4 {
    backdrop-filter: none !important;
}

/* Tarjetas con opacidad para el hero */
.bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* ===== Form Styles ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 65, 108, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--secondary-color);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--accent-color);
}

/* Input styling similar to landings */
.form-control,
.form-select {
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* ===== Button Primary ===== */
.btn-primary {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
}

.btn-primary::before {
    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-primary:hover::before {
    left: 100%;
}

/* ===== Button Danger (for validar buttons) ===== */
.btn-danger {
    background: linear-gradient(to right, #ef4444, #dc2626);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ===== Button Purple (for verificar buttons) ===== */
.btn-purple {
    background: linear-gradient(to right, #693E98, #8B5CB8);
    border: none;
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(to right, #583281, #693E98);
    box-shadow: 0 4px 12px rgba(105, 62, 152, 0.4);
    color: white;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .fs-4 {
        font-size: 1rem;
    }
}

/* ===== Hover Underline ===== */
.hover-underline:hover {
    text-decoration: underline !important;
}

/* ===== Text Colors ===== */
.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

/* ===== Opacity Utilities ===== */
.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* ===== Additional Bootstrap Overrides ===== */
.rounded-3 {
    border-radius: 0.75rem !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 2.5rem !important;
}

/* ===== Position Utilities ===== */
.position-fixed {
    position: fixed;
}

/* ===== Spacing Utilities ===== */
.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

/* ===== WhatsApp Button Animation ===== */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.btn-success.rounded-circle {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* ===== Form Check Input (Checkboxes) ===== */
.form-check-input:checked {
    background-color: #dc2626;
    border-color: #dc2626;
}

.form-check-input:focus {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* ===== Profile Slider Styles ===== */
.profile-slider-container {
    position: relative;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

.slider-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-description {
    position: relative;
}

.description-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    pointer-events: none;
}

.description-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* Navigation buttons hover effect */
#prevSlide:hover,
#nextSlide:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 991px) {
    .min-h-screen {
        min-height: auto;
    }

    .glass-card {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .decorative-circle {
        display: none !important;
    }

    .fs-2 {
        font-size: 1.5rem !important;
    }

    .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Reduce slider height on mobile */
    .slider-wrapper {
        height: 100px !important;
    }

    .slider-image-container i {
        font-size: 4rem !important;
    }

    .slider-description {
        min-height: 100px !important;
    }
}
