/* =============================================
   CORRUPLESA - Estilos páginas de Soluciones
   Incluye: Hero, Cards de producto, CTA, Responsive
   ============================================= */

/* === PRELOADER LOADING STATE === */
body.loading {
    overflow: hidden;
}

/* === HERO DE SOLUCIÓN === */
.solution-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--section-blue) 60%, #0a2a4a 100%);
    padding: 140px 10% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.solution-hero-tag {
    display: inline-block;
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.solution-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 20px;
}

.solution-hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.solution-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.5);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 50px;
    border: 2px solid rgba(0, 229, 255, 0.5);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-cta-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* === SECCIÓN BREADCRUMB === */
.breadcrumb-bar {
    background: #f7f9fc;
    padding: 12px 10%;
    border-bottom: 1px solid #e8edf2;
}

.breadcrumb-bar nav {
    font-size: 13px;
    color: #888;
}

.breadcrumb-bar a {
    color: var(--section-blue);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-bar a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-bar span {
    margin: 0 8px;
    color: #bbb;
}

/* === SECCIÓN PRODUCTOS === */
.products-section {
    padding: 80px 10%;
    background: var(--white);
}

.products-section > h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--dark-blue);
    font-weight: 900;
    margin-bottom: 12px;
}

.products-section > .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* === CARD DE PRODUCTO === */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 26, 51, 0.08);
    border: 1px solid #edf1f7;
    margin-bottom: 48px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 16px 60px rgba(0, 26, 51, 0.14);
    transform: translateY(-4px);
}

.product-card:nth-child(even) {
    direction: rtl;
}

.product-card:nth-child(even) > * {
    direction: ltr;
}

.product-card-img {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
    min-height: 320px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-material {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    color: var(--section-blue);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-card-body h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0 0 14px;
    line-height: 1.2;
}

.product-card-body p {
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.product-uses-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 10px;
}

.product-uses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.product-uses-list li {
    background: #f0f7ff;
    color: var(--section-blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dde8f5;
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    align-self: flex-start;
}

.product-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

/* === SECCIÓN CTA FINAL === */
.solution-cta-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--section-blue) 100%);
    padding: 80px 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 229, 255, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.solution-cta-section h2 {
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 14px;
}

.solution-cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.solution-cta-section .solution-hero-ctas {
    justify-content: center;
}

/* === OTRAS SOLUCIONES === */
.other-solutions {
    padding: 70px 10%;
    background: #f7f9fc;
    text-align: center;
}

.other-solutions h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 36px;
}

.other-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.other-solution-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    border: 1px solid #e4eaf2;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    text-align: center;
}

.other-solution-card:hover {
    box-shadow: 0 10px 35px rgba(0, 26, 51, 0.1);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.other-solution-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

.other-solution-card h3 {
    color: var(--dark-blue);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.other-solution-card p {
    color: #888;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* === RESPONSIVE: 900px === */
@media (max-width: 900px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card:nth-child(even) {
        direction: ltr;
    }

    .product-card-img {
        min-height: 250px;
    }

    .product-card-body {
        padding: 32px 28px;
    }

    .solution-hero {
        padding: 120px 6% 60px;
    }

    .products-section {
        padding: 60px 6%;
    }
}

/* === RESPONSIVE: 600px === */
@media (max-width: 600px) {
    .solution-hero {
        padding: 110px 5% 50px;
    }

    .solution-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .product-card-body {
        padding: 24px 20px;
    }

    .product-card-body h3 {
        font-size: 1.3rem;
    }

    .products-section {
        padding: 50px 5%;
    }

    .solution-cta-section {
        padding: 60px 5%;
    }

    .other-solutions {
        padding: 50px 5%;
    }

    .breadcrumb-bar {
        padding: 10px 5%;
    }
}

/* === RESPONSIVE: 480px === */
@media (max-width: 480px) {
    .solution-hero h1 {
        font-size: 1.8rem;
    }

    .product-card-img {
        min-height: 200px;
    }

    .product-card-material {
        font-size: 11px;
    }

    .product-uses-list li {
        font-size: 12px;
        padding: 3px 10px;
    }

    .other-solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* === WhatsApp Chat Widget === */
.wa-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: "Inter", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 999;
}

/* WhatsApp Bubble (Chat preview) */
.wa-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: slideUp 0.3s ease;
}

.wa-bubble.visible {
    opacity: 1;
    visibility: visible;
}

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

.wa-bubble-header {
    background: linear-gradient(135deg, #25D366 0%, #20BA5F 100%);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.wa-header-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wa-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.wa-close:hover {
    transform: scale(1.2);
}

.wa-bubble-body {
    padding: 16px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.wa-msg-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-msg-container strong {
    color: #075E54;
    font-size: 0.95rem;
}

.wa-msg-container p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* WhatsApp Main Button */
.wa-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5F 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-size: 32px;
}

.wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.wa-btn:active {
    transform: scale(0.95);
}

.wa-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .wa-chat-wrapper {
        bottom: 15px;
        right: 15px;
    }

    .wa-btn {
        width: 56px;
        height: 56px;
    }

    .wa-btn svg {
        width: 28px;
        height: 28px;
    }

    .wa-bubble {
        width: 280px;
        bottom: 70px;
    }
}

@media (max-width: 360px) {
    .wa-bubble {
        width: 260px;
        font-size: 0.9rem;
    }

    .wa-msg-container p {
        font-size: 0.85rem;
    }
}
