/**
 * Core Theme Custom Styles
 * 
 * Estilos mínimos - La mayoría usa Tailwind CSS utilities directamente en HTML
 */

/* Variables CSS para colores personalizados */
:root {
    --color-primary: #FF6B35;
    --color-secondary: #E74C3C;
    --color-yellow: #FFD700;
    --color-teal: #20B2AA;
    --color-purple: #9B59B6;
}

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

/* Essential Blocks CTA - Solo animaciones complejas que no se pueden hacer con Tailwind */
.eb-cia-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    background: linear-gradient(135deg, #FF6B35 0%, #E74C3C 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eb-cia-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.eb-cia-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.eb-cia-icon {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.eb-cia-wrapper:hover .eb-cia-icon {
    transform: scale(1.1) rotate(5deg);
}

.eb-cia-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.eb-cia-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.eb-cia-description strong {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.eb-cia-button {
    background: #FFFFFF;
    color: #FF6B35;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.eb-cia-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.eb-cia-button:hover::before {
    left: 100%;
}

.eb-cia-button:hover {
    background: #FFD700;
    color: #2C3E50;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    border-color: #FFD700;
}

.eb-cia-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Responsive - Usar Tailwind responsive classes en HTML */
@media (max-width: 768px) {
    .eb-cia-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 0.75rem;
    }
    
    .eb-cia-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .eb-cia-title {
        font-size: 1.75rem;
    }
    
    .eb-cia-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .eb-cia-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .eb-cia-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .eb-cia-title {
        font-size: 1.5rem;
    }
    
    .eb-cia-description {
        font-size: 0.9375rem;
    }
    
    .eb-cia-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        min-width: 160px;
    }
}

/* Accesibilidad */
.eb-cia-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Footer Styles */
.wp-block-template-part[data-area="footer"] {
    position: relative;
}

.wp-block-template-part[data-area="footer"] a {
    transition: all 0.3s ease;
}

.wp-block-template-part[data-area="footer"] a:hover {
    transform: translateX(4px);
}

.wp-block-template-part[data-area="footer"] .wp-block-social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-template-part[data-area="footer"] .wp-block-social-link:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Footer animations on scroll */
@keyframes fade-in-up-footer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-template-part[data-area="footer"] .wp-block-column {
    animation: fade-in-up-footer 0.6s ease-out;
}

.wp-block-template-part[data-area="footer"] .wp-block-column:nth-child(1) {
    animation-delay: 0.1s;
}

.wp-block-template-part[data-area="footer"] .wp-block-column:nth-child(2) {
    animation-delay: 0.2s;
}

.wp-block-template-part[data-area="footer"] .wp-block-column:nth-child(3) {
    animation-delay: 0.3s;
}

.wp-block-template-part[data-area="footer"] .wp-block-column:nth-child(4) {
    animation-delay: 0.4s;
}

/* Footer responsive */
@media (max-width: 768px) {
    .wp-block-template-part[data-area="footer"] .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-template-part[data-area="footer"] .wp-block-column {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    .wp-block-template-part[data-area="footer"] .wp-block-group[style*="justify-content:space-between"] {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Reducir animaciones si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .eb-cia-wrapper,
    .eb-cia-icon,
    .eb-cia-title,
    .eb-cia-description {
        animation: none;
    }
    
    .eb-cia-wrapper:hover {
        transform: none;
    }
    
    .eb-cia-button:hover {
        transform: none;
    }
    
    .wp-block-template-part[data-area="footer"] .wp-block-column {
        animation: none;
    }
    
    .wp-block-template-part[data-area="footer"] a:hover {
        transform: none;
    }
    
    .wp-block-template-part[data-area="footer"] .wp-block-social-link:hover {
        transform: none;
    }
}

