/* =============================================
   elhosting Functions — Frontend (my-account)
   Alineado con la estética de elhosting.ar
   ============================================= */

:root {
    --ehf-ink:    #1a1a1a;   /* negro de los headings de la web */
    --ehf-blue:   #0a1628;
    --ehf-orange: #e8541e;   /* naranja CTA de elhosting */
    --ehf-soft:   #f7f8fa;
    --ehf-line:   #e6e9ef;
    --ehf-muted:  #8a93a5;
    --ehf-radius: 10px;
}

/* Pestaña Método de pago */
.ehf-payment-method {
    max-width: 620px;
}

.ehf-pm-card {
    background: #fff;
    border: 1px solid var(--ehf-line);
    border-radius: var(--ehf-radius);
    padding: 40px 36px;
    text-align: center;
}

.ehf-pm-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}

.ehf-pm-card h3 {
    margin: 0 0 14px;
    color: var(--ehf-ink);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ehf-pm-card p {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.ehf-pm-button {
    display: inline-block;
    background: var(--ehf-orange);
    color: #fff !important;
    text-decoration: none !important;
    padding: 15px 34px;
    border-radius: var(--ehf-radius);
    font-weight: 700;
    font-size: 1.02rem;
    transition: background 0.2s, transform 0.1s;
}

.ehf-pm-button:hover {
    background: #cf4715;
    transform: translateY(-1px);
}

.ehf-pm-hint {
    margin-top: 18px !important;
    font-size: 0.85rem !important;
    color: var(--ehf-muted) !important;
    margin-bottom: 0 !important;
}

.ehf-pm-help {
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--ehf-soft);
    border-radius: var(--ehf-radius);
    text-align: center;
}

.ehf-pm-help p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ehf-blue);
}

/* Aviso dentro de cada suscripción */
.ehf-sub-pm-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ehf-soft);
    border: 1px solid var(--ehf-line);
    border-left: 3px solid var(--ehf-orange);
    border-radius: var(--ehf-radius);
    padding: 13px 16px;
    margin: 16px 0;
    font-size: 0.92rem;
    color: var(--ehf-blue);
}

.ehf-sub-pm-icon {
    font-size: 1.15rem;
}

.ehf-sub-pm-notice a {
    color: var(--ehf-orange);
    font-weight: 600;
    text-decoration: none;
}

.ehf-sub-pm-notice a:hover {
    text-decoration: underline;
}

/* =============================================
   Datos de facturación
   ============================================= */

.ehf-billing-form h3,
.ehf-invoices h3 {
    color: var(--ehf-ink);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ehf-billing-intro {
    color: #666;
    margin-bottom: 24px;
}

.ehf-billing-fields {
    max-width: 480px;
}

.ehf-field {
    margin-bottom: 20px;
}

.ehf-field label {
    display: block;
    font-weight: 600;
    color: var(--ehf-blue);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.ehf-field .req {
    color: var(--ehf-orange);
}

.ehf-field input,
.ehf-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ehf-line);
    border-radius: 8px;
    font-size: 0.98rem;
    background: #fff;
    transition: border-color 0.2s;
}

.ehf-field input:focus,
.ehf-field select:focus {
    border-color: var(--ehf-orange);
    outline: none;
}

.ehf-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ehf-muted);
}

.ehf-billing-submit {
    background: var(--ehf-orange);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ehf-billing-submit:hover {
    background: #cf4715;
}

.ehf-billing-errors {
    background: #fff5f5;
    border: 1px solid #ffd0d0;
    border-left: 3px solid #e53e3e;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    list-style: none;
}

.ehf-billing-errors li {
    color: #c53030;
    font-size: 0.9rem;
    margin: 4px 0;
}

.ehf-billing-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-left: 3px solid #38a169;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #276749;
    font-size: 0.92rem;
}

.ehf-invoices-empty {
    background: var(--ehf-soft);
    border: 1px dashed var(--ehf-line);
    border-radius: var(--ehf-radius);
    padding: 32px;
    text-align: center;
    color: #666;
}

.ehf-invoices-empty p {
    margin: 4px 0;
}

/* =============================================
   Previsualización subdominio (checkout)
   ============================================= */

.ehf-domain-preview {
    background: var(--ehf-soft);
    border: 1px solid var(--ehf-line);
    border-left: 3px solid var(--ehf-orange);
    border-radius: var(--ehf-radius);
    padding: 16px 18px;
    margin: 16px 0;
}

.ehf-dp-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.ehf-dp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ehf-dp-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ehf-ink);
    font-family: "SF Mono", Menlo, monospace;
}

.ehf-dp-refresh {
    background: #fff;
    border: 1px solid var(--ehf-line);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ehf-blue);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ehf-dp-refresh:hover {
    border-color: var(--ehf-orange);
    background: var(--ehf-soft);
}

.ehf-dp-hint {
    margin-top: 10px !important;
    font-size: 0.8rem !important;
    color: var(--ehf-muted) !important;
}

/* Validación inline del dominio en checkout */
.ehf-dp-validation {
    margin-top: 6px;
    font-size: 0.84rem;
    font-weight: 600;
}

.ehf-dp-validation.ehf-dp-error {
    color: #c53030;
}

.ehf-dp-validation.ehf-dp-ok {
    color: #276749;
}
