/**
 * CSS ELEGANTE CON ANIMACIONES SUTILES - Landing Page ABACA
 * Imágenes estratégicas y micro-animaciones refinadas
 */


/* Variables simples */
:root {
    --azul-institucional: #010834;
    --cafe-abaca: #010834;
    --beige-abaca: #f3e3cc;
    --orange-highlight: #e89634;
}

/* Reset básico */
* {
    box-sizing: border-box;
}

/* Animaciones sutiles base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    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);
    }
}

/* Hero section con animación */
.hero-section-clean {
    border-bottom: 1px solid #f3e3cc;
    animation: fadeInUp 0.8s ease-out;
}

/* Galerías con animaciones escalonadas */
.collections-gallery .collection-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.collections-gallery .collection-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.collections-gallery .collection-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.wholesale-gallery .gallery-item:nth-child(1) {
    animation: scaleIn 0.5s ease-out 0.1s both;
}

.wholesale-gallery .gallery-item:nth-child(2) {
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.wholesale-gallery .gallery-item:nth-child(3) {
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.wholesale-gallery .gallery-item:nth-child(4) {
    animation: scaleIn 0.5s ease-out 0.4s both;
}

/* Imágenes con efectos hover sutiles */
.wp-block-image img {
    transition: all 0.4s ease;
}

.hero-image img,
.collection-item img,
.gallery-item img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.collection-item:hover img,
.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* Figcaptions mejorados */
.wp-block-gallery .wp-block-image figcaption {
    background: rgba(1, 8, 52, 0.85);
    color: #f3e3cc;
    padding: 0.8rem 1rem;
    font-weight: 400;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.collection-item:hover figcaption,
.gallery-item:hover figcaption {
    background: rgba(232, 150, 52, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Secciones con animaciones de entrada */
.about-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-text {
    animation: fadeInLeft 0.8s ease-out 0.3s both;
}

.about-image {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.sustainability-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.sustainability-text {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.sustainability-image {
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

/* Párrafos con animación escalonada */
.fade-in-paragraph:nth-of-type(1) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.fade-in-paragraph:nth-of-type(2) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.fade-in-paragraph:nth-of-type(3) {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.fade-in-paragraph:nth-of-type(4) {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Texto highlight con animación especial */
.highlight-text {
    animation: fadeInUp 0.8s ease-out 0.9s both;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e89634;
    animation: expandLine 1.2s ease-out 1.2s both;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

/* Features con animación escalonada */
.feature-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.feature-item:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Botones con animaciones refinadas */
.btn-clean .wp-block-button__link,
.wp-block-button__link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::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.6s ease;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover {
    background-color: #e89634 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 8, 52, 0.2);
    color: #ffffff !important;
}

.wp-block-button__link[style*="background:rgba(0,0,0,0)"]:hover {
    background-color: #010834 !important;
    color: #ffffff !important;
}

/* Sección wholesale con animación */
.wholesale-section-clean {
    border-top: 1px solid rgba(87, 69, 69, 0.1);
    border-bottom: 1px solid rgba(87, 69, 69, 0.1);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.wholesale-content {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.wholesale-gallery-section {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Listas con animación */
.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out both;
}

.benefits-list li:nth-child(1) { animation-delay: 0.6s; }
.benefits-list li:nth-child(2) { animation-delay: 0.7s; }
.benefits-list li:nth-child(3) { animation-delay: 0.8s; }
.benefits-list li:nth-child(4) { animation-delay: 0.9s; }

.benefits-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #e89634;
    font-weight: 400;
    transition: all 0.3s ease;
}

.benefits-list li:hover::before {
    color: #010834;
    transform: translateX(3px);
}

/* Features section con hover mejorado */
.features-section .feature-item {
    transition: all 0.3s ease;
}

.features-section .feature-item:hover {
    border-top-color: #e89634 !important;
    transform: translateX(10px);
}

/* Contact form con bloques editables */
.contact-form-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-form-section .wp-block-columns {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.contact-form-section .wp-block-paragraph[style*="background-color:rgba(255, 255, 255, 0.05)"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 3rem;
    display: flex;
    align-items: center;
    color: rgba(243, 227, 204, 0.7) !important;
    font-style: italic;
}

.contact-form-section .wp-block-paragraph[style*="background-color:rgba(255, 255, 255, 0.05)"]:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #e89634 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 150, 52, 0.2);
}

.contact-form-section .wp-block-paragraph[style*="padding-top:2rem"] {
    min-height: 5rem;
    align-items: flex-start;
    padding-top: 1rem !important;
}

/* Formulario limpio original (backup) */
.clean-contact-form {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.clean-contact-form input,
.clean-contact-form textarea {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clean-contact-form input:focus,
.clean-contact-form textarea:focus {
    outline: none;
    border-color: #e89634 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 150, 52, 0.2);
}

.clean-contact-form input::placeholder,
.clean-contact-form textarea::placeholder {
    color: rgba(243, 227, 204, 0.7);
    transition: all 0.3s ease;
}

.clean-contact-form input:focus::placeholder,
.clean-contact-form textarea:focus::placeholder {
    color: rgba(243, 227, 204, 0.9);
    transform: translateY(-2px);
}

.clean-contact-form button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clean-contact-form button:hover {
    background: #574545 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(87, 69, 69, 0.3);
}

/* Contact section con gradiente sutil */
.contact-section-clean {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.contact-section-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #010834 0%, rgba(1, 8, 52, 0.95) 100%);
}

.contact-section-clean .wp-block-group {
    position: relative;
    z-index: 2;
}

/* Responsive con animaciones */
@media (max-width: 768px) {
    /* Hero móvil */
    .hero-section-clean h1 {
        font-size: 3.5rem !important;
    }
    
    .hero-section-clean p {
        font-size: 1.2rem !important;
        padding: 0 1rem;
    }
    
    /* Galerías móvil */
    .collections-gallery {
        columns: 1 !important;
    }
    
    .wholesale-gallery {
        columns: 2 !important;
    }
    
    /* Botones móvil */
    .wp-block-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .wp-block-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Espaciado móvil */
    .wp-block-group[style*="padding-top:5rem"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .wp-block-group[style*="padding-top:4rem"] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Columnas móvil */
    .wp-block-columns {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* Headings móvil */
    h2[style*="font-size:2.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Formulario móvil */
    .clean-contact-form {
        padding: 0 1rem;
    }
    
    /* Animaciones móvil más rápidas */
    .about-text,
    .about-image,
    .sustainability-text,
    .sustainability-image {
        animation-duration: 0.6s;
        animation-delay: 0.1s;
    }
}

@media (max-width: 480px) {
    .hero-section-clean h1 {
        font-size: 3rem !important;
    }
    
    .wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    h2[style*="font-size:2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    .wholesale-gallery {
        columns: 1 !important;
    }
}

/* Accesibilidad */
.wp-block-button__link:focus {
    outline: 2px solid #e89634;
    outline-offset: 2px;
}

.clean-contact-form input:focus,
.clean-contact-form textarea:focus {
    outline: 2px solid #e89634;
    outline-offset: 2px;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estados hover sutiles */
/* a:hover {
    color: #e89634 !important;
    transition: color 0.3s ease;
} */

/* Efectos para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .wp-block-button__link:hover,
    .hero-image:hover img,
    .collection-item:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* Tipografía optimizada */
.wp-block-paragraph {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}