/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
*/

/* 1. FUENTE MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   ESTILOS CONFIGURADOR HOMTAK - FUSIÓN (ANCHO QWEN + DISEÑO ORIGINAL)
   ========================================================================== */

/* --- 1. ESTRUCTURA Y ANCHO (La parte que arregló Qwen) --- */
/* Usamos estos selectores largos para obligar a Elementor a soltar el ancho */
body .elementor-widget-container .homtak-plan-selector,
body .homtak-plan-selector {
    font-family: 'Montserrat', sans-serif !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 24px !important;
    background: #f5f7fb !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Resetear restricciones de columnas de Elementor */
body .elementor-section .elementor-container,
body .elementor-section .elementor-column .elementor-widget-wrap {
    max-width: 100% !important;
}

/* Forzar herencia de fuente */
.homtak-plan-selector * { box-sizing: border-box; font-family: 'Montserrat', sans-serif !important; }

/* Layout Flexible */
.hps-layout {
    display: flex !important;
    gap: 32px !important;
    margin-top: 24px !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

/* Columna Izquierda (Opciones) */
.hps-options {
    flex: 3 !important;
    min-width: 300px !important;
}

/* --- 2. HEADER Y TEXTOS (Tu Diseño) --- */
.hps-header h2 {
    margin: 0 0 8px !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #122037 !important;
}
.hps-header p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
}

/* Títulos de secciones */
.hps-group-header { margin: 24px 4px 12px; }
.hps-group-header h3 {
    margin: 0 0 4px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}
.hps-group-header p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

/* --- 3. TARJETAS DE PAQUETES (Tu Diseño) --- */
label.hps-package-card {
    display: block !important;
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(209,213,219,.75) !important;
    cursor: pointer !important;
    padding: 20px !important;
    transition: all 0.2s ease !important;
    margin-bottom: 16px !important;
    position: relative !important;
}

label.hps-package-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.08) !important;
    border-color: #cbd5e1 !important;
}

/* Estado Seleccionado (Azul Claro) */
label.hps-package-card.is-checked {
    border-color: #2563eb !important;
    background: #f2f5ff !important;
    box-shadow: 0 0 0 1px #2563eb !important;
}

/* CHECKBOXES DEL PAQUETE */
.hps-package-card input {
    width: 20px !important;
    height: 20px !important;
    accent-color: #1b3a6f !important;
    margin: 4px 14px 0 0 !important;
    float: left;
    cursor: pointer;
}

/* Contenido Tarjeta */
.hps-package-content { margin-left: 34px !important; }
.hps-package-top { display: flex !important; justify-content: space-between !important; gap: 12px; }
.hps-package-title { font-weight: 800 !important; color: #111827 !important; font-size: 1rem !important; }
.hps-package-price { font-weight: 800 !important; color: #1b3a6f !important; font-size: 1.1rem !important; white-space: nowrap; }
.hps-package-sub { margin-top: 4px; font-size: 0.85rem; color: #4b5563; }

/* Listas */
.hps-package-list { margin: 12px 0 14px !important; padding-left: 18px !important; color: #374151 !important; font-size: 0.85rem !important; list-style: disc !important; }
.hps-package-list li { margin-bottom: 4px !important; }

/* Chips */
.hps-package-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.hps-chip { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #1b3a6f !important; color: #fff !important; }
.hps-badge-pro { display: inline-block; margin-left: 8px; font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #dcfce7 !important; color: #166534 !important; text-transform: uppercase; }

/* --- 4. DIVISOR --- */
.hps-divider { margin: 24px 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hps-divider::before, .hps-divider::after { content: ""; height: 1px; flex: 1; background: #e5e7eb; }
.hps-divider span { padding: 4px 12px; border: 1px solid #e5e7eb; background: #fff; border-radius: 20px; color: #6b7280; font-size: 0.85rem; }

/* --- 5. ACORDEONES (Módulos) --- */
.hps-acc {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}
.hps-acc-head {
    width: 100%; padding: 14px 16px !important;
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    background: #fff !important; cursor: pointer;
}
.hps-acc-head:hover { background: #f9fafb !important; }
.hps-acc-head span:first-child { font-weight: 600; color: #1f2937; font-size: 0.95rem; }
.hps-acc-tag { font-size: 0.7rem; color: #4b5563; background: #f3f4f6; border-radius: 999px; padding: 4px 10px; border: 1px solid #e5e7eb; }
.hps-acc-body { padding: 8px 16px 16px !important; border-top: 1px solid #f3f4f6; background: #fff !important; }

/* Opciones Individuales */
.hps-option {
    display: flex !important; align-items: flex-start !important; gap: 12px;
    padding: 10px 8px !important; border-radius: 8px;
    border-bottom: 1px solid #f0f2f7 !important;
    cursor: pointer;
}
.hps-option:last-child { border-bottom: none !important; }
.hps-option:hover { background: #f8fafc !important; }

.hps-option-input { margin-top: 4px !important; width: 16px !important; height: 16px !important; accent-color: #1b3a6f !important; }
.hps-option-main { flex: 1; }
.hps-option-title { display: block; font-size: 0.9rem; font-weight: 500; color: #111827; }
.hps-option-desc { display: block; font-size: 0.75rem; color: #6b7280; margin-top: 2px; }
.hps-option-price { font-size: 0.9rem; font-weight: 700; color: #1b3a6f !important; white-space: nowrap; }

/* --- 6. BARRA LATERAL (RESUMEN) --- */
.hps-summary {
    flex: 1 !important;
    min-width: 300px !important;
    background: #fff !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 24px !important;
    height: fit-content !important;
}

.hps-summary h3 { margin: 0 0 16px !important; font-size: 1.1rem !important; font-weight: 700 !important; color: #111827 !important; }

.hps-summary-items { list-style: none !important; padding: 0 !important; margin: 0 0 20px !important; max-height: 300px; overflow-y: auto; border-bottom: 1px dashed #e5e7eb; padding-bottom: 16px !important; }
.hps-summary-item { display: flex; justify-content: space-between; padding: 8px 0 !important; font-size: 0.85rem; color: #374151; }
.hps-summary-item-price { font-weight: 600; color: #111827; }
.hps-summary-empty { color: #9ca3af; font-style: italic; }

.hps-summary-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 1rem; color: #4b5563; }
.hps-total { font-size: 1.4rem !important; color: #1b3a6f !important; font-weight: 800 !important; }
.hps-summary-actions { display: flex; flex-direction: column; gap: 10px; }

/* --- 7. BOTONES (Tu diseño REDONDO/PÍLDORA) --- */
.hps-button-primary, .hps-button-secondary {
    width: 100% !important;
    border-radius: 999px !important; /* REDONDOS */
    border: none !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

/* Botón Agregar (Tu degradado azul) */
.hps-button-primary {
    background: linear-gradient(135deg, #1b3a6f, #2455a6) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(27, 58, 111, 0.3) !important;
}
.hps-button-primary:hover {
    background: #244882 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 58, 111, 0.4) !important;
}

/* Botón Vaciar (Gris) */
.hps-button-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
.hps-button-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 900px) {
    .hps-layout { flex-direction: column !important; }
    .hps-summary { width: 100% !important; position: static !important; }
}