/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/
 Description:  Hello Elementor Child Theme
 Author:       Developer
 Author URI:   https://elementor.com/
 Template:     hello-elementor
 Version:      1.0.3
 Text Domain:  hello-elementor-child
*/

/* Custom styles below */


/* ── sp_info shortcode badges ── */
.sp-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.sp-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
}

.sp-info-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.sp-info-icon svg {
    vertical-align: middle;
}

.sp-imagen-wrap {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
}

.sp-imagen-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    border-radius: inherit;
}

.sp-imagen {
    display: block;
    width: 100%;
    height: 448px !important;
    object-fit: cover;
    border-radius: inherit;
}

.tren-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 110px;
}

.item-listado .tren-image {
    max-height: none !important;
    height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 20px 20px 0px 0px;
}

.tren-price {
    color: #00C2E8;
    font-weight: 500;
}

.badge-category {
    border-radius: 100px;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    background-color: #FF4F5E;
}

.item-listado .tren-price {
    color: #00C2E8 !important;
}

#custom-order-form {
    max-width: 300px;
    margin-left: auto;
}

#custom-order-form select {
    border-color: #e5e7eb;
}

body:not(.home) .menu-hamburguesa svg {
    color: #000;
}

.elementor-widget-woocommerce-cart .e-carts-total {
    box-shadow: 0 .375rem 1rem #0000001f !important;
    border-radius: 20px !important;
}

.woocommerce-cart-form .e-shop-table {
    border: none;
}

@media(max-width:600px) {
    .tren-image {
        max-height: 250px;
    }

    #custom-order-form {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════
   MY ACCOUNT — Panel completo
   Color primario: #00C2E8
═══════════════════════════════════════════════════ */

/* Variables locales */
:root {
    --sg-primary: #00C2E8;
    --sg-primary-dark: #009bbf;
    --sg-primary-light: #e6f9fd;
    --sg-text: #1a1a2e;
    --sg-muted: #6b7280;
    --sg-border: #e5e7eb;
    --sg-bg: #f9fafb;
    --sg-radius: 12px;
    --sg-radius-sm: 8px;
    --sg-shadow: 0 2px 12px rgba(0, 194, 232, .12);
}

/* ── Layout general ── */
.woocommerce-account .woocommerce,
.woocommerce-page.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    align-items: flex-start !important;
}

.woocommerce-account .woocommerce .woocommerce-form-login {
    flex-direction: column !important;
}

.woocommerce-account .woocommerce h2 {
    text-align: center !important;
    width: 100%;
}

/* ── Navegación lateral ── */
.woocommerce-MyAccount-navigation {
    width: 220px !important;
    flex-shrink: 0 !important;
    background: #fff !important;
    border-radius: var(--sg-radius) !important;
    box-shadow: var(--sg-shadow) !important;
    overflow: hidden !important;
    padding: 8px 0 !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--sg-border) !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 13px 20px !important;
    color: var(--sg-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background .15s, color .15s !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: var(--sg-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* ── Área de contenido ── */
.woocommerce-MyAccount-content {
    flex: 1 !important;
    min-width: 0 !important;
    background: #fff !important;
    border-radius: var(--sg-radius) !important;
    box-shadow: var(--sg-shadow) !important;
    padding: 32px !important;
}

/* ── Títulos dentro del panel ── */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: var(--sg-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--sg-primary-light) !important;
}

/* ── Botones ── */
.woocommerce-account .button,
.woocommerce-account .woocommerce-button,
.woocommerce-account input[type="submit"],
.woocommerce-account button[type="submit"],
.woocommerce-account .wc-block-components-button {
    background-color: var(--sg-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 100px !important;
    padding: 11px 26px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background .2s !important;
    line-height: 1.4 !important;
}

.woocommerce-account .button:hover,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account input[type="submit"]:hover,
.woocommerce-account button[type="submit"]:hover {
    background-color: var(--sg-primary-dark) !important;
    color: #fff !important;
}

/* Botón secundario / outline */
.woocommerce-account .button.alt,
.woocommerce-account .woocommerce-button.button-secondary {
    background-color: transparent !important;
    color: var(--sg-primary) !important;
    border: 2px solid var(--sg-primary) !important;
}

.woocommerce-account .button.alt:hover {
    background-color: var(--sg-primary) !important;
    color: #fff !important;
}

/* ── Formularios: login y registro ── */
.woocommerce-account .woocommerce-form,
.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
    background: var(--sg-bg) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius) !important;
    padding: 28px !important;
    max-width: 560px !important;
    margin: 0 auto;
    width: 100%;
}

.woocommerce-account .woocommerce-form-row,
.woocommerce-account p.form-row,
.woocommerce-account .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .form-row label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--sg-text) !important;
    margin-bottom: 6px !important;
}

.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce-account input[type="number"],
.woocommerce-account textarea,
.woocommerce-account select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-sm) !important;
    font-size: 14px !important;
    color: var(--sg-text) !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-sizing: border-box !important;
}

.woocommerce-account input[type="text"]:focus,
.woocommerce-account input[type="email"]:focus,
.woocommerce-account input[type="password"]:focus,
.woocommerce-account input[type="tel"]:focus,
.woocommerce-account input[type="number"]:focus,
.woocommerce-account textarea:focus,
.woocommerce-account select:focus {
    border-color: var(--sg-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 194, 232, .15) !important;
}

