/* Exclusive styles for shop section and product selectors */

.shop-section {
    position: relative;
    background: var(--theme-bg-1);
    min-height: 100vh;
}

.product-details-section {
    position: relative;
    background: var(--theme-bg-1);
    min-height: 100vh;
}

.shop-section .sec-title h2,
.shop-section .sec-title h1 {
    position: relative;
    display: block;
    font-size: 3.1rem;
    line-height: 58px;
    font-weight: 600;
    color: var(--theme-gray-2);
    font-family: var(--title-font);
}

.product-details-header .sec-title h2,
.product-details-header .sec-title h1 {
    position: relative;
    display: block;
    font-size: 3.1rem;
    line-height: 58px;
    font-weight: 600;
    color: var(--theme-white);
    font-family: var(--title-font);
}

@media screen and (max-width: 970px) {

    .product-details-header .sec-title h2,
    .product-details-header .sec-title h1 {
        font-size: 2.2rem;
    }

    .shop-section .sec-title h2,
    .shop-section .sec-title h1 {
        font-size: 2.2rem;
    }
}

.product-details-section .product-details-header {
    background: var(--theme-gray-2);
    /* background: linear-gradient(rgb(0, 8, 79) 0%, rgb(0, 30, 120) 25%, rgb(0, 52, 166) 50%, rgb(0, 73, 216) 75%, rgb(0, 94, 255) 100%);*/
    /*background: linear-gradient(315deg, rgb(3, 67, 209) 0%, rgb(4, 80, 183) 20%, rgb(5, 96, 169) 40%, rgb(6, 112, 183) 60%, rgb(6, 128, 210) 80%, rgb(7, 142, 218) 100%);*/
    padding: 60px 0;
    color: var(--theme-white);
}

.product-details-section .product-details-header .author-info a {
    color: var(--theme-white);
    transition: all 0.5ms;
    text-decoration: none;
}

.product-details-section .product-details-header .author-info a:hover {
    color: var(--theme-yellow);
    transition: all 0.5ms;
}

.product-details-section .purchase-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.product-details-section .purchase-card .img-preview-container {
    background: linear-gradient(45deg, #004aad, #00337a);
    background: var(--theme-white);
    width: 100%;
    height: 250px;
    padding: 5px;
    overflow: hidden;
}

.product-details-section .purchase-card .img-preview-container img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    transition: all 50ms ease-in-out;
    border-radius: 15px;
}

.product-details-section .purchase-card .img-preview-container img:hover {
    opacity: 0.8;
    transition: all 50ms ease-in-out;
}

.product-details-section .purchase-card:hover .play-overlay {
    transform: scale(1.1);
}

.product-details-section .img-preview-container {
    background-color: #e9ecef;
    height: 220px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-details-section .play-overlay {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: transform 0.3s;
}


.product-details-section .section-title {
    border-left: 5px solid var(--theme-yellow);
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--theme-gray-2);
    font-family: var(--title-font);
}

.product-details-section .learning-box {
    background-color: var(--light-grey);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #dee2e6;
}

.product-details-section .curriculum-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.product-details-section .curriculum-item i {
    color: var(--primary-blue);
    margin-right: 15px;
}

.product-details-section .price-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--theme-blue-2);
}


.product-details-section .price-big .money-symbol {
    color: var(--theme-blue-2);
    font-size: 0.85rem;
    position: relative;
    font-weight: 700;
    top: -10px;
    padding-right: 5px;
}

.product-details-section .price-big .money-cents {
    color: var(--theme-blue-2);
    font-size: 0.85rem;
    position: relative;
    font-weight: 700;
    top: -10px;
    padding-left: 2px;
}

.product-details-section .price-big .cents-dot {
    display: none;
}


.product-details-section .badge-custom {
    background-color: rgba(255, 222, 89, 0.2);
    color: #856404;
    border: 1px solid var(--theme-yellow);
}

.product-details-section .badge-lang {
    background-color: var(--theme-blue-4);
    color: var(--theme-bg-1);
    font-weight: 200;
    font-size: 0.80rem;
    border-radius: 15px;
    border: 0;
}

.product-details-section .author-info .author-avatar {
    width: 48px;
    height: 48px;
    background: var(--theme-yellow);
    border-radius: 50%;
    color: var(--theme-gray-2);
    border: 0;
}


.sec-title .woocommerce-breadcrumb {
    position: relative;
    display: block;
    align-items: center;
    font-size: 0.9rem;
    line-height: 24px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 24px;
    margin-bottom: 9px;
    font-family: var(--title-font);
    color: var(--theme-yellow);
}

