/**
 * Tarjetas Generales - Stylesheet
 * 100% Compatible con Elementor & WoodMart
 */

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */
.pamas-help-center {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
    color: #1e293b;
    position: relative;
}

.pamas-help-center * {
    box-sizing: border-box;
}

/* ==========================================================================
   Encabezado (Header)
   ========================================================================== */
.pamas-help-header {
    text-align: center;
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pamas-help-header span {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.pamas-help-header h1,
.pamas-help-header .pamas-help-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}

.pamas-help-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    max-width: 660px;
    margin: 0 auto;
}

/* ==========================================================================
   Grid de Tarjetas (Cards Grid)
   ========================================================================== */
.pamas-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 45px;
    align-items: stretch;
}

/* ==========================================================================
   Tarjeta Individual (Card)
   ========================================================================== */
.pamas-help-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.35s ease;
    overflow: hidden;
}

.pamas-help-card:hover {
    transform: translateY(-6px);
    border-color: #0066cc;
    box-shadow: 0 16px 36px rgba(0, 102, 204, 0.12);
}

/* Card clickable overlay option */
.pamas-help-card.pamas-is-clickable {
    cursor: pointer;
}

.pamas-help-card.pamas-is-clickable .pamas-card-stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==========================================================================
   Ícono de Tarjeta
   ========================================================================== */
.pamas-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0066cc;
    margin-bottom: 22px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.35s ease,
                color 0.35s ease;
}

.pamas-help-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    display: block;
}

.pamas-help-icon i {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
}

.pamas-help-icon img {
    max-width: 32px;
    max-height: 32px;
    height: auto;
    object-fit: contain;
    display: block;
}

.pamas-help-card:hover .pamas-help-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(0, 102, 204, 0.12);
    color: #0052a3;
}

/* ==========================================================================
   Contenido de Tarjeta (Textos)
   ========================================================================== */
.pamas-help-card h3,
.pamas-help-card .pamas-help-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 10px 0;
    transition: color 0.25s ease;
}

.pamas-help-card:hover h3,
.pamas-help-card:hover .pamas-help-card-title {
    color: #0066cc;
}

.pamas-help-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 22px 0;
    flex-grow: 1;
}

/* ==========================================================================
   Enlace de Tarjeta
   ========================================================================== */
.pamas-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0066cc;
    text-decoration: none !important;
    margin-top: auto;
    position: relative;
    transition: color 0.25s ease, gap 0.25s ease;
}

.pamas-help-card a .pamas-link-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.pamas-help-card a:hover {
    color: #004c99;
    gap: 12px;
}

.pamas-help-card:hover a .pamas-link-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Bloque de Contacto / CTA Banner
   ========================================================================== */
.pamas-help-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 38px 44px;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
}

/* Glow decorativo sutil de fondo */
.pamas-help-contact::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.25) 0%, rgba(0, 102, 204, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.pamas-help-contact > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.pamas-help-contact h2,
.pamas-help-contact .pamas-help-contact-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.pamas-help-contact p {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* Botones del Bloque de Contacto */
.pamas-help-contact-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pamas-help-contact-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1.2;
}

/* Botón 1: Solicitar Cotización */
.pamas-help-contact-buttons a:first-child,
.pamas-help-contact-buttons .pamas-btn-primary {
    background: #0066cc;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pamas-help-contact-buttons a:first-child:hover,
.pamas-help-contact-buttons .pamas-btn-primary:hover {
    background: #0052a3;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
}

/* Botón 2: Hablar con un asesor (WhatsApp) */
.pamas-help-contact-buttons a:last-child,
.pamas-help-contact-buttons .pamas-btn-secondary {
    background: #25D366;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pamas-help-contact-buttons a:last-child:hover,
.pamas-help-contact-buttons .pamas-btn-secondary:hover {
    background: #20ba5a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   Adaptabilidad Responsiva (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .pamas-help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pamas-help-contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 24px;
    }

    .pamas-help-contact-buttons {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .pamas-help-header {
        margin-bottom: 30px;
    }

    .pamas-help-header h1,
    .pamas-help-header .pamas-help-title {
        font-size: 28px;
    }

    .pamas-help-header p {
        font-size: 15px;
    }

    .pamas-help-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .pamas-help-card {
        padding: 24px 20px;
    }

    .pamas-help-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: 16px;
    }

    .pamas-help-contact {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .pamas-help-contact h2,
    .pamas-help-contact .pamas-help-contact-title {
        font-size: 20px;
    }

    .pamas-help-contact-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .pamas-help-contact-buttons a {
        width: 100%;
        text-align: center;
    }
}
