/*
 Theme Name:   Storefront - Hijo
 Theme URI:    https://docentesproactivos.com/
 Description:  Tema hijo para personalizar el tema Storefront.
 Author:       Ignacio Carbonati
 Author URI:   https://docentesproactivos.com/
 Template:     storefront
 Version:      1.0.0
*/

/* --- Aquí comenzará tu código CSS personalizado --- */
/* --- KIT DE ESTILO GLOBAL - DOCENTES PROACTIVOS --- */

/* 1. VARIABLES DE COLOR Y ESTILO */
:root {
    --color-primario: #FFC700; /* Amarillo DP */
    --color-oscuro: #1E1E1E;   /* Gris oscuro DP */
    --color-blanco: #FFFFFF;
    --color-fondo: #f4f6f9;    /* Un gris muy suave para el fondo */
    --color-texto: #333333;
    --radio-borde: 12px;
    --fuente-principal: 'Poppins', sans-serif;
}

/* 2. ESTILOS GENERALES DEL CUERPO (BODY) */
body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* 3. ESTILOS PARA TÍTULOS */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-principal);
    font-weight: 700;
    color: var(--color-oscuro);
}
h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }

/* 4. ESTILO UNIVERSAL PARA BOTONES */
.button, 
.elementor-button,
input[type="submit"] {
    background-color: var(--color-primario) !important;
    color: var(--color-oscuro) !important;
    border-radius: var(--radio-borde) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 14px 30px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.3);
    line-height: 1.2 !important;
}

.button:hover, 
.elementor-button:hover,
input[type="submit"]:hover {
    background-color: #e6b300 !important;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 199, 0, 0.4);
}

/* 5. CLASE REUTILIZABLE PARA TARJETAS (CARDS) */
.dp-card {
    background-color: var(--color-blanco);
    border: 1px solid #e9e9e9;
    border-radius: var(--radio-borde);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- ESTILOS ESPECÍFICOS PARA LA PÁGINA "MI CUENTA" DE WOOCOMMERCE --- */

/* 1. ESTRUCTURA GENERAL FLEXBOX */
.woocommerce-account .woocommerce {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 1;
    min-width: 250px;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 3;
    min-width: 300px;
}

/* 2. MENÚ DE NAVEGACIÓN LATERAL */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background-color: #1E1E1E;
    border-radius: 12px;
    padding: 15px !important;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    padding: 0;
    margin: 0 0 5px 0;
    list-style-type: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: #FFFFFF !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #333333;
    color: #FFC700 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
    border-left: 4px solid #FFC700;
    background-color: #333333;
    border-radius: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #FFC700 !important;
    font-weight: 700;
    background-color: transparent !important;
}

/* 3. ÁREA DE CONTENIDO PRINCIPAL */
.woocommerce-account .woocommerce-MyAccount-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f0f0f0 !important;
}

/* --- ARREGLOS FINALES PARA EL FORMULARIO DE LOGIN --- */
body.not-logged-in .woocommerce-account .woocommerce {
    display: block !important;
}
#customer_login {
    max-width: 500px !important;
    margin: 40px auto !important;
    width: 100% !important;
}
#customer_login form.login input.input-text {
    background-color: #333333 !important;
    color: #FFC700 !important;
    border: 1px solid #555555 !important;
}
.woocommerce-account .woocommerce form .form-row label {
    color: #f0f0f0 !important;
}

/* --- ESTILOS PARA CONTENIDO INTERNO DE MI CUENTA --- */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    background-color: #333 !important;
    border-top-color: var(--color-primario) !important;
    border-radius: 0 0 var(--radio-borde) var(--radio-borde) !important;
    color: #f0f0f0 !important;
    display: flex;
    align-items: center;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info p {
    color: #f0f0f0 !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
    color: #f0f0f0 !important;
    margin-right: 1em;
}
body .woocommerce .woocommerce-MyAccount-content form label {
    color: #f0f0f0 !important;
}
body .woocommerce .woocommerce-MyAccount-content input[type="text"],
body .woocommerce .woocommerce-MyAccount-content input[type="email"],
body .woocommerce .woocommerce-MyAccount-content input[type="password"],
body .woocommerce .woocommerce-MyAccount-content input[type="tel"],
body .woocommerce .woocommerce-MyAccount-content select,
body .woocommerce .woocommerce-MyAccount-content textarea {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: var(--radio-borde) !important;
    padding: 12px 15px !important;
}
body .woocommerce .woocommerce-MyAccount-content input:disabled {
    background-color: #2a2a2a !important;
    color: #888 !important;
}
body .woocommerce .woocommerce-MyAccount-content form legend {
    color: var(--color-primario) !important;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 15px;
}
body.woocommerce-account .woocommerce-MyAccount-content fieldset {
    background-color: transparent;
    border: none;
    padding: 20px 0;
    margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
    background-color: transparent;
}