.sec-title .woocommerce-breadcrumb span {
    color: var(--theme-text-color);
}

.sec-title .woocommerce-breadcrumb a {
    text-decoration: none;
    color: var(--theme-text-color);
}

.shop-section input[type="text"],
.woocommerce-cart-form input[type="text"],
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="number"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields input[type="number"],
.woocommerce-address-fields input[type="password"],
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce-ResetPassword input[type="email"],
.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="password"],
.woocommerce-address-fields select,
.woocommerce-address-fields .select2-selection,
.shop-section input[type="email"],
.shop-section select,
.shop-section textarea {
    position: relative;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--theme-gray-3);
    background-color: var(--theme-white) !important;
    width: 100%;
    height: 60px;
    color: var(--theme-text-color);
    font-size: 18px;
    font-family: var(--text-font);
    font-weight: 400;
    font-style: normal;
    padding-left: 25px;
    padding-right: 35px;
    transition: all 500ms ease;
    box-shadow: 0px 0px 60px 0px rgba(2, 2, 2, 0.07);
}

.shop-section input[type="text"]:focus,
.shop-section input[type="email"]:focus,
.woocommerce-cart-form input[type="text"],
.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-EditAccountForm input[type="number"]:focus,
.woocommerce-EditAccountForm input[type="password"]:focus,
.woocommerce-form-login input[type="text"]:focus,
.woocommerce-form-login input[type="password"]:focus,
.woocommerce-form-login input[type="email"]:focus,
.woocommerce-ResetPassword input[type="email"]:focus,
.woocommerce-ResetPassword input[type="text"]:focus,
.woocommerce-ResetPassword input[type="password"]:focus,
.shop-section textarea:focus,
.shop-section select:focus {
    border-color: var(--theme-blue-3);
    outline: none;
}

