/* Custom CSS for Siempre Sí Landing Page */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Header scroll effect */
#header {
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Feature cards hover effect */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Step circles animation */
.step-circle {
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
}

/* Template cards */
.template-card {
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-10px);
}

/* FAQ animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 240, 240, 0.3);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Form focus effects */
input:focus,
textarea:focus {
    outline: none;
    border-color: #FFB3B3;
    box-shadow: 0 0 0 3px rgba(255, 153, 153, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFF9F0;
}

::-webkit-scrollbar-thumb {
    background: #FFB3B3;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF9999;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Smooth appearance for sections */
section {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Gradient text effect for headings */
h1,
h2 {
    position: relative;
}

/* Decorative elements */
.section-decoration {
    position: relative;
}

.section-decoration::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #FFB3B3, #C5E1A5);
    border-radius: 2px;
}

/* Form message styles */
#form-message {
    transition: all 0.3s ease;
}

#form-message.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #81C784;
}

#form-message.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF5350;
}

/* Pricing card special effects */
.pricing-recommended {
    position: relative;
    overflow: hidden;
}

.pricing-recommended::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFB3B3, #C5E1A5, #FFD700);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Prevent transition on page load */
.preload * {
    transition: none !important;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Hero image placeholder animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-loading="true"] {
    opacity: 0.5;
}

/* Intersection observer fade-in */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Custom bullet points for lists */
ul li::marker {
    color: #FFB3B3;
}

/* Link hover underline effect */
a:not(.no-underline):hover {
    text-decoration-color: #FFB3B3;
}

/* Card shine effect on hover */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card-shine:hover::after {
    transform: translateX(100%);
}

/* Selection color */
::selection {
    background-color: #FFE5E5;
    color: #333;
}

::-moz-selection {
    background-color: #FFE5E5;
    color: #333;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #FFB3B3;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #contacto {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

