/* --- CONFIGURACIÓN DE FICHA DE SOLUCIÓN --- */

/* Ajustes de Layout Específicos */
.page-detail .full-container {
    display: grid;
    grid-template-columns: 1fr 380px; /* Columna principal | Sidebar de conversión */
    gap: 3rem;
    padding: 2rem 3rem;
    max-width: 100%; /* Ancho completo solicitado */
}

/* --- HERO DE SOLUCIÓN (HEADER DE FICHA) --- */
.solution-hero {
    grid-column: 1 / -1; /* Ocupa todo el ancho superior */
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 3.5rem;
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.badge i {
    color: var(--cyan);
    margin-right: 8px;
}

.hero-info h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.hero-info p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Score y Estrellas */
.rating-display {
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-display .score {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    color: var(--cyan);
}

.rating-display .stars {
    color: #fbbf24;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* --- CUERPO PRINCIPAL --- */
.main-content {
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Video de Demostración */
.video-section {
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bloques de Texto */
.content-block {
    margin-bottom: 4rem;
}

.content-block:last-child { margin-bottom: 0; }

.content-block h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-block h2 i {
    color: var(--cyan);
    font-size: 1.4rem;
}

.content-block p {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.8;
}

/* Grid de Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--cyan);
    background: var(--white);
    transform: translateX(10px);
}

.feature-item i {
    background: var(--navy);
    color: var(--cyan);
    width: 40px; /* Aumentado para mejor proporción */
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Aumentado */
    flex-shrink: 0; /* IMPRESCINDIBLE para que no se deforme */
}

.feature-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- SIDEBAR DE CONVERSIÓN --- */
.sidebar-action {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.action-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.price-tag {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price-tag .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate-light);
    margin-bottom: 0.5rem;
}

.price-tag .value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.price-tag .type {
    display: block;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 0.8rem;
    font-size: 1rem; /* CORRECCIÓN DE TAMAÑO */
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

/* --- Botones de Descarga App Stores (Versión Mejorada) --- */
.download-stores {
    margin: 2.5rem 0 2rem 0;
    text-align: left;
}

.download-stores h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 1rem;
}

.store-badge {
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important; /* Quitar subrayado */
    color: white;
    background-color: #1a1a1a;
    border: 1px solid #444;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.store-badge:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.store-badge i {
    font-size: 2.2rem; /* Icono más grande */
    margin-right: 15px;
    line-height: 1;
}

.store-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.store-badge span {
    font-size: 0.7rem; /* Texto más pequeño */
    font-weight: 500;
    opacity: 0.8;
}

.store-badge strong {
    font-size: 1rem; /* Tamaño ajustado */
    font-weight: 700;
}

.btn-primary-action {
    background: var(--cyan);
    color: var(--navy);
    border: none;
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-action:hover {
    background: var(--cyan-glow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary-action {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 1rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-action:hover {
    background: var(--navy);
    color: var(--white);
}

.trust-badges {
    margin-bottom: 2rem;
}

.trust-badges p {
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badges i { color: #10b981; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* Proveedor Recomendado */
.related-provider h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 1rem;
}

.mini-provider {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 12px;
}

.prov-avatar {
    width: 40px;
    height: 40px;
    background: var(--navy-light);
    color: var(--cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prov-data strong {
    display: block;
    font-size: 0.9rem;
}

.prov-data small {
    font-size: 0.75rem;
    color: var(--slate);
}

/* --- Nuevas Secciones de Contenido --- */

/* Contenedor de Tags en el Hero */
.tags-container {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    background: var(--cyan-glow);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Sección de Pros y Contras */
.pros-cons-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.pros-column, .cons-column {
    padding: 2rem;
    border-radius: 16px;
}

.pros-column {
    background: #f0fdf4; /* Verde muy claro */
    border: 1px solid #bbf7d0;
}

.cons-column {
    background: #fff1f2; /* Rojo muy claro */
    border: 1px solid #ffdde1;
}

.pros-column h3, .cons-column h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros-column h3 i { color: #22c55e; } /* Verde */
.cons-column h3 i { color: #ef4444; } /* Rojo */

.pros-column ul, .cons-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pros-column ul li, .cons-column ul li {
    font-weight: 500;
    color: var(--slate);
    line-height: 1.6;
}

/* Lista completa de características */
.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li i {
    color: var(--cyan);
}

/* Sección de Datos Clave */
.key-data-section dl {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1.5rem 2rem;
    align-items: center;
}

.key-data-section dt {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
}

.key-data-section dd {
    margin: 0;
    font-weight: 500;
    color: var(--slate);
    font-size: 1rem;
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .page-detail .full-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .sidebar-action { position: static; order: 2; }
    .main-content { order: 1; padding: 2rem; }
}

@media (max-width: 768px) {
    .solution-hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-info h1 { font-size: 2rem; }
    .rating-display { margin-top: 2rem; width: 100%; }
}

/* HERO DE FICHA EN MÓVIL (07/11/2026): el bloque de badges y el rating
   desbordaban a la derecha en pantallas de 390 px. */
@media (max-width: 768px) {
    .page-detail .full-container,
    .full-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
    }
    .solution-hero {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
    }
    .hero-info {
        width: 100% !important;
        min-width: 0 !important;
    }
    .hero-info > div:first-child {
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-bottom: 1rem !important;
    }
    .hero-info h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere !important;
    }
    .hero-info p {
        font-size: .95rem !important;
        line-height: 1.45 !important;
    }
    .badges,
    .tags-container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .badge {
        white-space: normal !important;
        font-size: .72rem !important;
    }
    .hero-action-summary,
    .rating-display {
        width: 100% !important;
        min-width: 0 !important;
        margin-top: .25rem !important;
    }
}
