/**
 * EQUACOM Store - Enhanced Styles & Animations
 * Damos vida a su imaginación
 */

/* ========================================
   Enhanced Animations
======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    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.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(227, 24, 55, 0.3); }
    50% { box-shadow: 0 0 40px rgba(227, 24, 55, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
   Mobile Navigation
======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 74, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--equacom-red);
    transform: scale(1.1);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Section Badges
======================================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--equacom-red), #ff4757);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   About Preview Section
======================================== */
.about-preview {
    background: linear-gradient(135deg, hsl(var(--muted)) 0%, white 100%);
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-preview-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-preview-text .lead {
    font-size: 1.15rem;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--equacom-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.about-preview-image {
    position: relative;
}

.about-preview-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--equacom-red);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(227, 24, 55, 0.4);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   Enhanced Categories
======================================== */
.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--equacom-red), var(--equacom-navy));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: var(--equacom-red);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card p {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.category-link {
    color: var(--equacom-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Service Blocks
======================================== */
.service-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .service-block {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-block.reverse {
        direction: rtl;
    }
    
    .service-block.reverse > * {
        direction: ltr;
    }
}

.service-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-content h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.service-products {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.product-tag:hover {
    background: var(--equacom-red);
    border-color: var(--equacom-red);
}

.service-techniques h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.technique {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.technique strong {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
}

.technique span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Product Filters
======================================== */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid hsl(var(--border));
    border-radius: 50px;
    background: white;
    color: var(--equacom-navy);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--equacom-red);
    border-color: var(--equacom-red);
    color: white;
}

/* ========================================
   Enhanced Product Cards
======================================== */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 74, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--equacom-navy);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: var(--equacom-red);
    color: white;
}

.overlay-btn.whatsapp {
    background: #25D366;
    color: white;
}

.btn-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--equacom-red);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.btn-cart:hover {
    background: var(--equacom-navy);
}

/* ========================================
   Gallery Section
======================================== */
.gallery-section {
    background: hsl(var(--muted));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 42, 74, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
}

/* ========================================
   Mission/Vision Section
======================================== */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .mission-vision {
        grid-template-columns: 1fr 1fr;
    }
}

.mv-item {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--equacom-red);
}

.mv-item h4 {
    color: var(--equacom-navy);
    margin-bottom: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    font-weight: 500;
}

/* ========================================
   Quote Section
======================================== */
.quote-section {
    background: linear-gradient(135deg, var(--equacom-navy) 0%, var(--equacom-dark) 100%);
    color: white;
}

.quote-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .quote-content {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-info h2 {
    color: white;
}

.quote-info p {
    color: rgba(255, 255, 255, 0.8);
}

.quote-benefits {
    margin: 2rem 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.benefit span {
    width: 24px;
    height: 24px;
    background: var(--equacom-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.quick-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-contact p {
    margin-bottom: 1rem;
}

.quote-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--equacom-red) 0%, #c41430 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ========================================
   Button Enhancements
======================================== */
.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #128C7E !important;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Fixed Action Buttons
======================================== */
.fixed-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.fixed-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.fixed-btn:hover {
    transform: scale(1.1);
}

.fixed-btn.whatsapp {
    background: #25D366;
    animation: pulse 2s infinite;
}

.fixed-btn.phone {
    background: var(--equacom-red);
}

.btn-label {
    position: absolute;
    right: 70px;
    background: var(--equacom-navy);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fixed-btn:hover .btn-label {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Scroll Indicator
======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s infinite;
}

/* ========================================
   Hero Image Badge
======================================== */
.hero-image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--equacom-red);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
}

/* ========================================
   Footer Enhancements
======================================== */
.footer-legal {
    flex: 1;
}

.legal-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

/* ========================================
   Toast Notifications
======================================== */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInRight 0.3s ease-out;
}

.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.info { background: var(--equacom-navy); }

/* ========================================
   Back to Top
======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--equacom-navy);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--equacom-red);
    transform: translateY(-3px);
}

/* ========================================
   Accessibility
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--equacom-red);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .site-header,
    .site-footer,
    .fixed-buttons,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
}