@media (max-width: 970px) {

    .shop-select {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

.shop-section .card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s;
    background: var(--theme-white);
    /* box-shadow: 0px 0px 60px 0px rgba(2, 2, 2, 0.07);*/
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

.shop-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.shop-section .card-footer {
    border: 0;
    background-color: transparent;
}

.shop-section .card-body a:hover .card-title {
    color: var(--theme-yellow);
    transition: all 500ms ease;
}

.shop-section .badge-lang {
    background-color: var(--theme-blue-4);
    color: var(--theme-bg-1);
    font-weight: 200;
    font-size: 0.75rem;
    border-radius: 15px;
    border: 0;
}

.shop-section ul.tech-list {
    list-style: none;
    background: var(--theme-bg-1);
    padding: 5px;
    border-radius: 10px;
}

.shop-section ul.tech-list li {
    color: var(--text-color);
    font-size: 0.85rem;
}

.shop-section ul.tech-list li i {
    padding: 5px;
}

.shop-section .price-tag {
    color: var(--theme-blue-2);
    font-size: 1.8rem;
    font-weight: 800;
}

.shop-section .price-tag .money-symbol {
    color: var(--theme-blue-2);
    font-size: 0.85rem;
    position: relative;
    font-weight: 700;
    top: -10px;
    padding-right: 5px;
}

.shop-section .price-tag .money-cents {
    color: var(--theme-blue-2);
    font-size: 0.85rem;
    position: relative;
    font-weight: 700;
    top: -10px;
    padding-left: 2px;
}

.shop-section .price-tag .cents-dot {
    display: none;
}


.shop-section .author-text {
    color: var(--text-font);
    font-size: 0.9rem;
}

.shop-section .img-mockup {
    background-color: var(--theme-white);
    height: 200px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*border-bottom: 2px solid var(--theme-gray-3);*/
    padding: 5px;
}

.shop-section .img-mockup img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: top;
    border-radius: 15px;
    transition: all 50ms ease-in-out;
}

.shop-section .img-mockup img:hover {
    opacity: 0.8;
    transition: all 50ms ease-in-out;
}

.shop-section .img-mockup .offer-badge {
    position: absolute;
    top: 20px;
    left: 5px;
    background: linear-gradient(90deg, #ffa001 60%, #ff5e00 100%);
    color: #fff;
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 800;
    padding: 8px 28px 8px 20px;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    animation: badge-pop 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.shop-section .old-price {
    font-size: 0.95rem;
    color: #b0b0b0;
    text-decoration: line-through;
    font-weight: 400;
    vertical-align: middle;
    margin-left: 6px;
}

.shop-section a {
    text-decoration: none;
    color: initial;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notice--success,
.woocommerce-notices-wrapper .woocommerce-error {
    --bs-alert-padding-x: 2rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
    transition: all 500ms ease;
}

.woocommerce-notices-wrapper .woocommerce-message:focus-visible,
.woocommerce-notices-wrapper .woocommerce-error:focus-visible,
.woocommerce-notices-wrapper .woocommerce-info:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-message:focus-visible {
    outline: none;
}


/* WooCommerce Alert Variations */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-message,
.woocommerce-message.success,
.woocommerce-notice--success,
.woocommerce-message.woocommerce-success {
    background-color: var(--theme-gray-3);
    color: var(--theme-blue-2);
    border-left: 6px solid var(--theme-yellow);
    border-radius: 15px;
    box-shadow: 0 2px 16px 0 rgba(255, 160, 1, 0.08);
}

.woocommerce-message.error,
.woocommerce-error,
.woocommerce-message.woocommerce-error {
    background-color: #fff5f5;
    color: #b81c23;
    border-left: 6px solid #b81c23;
    border-radius: 15px;
    box-shadow: 0 2px 16px 0 rgba(184, 28, 35, 0.08);
}

.woocommerce-message.info,
.woocommerce-info,
.woocommerce-message.woocommerce-info {
    background-color: #4897e9;
    color: var(--theme-white);
    border-left: 6px solid var(--theme-blue-2);
    border-radius: 15px;
    box-shadow: 0 2px 16px 0 rgba(21, 97, 162, 0.08);
}

.woocommerce-message strong,
.woocommerce-error strong,
.woocommerce-info strong {
    font-weight: 700;
    color: inherit;
}

.woocommerce-notices-wrapper a {
    padding: 0 5px;
    color: var(--theme-blue-4);
    text-decoration: none;
    transition: all 50ms ease-in-out;
}

.woocommerce-notices-wrapper a:hover {
    color: var(--theme-yellow);
    transition: all 50ms ease-in-out;
}

p.woocommerce-result-count {
    margin-top: 3rem;
}

.woocommerce nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li :is(a, span) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    border-radius: 50%;
    margin-inline: 5px;
    text-decoration: none;
    border: 1px solid #ddd;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--theme-yellow);
    color: var(--theme-gray-2);
    border-color: var(--theme-yellow);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--theme-blue-3);
    color: var(--theme-white);
    border-color: var(--theme-blue-3);
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    border-radius: 4px;
    width: auto;
    padding: 0 15px;
}

/* Change the background color of the content area */
.woocommerce-account .woocommerce-MyAccount-content {
    background-color: var(--theme-white);
    padding: 20px;
    width: 100%;
    float: none;
}

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* --- BARRA LATERAL (Escritorio) --- */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    /* Ancho fijo del menú */
    background: var(--theme-white);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- ESTILO DE LOS ENLACES --- */
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    color: var(--theme-gray-2);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Efecto Hover y Activo */
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #f8f9fa;
    color: var(--theme-yellow);
    padding-left: 20px;
}

/* --- ÁREA DE CONTENIDO --- */
.woocommerce-MyAccount-content {
    flex: 1;
    /* Ocupa el resto del espacio */
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* --- RESPONSIVE (Móviles y Tablets) --- */
@media (max-width: 768px) {

    .woocommerce-MyAccount-navigation {
        flex: 1 0 100%;
        margin-bottom: 20px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 calc(50% - 10px);
        /* Dos columnas en móvil */
        border: 1px solid #eee;
        border-radius: 4px;
    }
}

.woocommerce-MyAccount-content a {
    text-decoration: none;
    color: var(--theme-blue-2);
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: var(--theme-yellow);
    transition: all 0.3s ease;
}



/* --- CONTENEDOR DE DIRECCIONES --- */
.woocommerce-Addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* --- ESTILO DE CADA COLUMNA (Facturación / Envío) --- */
.woocommerce-Addresses .woocommerce-Address {
    flex: 1 1 calc(50% - 20px);
    /* Dos columnas en escritorio */
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce-Addresses .woocommerce-Address:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* --- TÍTULOS DE LAS DIRECCIONES --- */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4f4f4;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- BLOQUE DE TEXTO (address) --- */
address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* --- RESPONSIVE: MÓVILES --- */
@media (max-width: 600px) {
    .woocommerce-Addresses {
        flex-direction: column;
    }

    .woocommerce-Addresses .woocommerce-Address {
        flex: 1 0 100%;
        padding: 20px;
    }

    .woocommerce-Address-title h3 {
        font-size: 1rem;
    }
}

.woocommerce form .password-input,
.woocommerce-page form .password-input {
    position: relative;
    /* Ensures the button is positioned relative to this container */
}

/* Ensure the input field has enough padding so the icon doesn't overlap the text */
.woocommerce form .password-input input[type="password"],
.woocommerce form .password-input input[type="text"] {
    padding-right: 2.5rem !important;
    /* Adjust as needed */
    margin-bottom: 0;
}

/* Style and position the actual "show password" button/icon */
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    position: absolute;
    right: 0.7em;
    /* Adjust horizontal position */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Fine-tuning vertical alignment */
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    color: #222;
    /* Default color for the eye icon */
    font-size: inherit;
}

/* Change the color when the password is displayed (optional) */
.woocommerce form .show-password-input.display-password {
    color: #999;
}

/* Add an icon using the WooCommerce or Dashicons font (if loaded) */
.woocommerce form .show-password-input::after {
    font-family: 'bootstrap-icons';
    /* Uses the default WooCommerce icon font */
    content: "\f340";
    /* The unicode for the eye icon in the WooCommerce font */
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    display: inline-block;
}

/* --- ESTILO GENERAL DE LA TABLA (Escritorio) --- */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Espaciado entre filas */
    margin: 0;
}

.woocommerce-orders-table thead {
    background-color: #f8f9fa;
}

.woocommerce-orders-table th {
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    color: #666;
}

.woocommerce-orders-table td {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Redondear bordes de las filas */
.woocommerce-orders-table tr td:first-child {
    border-left: 1px solid #eee;
    border-radius: 8px 0 0 8px;
}

.woocommerce-orders-table tr td:last-child {
    border-right: 1px solid #eee;
    border-radius: 0 8px 8px 0;
}

/* --- ESTADOS DEL PEDIDO (Badges) --- */
.woocommerce-orders-table__cell-order-status mark {
    background: #e1e1e1;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Colores personalizados por estado */
.order-completed mark {
    background: #d4edda !important;
    color: #155724 !important;
}

.order-processing mark {
    background: #fff3cd !important;
    color: #856404 !important;
}

.order-on-hold mark {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

/* --- RESPONSIVE: TRANSFORMACIÓN A CARDS --- */
@media screen and (max-width: 768px) {

    /* Ocultar el encabezado de la tabla */
    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table,
    .woocommerce-orders-table tbody,
    .woocommerce-orders-table tr,
    .woocommerce-orders-table td {
        display: block;
        width: 100%;
    }

    .woocommerce-orders-table tr {
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #eee;
    }

    .woocommerce-orders-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #f9f9f9;
    }

    /* Insertar etiquetas usando pseudoelementos */
    .woocommerce-orders-table td::before {
        content: attr(data-title);
        /* Usa el título original de la tabla */
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #888;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .woocommerce-orders-table__cell-order-actions {
        text-align: center !important;
        padding-left: 15px !important;
        background: #fcfcfc;
    }

    .woocommerce-orders-table__cell-order-actions .button {
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }
}

/* --- ESTILO GENERAL DE DESCARGAS (Escritorio) --- */
.woocommerce-table--order-downloads {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ececec;
    margin-bottom: 30px;
}

.woocommerce-table--order-downloads thead th {
    background-color: #f9f9f9;
    padding: 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #444;
    border-bottom: 2px solid #eee;
}

.woocommerce-table--order-downloads tbody td {
    padding: 20px;
    vertical-align: middle;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* --- ESTILO DEL BOTÓN DE DESCARGA --- */
.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file a.button {
    background-color: #28a745;
    /* Color verde éxito */
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file a.button:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
    transform: translateY(-1px);
}

/* --- RESPONSIVE: CARDS PARA MÓVILES --- */
@media screen and (max-width: 768px) {
    .woocommerce-table--order-downloads thead {
        display: none;
        /* Ocultar cabecera */
    }

    .woocommerce-table--order-downloads,
    .woocommerce-table--order-downloads tbody,
    .woocommerce-table--order-downloads tr,
    .woocommerce-table--order-downloads td {
        display: block;
        width: 100%;
    }

    .woocommerce-table--order-downloads tr {
        margin-bottom: 25px;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .woocommerce-table--order-downloads td {
        text-align: right;
        padding: 15px 20px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f4f4f4;
    }

    /* Etiquetas dinámicas */
    .woocommerce-table--order-downloads td::before {
        content: attr(data-title);
        position: absolute;
        left: 20px;
        font-weight: 700;
        color: #888;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Ajuste específico para el nombre del producto */
    .woocommerce-table--order-downloads .woocommerce-table__cell-download-product {
        background: #fdfdfd;
        text-align: center;
        padding-left: 20px;
    }

    .woocommerce-table--order-downloads .woocommerce-table__cell-download-product::before {
        display: none;
        /* Ocultamos la etiqueta en el nombre para que destaque solo el producto */
    }

    .woocommerce-table--order-downloads .woocommerce-table__cell-download-product a {
        font-size: 1.1rem;
        font-weight: bold;
        color: #222;
    }

    /* El botón ocupa todo el ancho en móvil */
    .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file {
        text-align: center !important;
        padding: 20px !important;
    }

    .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file a.button {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

/* --- CONTENEDOR DE DETALLES DEL PEDIDO --- */
.woocommerce-order-details {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.woocommerce-order-details__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #222;
    border-left: 4px solid var(--theme-yellow);
    padding-left: 15px;
}

/* --- ESTILO DE LA TABLA (Escritorio) --- */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce-table--order-details thead th {
    background: #f8f9fa;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 2px solid #eee;
}

.woocommerce-table--order-details tbody td,
.woocommerce-table--order-details tfoot td,
.woocommerce-table--order-details tfoot th {
    padding: 15px;
    border-bottom: 1px solid #f4f4f4;
}

/* Resaltar el total final */
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    background: #fdfdfd;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

/* --- RESPONSIVE: DISEÑO TIPO FACTURA MÓVIL --- */
@media screen and (max-width: 600px) {
    .woocommerce-table--order-details thead {
        display: none;
    }

    .woocommerce-table--order-details tbody tr,
    .woocommerce-table--order-details tfoot tr {
        display: block;
        padding: 15px 0;
        border-bottom: 2px solid #eee;
    }

    .woocommerce-table--order-details td,
    .woocommerce-table--order-details th {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px !important;
        border: none !important;
        text-align: right;
    }

    /* Etiquetas para móvil en la lista de productos */
    .woocommerce-table__product-name::before {
        content: "Producto:";
        font-weight: bold;
        color: #888;
    }

    .woocommerce-table__product-total::before {
        content: "Subtotal:";
        font-weight: bold;
        color: #888;
    }

    /* Ajuste para los totales (tfoot) */
    .woocommerce-table--order-details tfoot th {
        color: #888;
        font-weight: normal;
    }
}

/* --- ESTILO PARA NOTAS DEL PEDIDO --- */
.woocommerce-OrderUpdate {
    background: #fff9e6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    list-style: none;
    border: 1px solid #ffeeba;
}

.woocommerce-OrderUpdate__meta {
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.woocommerce-order-overview.order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 0;
    list-style: none;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

/* --- CADA ÍTEM DEL RESUMEN (Pedido, Fecha, Total, etc.) --- */
.woocommerce-order-overview.order_details li {
    padding: 20px;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #777;
    margin: 0 !important;
    /* Quitar márgenes por defecto de WC */
}

/* Eliminar el borde del último elemento en escritorio */
.woocommerce-order-overview.order_details li:last-child {
    border-right: none;
}

/* Títulos de los datos (Pedido:, Fecha:, etc.) */
.woocommerce-order-overview.order_details li strong {
    display: block;
    color: #222;
    font-size: 1.1rem;
    margin-top: 8px;
    text-transform: none;
    word-break: break-word;
}

/* --- COLORES DE ESTADO EN EL RESUMEN --- */
.woocommerce-order-overview.order_details li.order strong {
    color: #007cba;
    /* Resalta el número de pedido */
}

.woocommerce-order-overview.order_details li.total strong span.woocommerce-Price-amount {
    color: #28a745;
    /* Color verde para el precio total */
    font-weight: 800;
}

/* --- RESPONSIVE: MÓVILES (Layout de 2 columnas o 1) --- */
@media screen and (max-width: 768px) {
    .woocommerce-order-overview.order_details {
        grid-template-columns: 1fr 1fr;
        /* Dos columnas en tablets/móviles grandes */
        border: none;
        background: transparent;
        gap: 10px;
    }

    .woocommerce-order-overview.order_details li {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px 10px;
    }
}

@media screen and (max-width: 480px) {
    .woocommerce-order-overview.order_details {
        grid-template-columns: 1fr;
        /* Una sola columna en móviles pequeños */
    }
}

/* --- CONTENEDOR DE DETALLES DEL CLIENTE --- */
.woocommerce-customer-details {
    margin-top: 40px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.woocommerce-customer-details h2 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

/* --- LISTA DE CONTACTO (Email y Teléfono) --- */
.woocommerce-customer-details address {
    border: none;
    padding: 0;
    margin-bottom: 30px;
    font-style: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-customer-details .woocommerce-customer-details--phone {
    flex: 1 1 calc(50% - 15px);
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    color: #555;
    border: 1px solid #f0f0f0;
}

/* --- BLOQUE DE DIRECCIONES (Facturación y Envío) --- */
.woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: #fff;
    padding: 0;
}

.woocommerce-column__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #007cba;
    font-weight: bold;
}

/* Estilo para los datos de la dirección */
.woocommerce-column--addresses address {
    display: block;
    line-height: 1.8;
    color: #666;
    background: transparent;
    padding: 0;
    border: none;
}

/* --- RESPONSIVE: AJUSTE PARA MÓVILES --- */
@media screen and (max-width: 768px) {
    .woocommerce-customer-details {
        padding: 20px;
    }

    .woocommerce-customer-details address {
        flex-direction: column;
    }

    .woocommerce-customer-details .woocommerce-customer-details--email,
    .woocommerce-customer-details .woocommerce-customer-details--phone {
        flex: 1 0 100%;
        text-align: center;
    }

    .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 20px;
    }

    .woocommerce-column--billing-address,
    .woocommerce-column--shipping-address {
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
}

/** --- CONTENEDOR DE LOGIN / LOST PASSWORD --- */
.woocommerce-account .woocommerce {
    display: flex;
    justify-content: center;
    padding: 40px 10px;
}

.woocommerce-form-login,
.woocommerce-ResetPassword {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    padding: 40px !important;
    background: #ffffff;
    border: 0;
    border-radius: 12px;
}

/* --- TÍTULOS Y ETIQUETAS --- */
.woocommerce-form-login label,
.woocommerce-ResetPassword label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--theme-gray-2);
}

/*
/* --- CAMPOS DE ENTRADA (INPUTS) --- 
.woocommerce-form-login .input-text,
.woocommerce-ResetPassword .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}
*/

/*
.woocommerce-form-login .input-text:focus,
.woocommerce-ResetPassword .input-text:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}
*/
/*
/* --- BOTÓN DE ACCIÓN --- 
.woocommerce-form-login .button,
.woocommerce-ResetPassword .button {
    width: 100%;
    padding: 15px !important;
    background-color: #007cba !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    margin-top: 10px;
    cursor: pointer;
}


.woocommerce-form-login .button:hover,
.woocommerce-ResetPassword .button:hover {
    background-color: #006799 !important;
}

*/

/* --- CHECKBOX Y "RECUÉRDAME" --- */
.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* --- ENLACES (PERDÍ CONTRASEÑA) --- */
.woocommerce-LostPassword {
    margin-top: 20px;
    text-align: center;
}

.woocommerce-LostPassword a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: underline;
}

.woocommerce-LostPassword a:hover {
    color: #007cba;
}



@media screen and (max-width: 480px) {

    .woocommerce-form-login,
    .woocommerce-ResetPassword {
        padding: 25px !important;
        border: none;
        box-shadow: none;
    }

    .woocommerce-form-login .button,
    .woocommerce-ResetPassword .button {
        padding: 12px !important;
    }
}

.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1 1 calc(50% - 20px);
    background: #ffffff;
    padding: 35px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* --- TÍTULOS DE SECCIÓN --- */
.woocommerce-account h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ESTILOS COMPARTIDOS (Inputs y Botones) --- */
.woocommerce-form-login .input-text,
.woocommerce-form-register .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.woocommerce-form-login .input-text:focus,
.woocommerce-form-register .input-text:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}


/* --- TEXTO DE PRIVACIDAD --- */
.woocommerce-privacy-policy-text {
    font-size: 0.85rem;
    color: #777;
    margin: 15px 0;
    line-height: 1.5;
}

/* --- RESPONSIVE: APILADO EN MÓVILES --- */
@media screen and (max-width: 850px) {

    .woocommerce-account .u-column1,
    .woocommerce-account .u-column2 {
        flex: 1 0 100%;
        padding: 25px;
    }

    /* Opcional: añadir una línea divisoria o texto "O" */
    .woocommerce-account .u-column1 {
        position: relative;
        margin-bottom: 20px;
    }
}