/**
 * PROVA GRATUITA 30 GIORNI - MIOGEST
 * Diseño profesional con trofeo nº1 y enfoque en prueba gratuita
 */

/* ========================================
   0. FONDO Y BASE
   ======================================== */

body.prova-gratuita {
    background: url('../images/fodno_preuba_grautia.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

body.prova-gratuita .hero-grid {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

body.prova-gratuita .content-column {
    padding: 15px;
    max-width: none;
}

body.prova-gratuita .form-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 480px;
}

body.prova-gratuita .form-container {
    padding: 30px 25px;
}

body.prova-gratuita .form-wrapper {
    display: block !important;
    visibility: visible !important;
}

body.prova-gratuita .form-container {
    display: block !important;
    visibility: visible !important;
}

/* ========================================
   1. HERO CONTAINER
   ======================================== */

.pg-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 40, 30, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   2. BADGE DE PRUEBA GRATUITA
   ======================================== */

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid #7ed321;
}

.pg-badge-icon {
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.pg-badge-text {
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pg-badge-days {
    font-size: 11px;
    color: #7ed321;
    font-weight: 700;
    background: transparent;
    padding: 0;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 10px;
    margin-left: 2px;
}

/* Categoría - Gestionale Immobiliare */
.pg-category {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 8px;
    display: block;
}

/* ========================================
   3. TÍTULO PRINCIPAL
   ======================================== */

.pg-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.pg-title-line1 {
    display: block;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}

.pg-title-highlight {
    display: block;
    color: #7ed321;
    font-size: 42px;
    font-weight: 900;
    margin: 5px 0;
    text-shadow: 0 0 25px rgba(126, 211, 33, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.pg-title-line2 {
    display: block;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}

/* ========================================
   4. IMAGEN DEL REGALO
   ======================================== */

.pg-gift {
    position: relative;
    margin: 0 auto 20px;
    animation: giftFloat 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

.pg-gift-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Efecto de brillo pulsante en el regalo */
.pg-gift::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 200, 50, 0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: glow 2s ease-in-out infinite;
    z-index: -1;
}

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

/* Mantener estilos del trofeo por si se usa */
.pg-trophy {
    position: relative;
    margin: 0 auto 25px;
    animation: giftFloat 4s ease-in-out infinite;
}

.pg-trophy-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3));
}

/* ========================================
   5. SUBTÍTULO
   ======================================== */

.pg-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 auto 25px;
    max-width: 500px;
}

.pg-subtitle strong {
    color: #ffe066;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.pg-price-highlight {
    color: #7ed321;
    font-weight: 900;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(126, 211, 33, 0.5);
}

.pg-price-old,
.pg-subtitle s {
    color: #ff6b35;
    font-weight: 700;
    text-decoration: line-through;
}

.pg-ai-highlight {
    color: #7ed321;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(126, 211, 33, 0.5);
}

/* Caja de precio destacada */
.pg-price-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 2px solid rgba(126, 211, 33, 0.4);
}

.pg-price-box .pg-price-highlight {
    font-size: 32px;
    font-weight: 900;
    color: #7ed321;
    text-shadow: 0 0 15px rgba(126, 211, 33, 0.6);
}

.pg-price-box .pg-price-old {
    font-size: 20px;
    color: #ff6b35;
    text-decoration: line-through;
    opacity: 0.9;
}

/* Sin tarjeta de crédito */
.pg-no-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(126, 211, 33, 0.2);
    border: 2px solid #7ed321;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.pg-no-card svg {
    width: 20px;
    height: 20px;
    color: #7ed321;
    flex-shrink: 0;
}