/* --- ESTILOS DEFINITIVOS PARA TABLAS Y CONTENIDO DE "MI CUENTA" --- */

/* 1. ESTRUCTURA DE LA TABLA */
.woocommerce-MyAccount-content .shop_table {
    background-color: transparent !important;
    border: none !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.woocommerce-MyAccount-content .shop_table th {
    color: var(--color-primario) !important;
    text-transform: uppercase;
    font-weight: bold;
    padding: 15px !important;
    background-color: #333 !important;
    border: none !important;
    text-align: left;
}
.woocommerce-MyAccount-content .shop_table thead th:first-child {
    border-top-left-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table thead th:last-child {
    border-top-right-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table tbody td {
    background-color: #1E1E1E !important;
    color: #f0f0f0 !important;
    vertical-align: middle;
    padding: 20px 15px !important;
    border: none !important;
}
.woocommerce-MyAccount-content .shop_table tbody tr:first-child td:first-child {
    border-top-left-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table tbody tr:first-child td:last-child {
    border-top-right-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radio-borde);
}
.woocommerce-MyAccount-content .shop_table tfoot th,
.woocommerce-MyAccount-content .shop_table tfoot td {
    color: #f0f0f0 !important;
    font-weight: bold;
    padding: 15px !important;
    border-top: 1px solid #444 !important;
    background-color: #1E1E1E !important;
}
.woocommerce-MyAccount-content .shop_table tfoot .woocommerce-Price-amount {
    color: var(--color-primario) !important;
    font-size: 1.2em;
}

/* 2. ESTILO PARA EL TEXTO SUPERIOR (RESUMEN DEL PEDIDO) */
.woocommerce-MyAccount-content .woocommerce-order-overview {
    background-color: #1E1E1E;
    padding: 25px;
    border-radius: var(--radio-borde);
    margin-bottom: 30px;
    border-left: 5px solid var(--color-primario);
    font-size: 1.1em;
    line-height: 1.6;
}
.woocommerce-MyAccount-content .woocommerce-order-overview mark {
    background-color: transparent;
    color: var(--color-primario);
    font-weight: bold;
}

/* 3. MANEJO PRECISO DE ENLACES Y BOTÓN "VER" */
.woocommerce-MyAccount-content a {
    color: #f0f0f0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.woocommerce-MyAccount-content .woocommerce-orders-table__cell--order-number a,
.woocommerce-MyAccount-content .woocommerce-order-overview mark a,
.woocommerce-MyAccount-content ul li a {
    color: var(--color-primario) !important;
}
.woocommerce-MyAccount-content a:hover {
    color: #fff !important;
}
body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell--actions a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    min-width: 120px;
    font-weight: bold !important;
    line-height: 1.2 !important;
    text-align: center;
}
body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell--actions a.button::after {
   content: '→';
   margin-left: 8px;
   font-weight: bold;
   transition: transform 0.2s ease-in-out;
}
body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell--actions a.button:hover::after {
    transform: translateX(5px);
}

/* 4. RESPONSIVE: Ajuste para móviles */
@media (max-width: 768px) {
  .woocommerce-orders-table__cell {
    display: block;
    text-align: right !important;
    padding-left: 50% !important;
    position: relative;
  }
  .woocommerce-orders-table__cell::before {
    content: attr(data-title);
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: var(--color-primario);
  }
  .woocommerce-MyAccount-content .shop_table thead {
      display: none;
  }
}