/*
Theme Name: Datosfera Hello Elementor Child
Theme URI: https://datosfera.co
Description: Tema hijo para Hello Elementor con personalizaciones generales y utilidades.
Author: Datosfera
Author URI: https://www.datosfera.co
Template: hello-elementor
Version: 1.2
*/

/* Estilos para el Pie de Página */
footer {
    background-color: #333; /* Fondo oscuro para contraste con el contenido */
    color: #fff; /* Texto blanco para legibilidad */
    text-align: center; /* Centrado del contenido del pie de página */
    padding: 20px 0; /* Espaciado interno vertical */
    font-size: 14px; /* Tamaño de fuente menor para el pie de página */
}

footer a {
    color: #ff5eb6; /* Color rosa para enlaces */
    text-decoration: none; /* Sin subrayado predeterminado */
}

footer a:hover {
    color: #0b51b7; /* Color azul en hover */
    text-decoration: underline; /* Subrayado en hover */
}

/* ✅ BOTÓN "FINALIZAR COMPRA" */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #c01021;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #a30e1b;
}


/* ✅ BOTÓN "APLICAR CUPÓN" */
.woocommerce-cart .coupon button {
    background-color: #c01021;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s ease all;
}

.woocommerce-cart .coupon button:hover {
    background-color: #a30e1b;
}


/* ✅ CAMPO DE TEXTO "CÓDIGO DE CUPÓN" */
.woocommerce-cart .coupon input#coupon_code {
    width: 280px;
    max-width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 10px;
    box-sizing: border-box;
}


/* ✅ ESTILO GENERAL DE LA TABLA DEL CARRITO */
.woocommerce table.shop_table {
    border: none;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px;
    border: 1px solid #e5e5e5;
    text-align: center;
}


/* ✅ COLOR DEL ENLACE DEL PRODUCTO EN EL CARRITO */
.woocommerce-cart-form__cart-item td.product-name a {
    font-weight: bold;
    color: #c01021;
}


/* ✅ ESTILOS DE LA SECCIÓN "TOTALES DEL CARRITO" */
.woocommerce-cart .cart-collaterals .cart_totals {
    border: 1px solid #e3e3e3;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background-color: #fff;
}


/* ✅ RADIO BUTTONS DE MÉTODOS DE ENVÍO */
.woocommerce-cart .shipping input[type="radio"],
.woocommerce-cart .cart-collaterals .shipping input[type="radio"] {
    accent-color: #c01021;
}


/* ✅ CONTENEDOR DE MÉTODOS DE ENVÍO */
.woocommerce-cart .cart-collaterals .shipping {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left !important;
}


/* ✅ ALINEACIÓN DE LOS LABELS Y TEXTOS DE ENVÍO */
.woocommerce-cart .cart-collaterals .shipping td {
    text-align: left !important;
}

.woocommerce-cart .cart-collaterals .shipping label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

@media (max-width: 768px) {
    .woocommerce-cart .cart-coupon {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-cart .coupon input#coupon_code,
    .woocommerce-cart .coupon button {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .woocommerce-cart .coupon {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* Campos del formulario más compactos */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Estilo para los labels */
.woocommerce form .form-row label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    font-size: 14px;
}

/* Reducción del espacio vertical entre campos */
.woocommerce form .form-row {
    margin-bottom: 16px;
}

/* Agrupar mejor la sección de “Enviar a otra dirección” */
#ship-to-different-address {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Hacer más visible el título de sección */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

/* Tamaño de campos responsivos */
@media (max-width: 768px) {
    .woocommerce form .form-row {
        width: 100% !important;
    }
}

.woocommerce form .form-row input,
.woocommerce form .form-row textarea {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.woocommerce form .form-row.required label:after {
    color: #c01021;
    font-weight: bold;
}

.woocommerce-checkout-review-order-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
}

.woocommerce-checkout-review-order-table thead {
    background-color: #f9f9f9;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 16px;
    vertical-align: middle;
    text-align: left;
}

.woocommerce-checkout-review-order-table tr.cart_item:nth-child(even) {
    background-color: #fdfdfd;
}

.woocommerce-checkout-review-order-table tfoot td {
    font-weight: bold;
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.woocommerce-checkout-review-order-table tfoot td:last-child {
    text-align: right;
}

.woocommerce-checkout-review-order-table .shipping td {
    font-style: italic;
    color: #444;
}

/* Estilos para los radios de envío */
.woocommerce-shipping-methods label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.woocommerce-shipping-methods input[type="radio"] {
    margin-right: 8px;
}

#place_order,
.woocommerce #payment #place_order {
    background-color: #c01021 !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold;
    transition: background 0.3s ease;
}

#place_order:hover,
.woocommerce #payment #place_order:hover {
    background-color: #a00d1b !important; /* tono más oscuro para hover */
}

@media (max-width: 768px) {
  .woocommerce #place_order {
    background-color: #6f42c1 !important; /* Por ejemplo, un color morado */
  }
}

/* Aplica el color rojo al botón en todos los dispositivos */
.woocommerce #place_order {
  background-color: #c01021 !important;
  border-color: #c01021 !important;
  color: #fff !important;
}

