/* css/calculadora-handicap.css - Estilos específicos para la Calculadora Multicancha */

.hcp-page-container {
    max-width: 900px;
    margin: 110px auto 60px;
    padding: 0 20px;
}

.hcp-hero-header {
    text-align: center;
    margin-bottom: 30px;
}

.hcp-badge-pill {
    display: inline-block;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: var(--clr-primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hcp-hero-title {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hcp-hero-desc {
    color: var(--clr-text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Card Principal de la Calculadora */
.hcp-main-card {
    background: #0f2316;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.hcp-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 600;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--clr-primary);
    color: #071a0f;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Grupos de Formulario */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.input-primary {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.input-primary:focus {
    border-color: var(--clr-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.btn-primary-action {
    background: var(--clr-primary);
    color: #071a0f;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-primary-action:hover {
    background: var(--clr-primary-light);
    transform: translateY(-1px);
}

.btn-primary-action:disabled {
    background: #2f4335;
    color: #718878;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes de Estado */
.status-msg {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.status-msg.loading {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.status-msg.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.status-msg.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde047;
}

/* Badge Ficha Jugador */
.badge-jugador-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.jugador-info {
    display: flex;
    flex-direction: column;
}

.jugador-label {
    font-size: 0.75rem;
    color: var(--clr-primary-light);
    text-transform: uppercase;
    font-weight: 600;
}

.jugador-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.jugador-hpi-box {
    text-align: right;
}

.hpi-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.hpi-valor {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary-light);
    line-height: 1;
}

/* Ingreso Manual */
.manual-toggle-link {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition-fast);
}

.manual-toggle-link:hover {
    color: #ffffff;
}

.manual-hpi-container {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 18px;
}

/* Buscador de Cancha y Typeahead */
.cancha-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.cancha-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #0d2818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(76, 175, 80, 0.15);
}

.dropdown-item .item-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.dropdown-item .item-sub {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 1px;
}

.dropdown-item.no-result {
    cursor: default;
    background: transparent;
    padding: 14px;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.btn-link-add {
    display: block;
    margin: 8px auto 0;
    background: none;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary-light);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-link-add:hover {
    background: var(--clr-primary);
    color: #071a0f;
}

/* Cancha Seleccionada Display */
.cancha-selected-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.cancha-selected-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.cancha-selected-loc {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.btn-secondary-action {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Selector de Circuitos */
.circuitos-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.btn-circuito-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-circuito-pill:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--clr-primary);
}

.btn-circuito-pill.active {
    background: var(--clr-primary);
    color: #071a0f;
    border-color: var(--clr-primary);
    font-weight: 700;
}

/* Resultados de Tees */
.results-container {
    display: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.results-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.results-title {
    font-size: 1.2rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
}

.btn-whatsapp-share {
    background: #25d366;
    color: #071a0f;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-whatsapp-share:hover {
    background: #20ba59;
    transform: translateY(-1px);
}

.tees-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.tee-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tee-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tee-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tee-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.tee-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.tee-gender {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    display: block;
}

.tee-metrics {
    display: flex;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

.tee-metrics span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
}

.tee-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 10px;
}

.result-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.result-box.medal-box {
    border-top: 3px solid var(--clr-primary);
}

.result-box.fourball-box {
    border-top: 3px solid #3b82f6;
}

.result-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.result-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    margin-top: 3px;
}

/* Modal Custom Cancha */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content-box {
    background: #0d2818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.table-custom-tees {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 0.8rem;
}

.table-custom-tees th {
    text-align: left;
    padding: 6px;
    color: var(--clr-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-custom-tees td {
    padding: 4px 2px;
}

.input-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 6px;
    color: #ffffff;
    font-size: 0.8rem;
}

.btn-del-row {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #fca5a5;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

/* ==========================================================================
   SECCIÓN SEO Y CONTENIDO EDITORIAL (Optimización Google)
   ========================================================================== */
.hcp-seo-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hcp-seo-title {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
}

.hcp-seo-lead {
    color: var(--clr-text-muted);
    text-align: center;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hcp-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.hcp-seo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 22px;
    transition: var(--transition-fast);
}

.hcp-seo-card:hover {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.hcp-seo-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hcp-seo-card-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.hcp-seo-card-text {
    color: var(--clr-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.hcp-seo-card-text strong {
    color: #e2e8f0;
}

/* Preguntas Frecuentes SEO */
.hcp-faq-section {
    background: #0f2316;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 30px;
    margin-top: 30px;
}

.hcp-faq-header {
    margin-bottom: 24px;
}

.hcp-faq-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 700;
}

.hcp-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}

.hcp-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hcp-faq-question {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hcp-faq-answer {
    color: var(--clr-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   MINIMALISMO MOBILE (PANTALLAS CHICAS / SMARTPHONES)
   ========================================================================== */
@media (max-width: 640px) {
    .hcp-page-container {
        margin: 80px auto 30px;
        padding: 0 12px;
    }

    .hcp-hero-header {
        margin-bottom: 18px;
    }

    .hcp-badge-pill {
        font-size: 0.72rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .hcp-hero-title {
        font-size: 1.65rem;
        margin-bottom: 6px;
    }

    .hcp-hero-desc {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .hcp-main-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .hcp-step-title {
        font-size: 1rem;
        margin-bottom: 10px;
        gap: 8px;
    }

    .step-num {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .input-primary {
        padding: 10px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .btn-primary-action {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .badge-jugador-card {
        padding: 10px 12px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .jugador-nombre {
        font-size: 1rem;
    }

    .hpi-valor {
        font-size: 1.4rem;
    }

    .cancha-selected-card {
        padding: 10px 12px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .cancha-selected-title {
        font-size: 0.95rem;
    }

    .circuitos-pills-row {
        gap: 4px;
    }

    .btn-circuito-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 12px;
    }

    .results-container {
        margin-top: 18px;
        padding-top: 16px;
    }

    .results-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .results-title {
        font-size: 1.05rem;
    }

    .btn-whatsapp-share {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    .tees-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tee-card {
        border-radius: 10px;
    }

    .tee-header {
        padding: 8px 10px;
    }

    .tee-results-grid {
        padding: 10px;
        gap: 8px;
    }

    .result-number {
        font-size: 1.6rem;
    }

    .hcp-seo-section {
        margin-top: 40px;
        padding-top: 25px;
    }

    .hcp-seo-title {
        font-size: 1.5rem;
    }

    .hcp-seo-lead {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .hcp-seo-grid {
        gap: 14px;
        margin-bottom: 30px;
    }

    .hcp-seo-card {
        padding: 16px;
    }

    .hcp-faq-section {
        padding: 18px 14px;
    }
}