/* checkbox "Recordarme" */
.woocommerce-account .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: var(--sg-muted) !important;
    cursor: pointer !important;
}

.woocommerce-account input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--sg-primary) !important;
}

/* Link "¿Perdiste tu contraseña?" */
.woocommerce-account .woocommerce-LostPassword a,
.woocommerce-account .lost_password a {
    color: var(--sg-primary) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-LostPassword a:hover,
.woocommerce-account .lost_password a:hover {
    text-decoration: underline !important;
}

/* ── Formulario de direcciones ── */
.woocommerce-account .woocommerce-address-fields .form-row,
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 16px !important;
}

/* Direcciones guardadas (tarjetas) */
.woocommerce-account .woocommerce-Addresses address,
.woocommerce-account .woocommerce-column address {
    background: var(--sg-bg) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius) !important;
    padding: 20px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--sg-text) !important;
}

.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--sg-text) !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}

.woocommerce-account .woocommerce-Address-title .edit {
    font-size: 12px !important;
    color: var(--sg-primary) !important;
    margin-left: 8px !important;
}

/* ── Tabla de pedidos ── */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}

.woocommerce-account table.woocommerce-orders-table thead th,
.woocommerce-account table.shop_table thead th {
    background: var(--sg-primary-light) !important;
    color: var(--sg-text) !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border: none !important;
}

.woocommerce-account table.woocommerce-orders-table tbody td,
.woocommerce-account table.shop_table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--sg-border) !important;
    color: var(--sg-text) !important;
    vertical-align: middle !important;
}

.woocommerce-account table.woocommerce-orders-table tbody tr:hover td,
.woocommerce-account table.shop_table tbody tr:hover td {
    background: var(--sg-bg) !important;
}

/* Badge de estado de pedido */
.woocommerce-account .woocommerce-orders-table__cell-order-status .woocommerce-order-status,
.woocommerce-account mark.order-status {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary) !important;
    border-radius: 100px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

/* ── Mensajes de notificación ── */
.woocommerce-account .woocommerce-message {
    background: var(--sg-primary-light) !important;
    border-left: 4px solid var(--sg-primary) !important;
    color: var(--sg-text) !important;
    border-radius: var(--sg-radius-sm) !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

.woocommerce-account .woocommerce-error {
    background: #fff0f0 !important;
    border-left: 4px solid #e53e3e !important;
    color: #c53030 !important;
    border-radius: var(--sg-radius-sm) !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    list-style: none !important;
    margin-bottom: 20px !important;
}

/* ── Detalles de un pedido individual ── */
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
    margin-top: 24px !important;
}

.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sg-text) !important;
    border-bottom: 2px solid var(--sg-primary-light) !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
}

/* ── Perfil / edición de cuenta ── */
.woocommerce-account fieldset {
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-sm) !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}

.woocommerce-account fieldset legend {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--sg-primary) !important;
    padding: 0 8px !important;
}

.woocommerce-Addresses {
    margin-top: 100px;
}

.woocommerce-MyAccount-content header {
    position: static !important;
}

.subcategorias_tren_regional {
    max-height: 0;
    overflow: hidden;
    list-style: none !important;
    transition: max-height 0.4s ease;
    padding: 0;
}

.subcategorias_tren_regional.abierto {
    max-height: 540px;
    padding-bottom: 5px;
}

.subcategorias_tren_regional a {
    color: #000;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.subcategorias_tren_regional a:hover {
    text-decoration: underline;
    color: #FF4F5E;
}

.pases-de-tren-regional-btn:hover{
    cursor: pointer;
}

.pases-de-tren-regional-btn.active {
    transform: rotate(180deg);
}

.woocommerce-form-login{
    margin-bottom: 60px !important;
}

body.woocommerce-account .woocommerce-notices-wrapper{
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    width: 100%;
}
body.woocommerce-account .woocommerce-error::before{
    display: none !important
}

.woocommerce-MyAccount-navigation br{
    display: none !important;
}

form.checkout .e-woocommerce-form-login-submit{
    width: fit-content;
    margin: 0px 10px;
}

.woocommerce-privacy-policy-text{
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
    }

    .woocommerce-MyAccount-navigation {
        width: 100% !important;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .woocommerce-MyAccount-navigation ul li {
        border-bottom: none !important;
        border-right: 1px solid var(--sg-border) !important;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .woocommerce-MyAccount-content {
        padding: 20px !important;
    }

    .woocommerce-account .woocommerce-form,
    .woocommerce-account form.login,
    .woocommerce-account form.register {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .woocommerce-account table.woocommerce-orders-table,
    .woocommerce-account table.shop_table {
        font-size: 12px !important;
    }

    .woocommerce-account table.woocommerce-orders-table thead th,
    .woocommerce-account table.shop_table thead th,
    .woocommerce-account table.woocommerce-orders-table tbody td,
    .woocommerce-account table.shop_table tbody td {
        padding: 8px 10px !important;
    }

    .woocommerce-account .woocommerce, .woocommerce-page.woocommerce-account .woocommerce{
     gap: 0 !important;   
    }
    body.woocommerce-account .woocommerce-notices-wrapper{
        margin-top: 0;
    }


}

@media(max-width:1024px){
    .pases-de-tren-regional-btn{
        display: none;
    }
    .subcategorias_tren_regional{
        max-height: 540px;
    }
}