.pg-no-card span {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   6. STATS CON NÚMEROS GRANDES
   ======================================== */

.pg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.pg-stat {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 15px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.pg-stat:hover {
    transform: translateY(-8px);
    border-color: #7ed321;
    box-shadow: 0 12px 30px rgba(126, 211, 33, 0.4);
}

.pg-stat-featured {
    border-color: #7ed321;
    box-shadow: 0 8px 24px rgba(126, 211, 33, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.pg-stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pg-stat-featured .pg-stat-number {
    color: #7ed321;
    text-shadow: 0 0 15px rgba(126, 211, 33, 0.5), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pg-stat-label {
    font-size: 15px;
    font-weight: 800;
    color: #7ed321;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pg-stat-featured .pg-stat-label {
    color: #ffffff;
}

.pg-stat-desc {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pg-stat-desc s {
    color: #ff6b35;
}

/* ========================================
   7. BENEFICIOS MÓVIL
   ======================================== */

.pg-benefits-mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.pg-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pg-benefit svg {
    width: 18px;
    height: 18px;
    color: #64c832;
    flex-shrink: 0;
}

.pg-benefit span {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* ========================================
   8. RESPONSIVE
   ======================================== */

/* ========================================
   9. CTA MÓVIL (solo visible en móvil/tablet)
   ======================================== */

.pg-cta-mobile {
    display: none;
    margin-top: 25px;
}

.pg-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.pg-cta-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    /* Ocultar formulario en tablet/móvil */
    body.prova-gratuita .form-column {
        display: none !important;
    }

    /* Hero ocupa todo el ancho */
    body.prova-gratuita .hero-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Mostrar botón CTA en móvil */
    .pg-cta-mobile {
        display: block;
    }

    .pg-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .pg-trophy-img {
        max-width: 240px;
    }

    .pg-gift-img {
        max-width: 260px;
    }

    .pg-title-line1 {
        font-size: 28px;
    }

    .pg-title-highlight {
        font-size: 36px;
    }

    .pg-title-line2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* Título compacto en móvil */
    .pg-title {
        margin-bottom: 15px;
    }

    .pg-title-line1 {
        font-size: 20px;
    }

    .pg-title-highlight {
        font-size: 24px;
    }

    .pg-title-line2 {
        font-size: 20px;
    }

    body.prova-gratuita .content-column {
        padding: 15px 10px;
    }

    .pg-badge {
        padding: 8px 16px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .pg-badge-text {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .pg-badge-icon {
        font-size: 16px;
    }

    .pg-badge-days {
        font-size: 10px;
        padding: 3px 8px;
    }

    .pg-trophy,
    .pg-gift {
        margin-bottom: 15px;
    }

    .pg-trophy-img {
        max-width: 200px;
    }

    .pg-gift-img {
        max-width: 180px;
    }

    .pg-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    /* Mantener 3 columnas HORIZONTAL */
    .pg-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pg-stat {
        padding: 12px 8px;
    }

    .pg-stat-number {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .pg-stat-label {
        font-size: 11px;
        margin-bottom: 3px;
        letter-spacing: 0.3px;
    }

    .pg-stat-desc {
        font-size: 10px;
        line-height: 1.3;
    }

    /* Mostrar beneficios en móvil */
    .pg-benefits-mobile {
        display: flex;
    }

    /* CTA más pequeño en móvil */
    .pg-cta-button {
        font-size: 16px;
        padding: 16px 35px;
    }

    .pg-price-box {
        padding: 10px 20px;
        gap: 10px;
    }

    .pg-price-box .pg-price-highlight {
        font-size: 26px;
    }

    .pg-price-box .pg-price-old {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.prova-gratuita .content-column {
        padding: 12px 8px;
    }

    .pg-badge {
        padding: 6px 12px;
        gap: 5px;
        margin-bottom: 10px;
    }

    .pg-badge-text {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .pg-badge-icon {
        font-size: 14px;
    }

    .pg-badge-days {
        font-size: 9px;
    }

    .pg-title-line1 {
        font-size: 22px;
    }

    .pg-title-highlight {
        font-size: 28px;
    }

    .pg-title-line2 {
        font-size: 22px;
    }

    .pg-trophy-img {
        max-width: 200px;
    }

    .pg-gift-img {
        max-width: 200px;
    }

    /* Ocultar efecto glow en móvil pequeño para rendimiento */
    .pg-gift::after {
        display: none;
    }

    .pg-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    /* CTA en móvil pequeño */
    .pg-cta-button {
        font-size: 15px;
        padding: 14px 30px;
        width: 100%;
    }

    .pg-price-box {
        padding: 8px 16px;
    }

    .pg-price-box .pg-price-highlight {
        font-size: 22px;
    }

    .pg-price-box .pg-price-old {
        font-size: 14px;
    }

    .pg-stats {
        gap: 6px;
    }

    .pg-stat {
        padding: 10px 6px;
        border-radius: 12px;
    }

    .pg-stat-number {
        font-size: 24px;
        margin-bottom: 3px;
    }

    .pg-stat-label {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .pg-stat-desc {
        font-size: 9px;
    }

    .pg-benefit {
        padding: 8px 12px;
    }

    .pg-benefit svg {
        width: 16px;
        height: 16px;
    }

    .pg-benefit span {
        font-size: 12px;
    }
}
