/* Estilos personalizados para EscuchaConAmor.org */

/* Variables CSS */
:root {
    --warm-pink: #ff9a9e;
    --soft-blue: #a8dadc;
    --sky-blue: #87ceeb;
    --warm-gray: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--warm-pink), var(--sky-blue));
    --gradient-secondary: linear-gradient(135deg, var(--sky-blue), var(--warm-pink));
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body base styles */
body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero text box styles */
.hero-text-box {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced button styles for hero */
.hero-btn-primary {
    background: linear-gradient(135deg, var(--warm-pink), var(--sky-blue));
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 154, 158, 0.4);
}

.hero-btn-secondary {
    transition: all 0.3s ease;
    border-width: 2px;
}

.hero-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.2);
}

/* Slider navigation dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.2);
}

.slider-dot:hover {
    transform: scale(1.1);
}

/* Slider arrow animations */
#prev-slide, #next-slide {
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#prev-slide:hover, #next-slide:hover {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for slider controls */
@media (max-width: 768px) {
    #prev-slide, #next-slide {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .slider-dot {
        width: 0.6rem;
        height: 0.6rem;
    }
}

/* Hero section responsive styles */
@media (max-width: 1024px) {
    .hero-slider {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px !important;
    }
    
    /* Stack layout on mobile with better spacing */
    .hero-content-mobile {
        padding: 2rem 1rem;
    }
    
    .hero-text-box-mobile {
        padding: 2rem !important;
        margin-bottom: 2rem;
    }
}

/* Fade animation for slider */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.entering {
    animation: slideIn 1s ease-out;
}

/* Custom button hover effects */
.btn-primary {
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Progress bar animation */
.progress-bar {
    transition: width 2s ease-in-out;
}

/* Donation button selection */
.donation-btn.selected {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--warm-pink);
    transform: scale(1.05);
}

/* Payment method selection */
.payment-method.selected {
    border-color: var(--warm-pink);
    background: rgba(255, 154, 158, 0.1);
}

/* Partner logo hover effect */
.partner-logo {
    transition: all 0.3s ease;
    filter: grayscale(10%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* WhatsApp floating button pulse effect */
.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Form focus effects */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--warm-pink);
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Video testimonial styles */
.video-testimonial {
    position: relative;
    overflow: hidden;
}

.video-testimonial video {
    transition: transform 0.3s ease;
}

.video-testimonial:hover video {
    transform: scale(1.02);
}

/* Video overlay styles */
.video-overlay {
    backdrop-filter: blur(2px);
}

/* Testimonial text highlights */
.testimonial-highlight {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(135, 206, 235, 0.1));
    border-left: 4px solid var(--warm-pink);
    position: relative;
}

.testimonial-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 154, 158, 0.05) 50%, transparent 51%);
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-testimonial {
        margin-bottom: 2rem;
    }
    
    .testimonial-text {
        text-align: center;
    }
}

/* Modal styles */
.modal-overlay {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal scrollbar customization */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--warm-pink);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #ff8a8e;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-content .p-6 {
        padding: 1rem;
    }
    
    .modal-content .space-y-8 > * + * {
        margin-top: 1.5rem;
    }
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating elements animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Heart beat animation */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Section padding for mobile */
@media (max-width: 768px) {
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .text-4xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Statistics counters */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--warm-pink);
}

/* Success message styles */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Error message styles */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--warm-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to top button */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode-auto .bg-white {
        background-color: #f4f2ec !important;
    }
    
    .dark-mode-auto .text-gray-800 {
        color: #ffffff !important;
    }
    
    .dark-mode-auto .text-gray-600 {
        color: #cccccc !important;
    }
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Image lazy loading effect */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Interactive hover effects for cards */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Glowing effect for important buttons */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glow-on-hover:hover::before {
    left: 100%;
}

/* Custom focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid var(--warm-pink);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --warm-pink: #d63384;
        --sky-blue: #0066cc;
    }
} 