/*
Theme Name: Kodelr
Theme URI: https://kodelr.example/
Author: Kodelr
Author URI: https://kodelr.example/
Description: Tema ultra-minimalista estilo Notion, enfocado en contenido, semántica y SEO.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kodelr
Tags: minimal, seo, content-focused, blog
*/

/* ===========================
   VARIABLES CSS
   =========================== */
:root {
  --max-width: 900px;
  --content-gap: 1.25rem;
  --base-font: system-ui;
  --text-color: #dcdcdc;
  --muted: #afafaf;
  --accent: #fff;
  --bg: #212121;
}

/* ===========================
   RESET Y BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--base-font);
  color: var(--text-color);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
    color: #323232;
    border: 1px solid;
}

/* ===========================
   ENLACES
   =========================== */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   LAYOUT PRINCIPAL
   =========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  flex: 1;
}

/* Clear floats */
.entry-content:after {
  content: "";
  display: table;
  clear: both;
}

/* ===========================
   TIPOGRAFÍA
   =========================== *//*
h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

h2 {
  font-size: 22px;
  text-align: left;
  margin-top: 15px;
  text-transform: initial;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  text-align: left;
  margin-top: 15px;
  margin-bottom: 5px;
  text-transform: initial;
}

h4 {
  font-size: 15px;
  margin: 5px 0;
}

h5 {
  margin: 0;
  font-size: 14px;
}

p, li {
  font-size: 14px;
  margin-top: 0;
}

ul {
  list-style: disc;
  margin-left: 15px;
  margin-bottom: 15px;
}

/* ===========================
   BLOCKQUOTE
   =========================== */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgb(0 0 0 / 40%);
  font-style: italic;
  color: var(--text-color);
}

blockquote p {
  margin: 0;
}

/* ===========================
   HEADER DEL SITIO
   =========================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--content-gap);
  flex-wrap: wrap;
  background: #131313;
  padding: 20px;
  border-radius: 10px;
}

.site-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
}

.site-title a {
  text-decoration: none;
  color: #AFAFAF;
}

.site-title a:hover {
  color: #fff;
}

.site-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.3rem 0px 0px 5px;
  flex: 1;
}

/* ===========================
   NAVEGACIÓN PRINCIPAL
   =========================== */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: .5rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #AFAFAF;
  text-decoration: none;
  font-size: 0.9rem;
  padding: .25rem .75rem;
  border-radius: .5rem;	
}

.nav-menu a:hover {
  color: #fff;
  background-color: #303030;
}

/* ===========================
   FOOTER DEL SITIO
   =========================== */
.site-footer {
  margin-top: 3rem;
  padding: 1rem 0 1rem;
  border-top: 1px solid #323232;
  width: 100%;
  max-width: var(--max-width);
}

.footer-nav {
  text-align: center;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: .25rem .75rem;
  border-radius: .5rem;
}

.footer-menu a:hover {
  color: var(--accent);
  background-color: #303030;	
}

/* ===========================
   BOTONES Y FORMULARIOS
   =========================== */
.input-text {
  height: 37px !important;
    background-color: #303030 !important;
    border: 1px solid #323232 !important;
    color: #afafaf !important;
}

.button {
  display: inline-block;
  padding: .25rem .75rem;
  background-color: #3c3c3c !important;
  color: #aaa;
  text-decoration: none;
  border-radius: .5rem;
  font-weight: bold;
}

.button:hover {
  background-color: #464646 !important;
  color: #fff;
}

/* ===========================
   WOOCOMMERCE
   =========================== */

/* Payment Methods */
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: #131313;
  border-radius: 5px;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 1em;
  margin: 1em 0;
  font-size: 0.92em;
  border-radius: 2px;
  line-height: 1.5;
  background-color: #212121;
  color: #dcdcdc;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  content: "";
  display: block;
  border: 1em solid #212121;
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
  position: absolute;
  top: -0.75em;
  left: 0;
  margin: -1em 0 0 2em;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background-color: #131313;
    color: #afafaf;
}

/* Remove Link */
.woocommerce a.remove {
  display: block;
  font-size: 1.5em;
  height: 1em;
  width: 1em;
  text-align: center;
  line-height: 0.8;
  border-radius: 100%;
  color: var(--wc-red) !important;
  text-decoration: none;
  font-weight: 700;
  border: 0;
}

/* WooCommerce Buttons */
.woocommerce button.button {
  color: #aaa;
}

.woocommerce button.button:hover {
  color: #fff;
}

.woocommerce a.button {
  color: #aaa;
}

.woocommerce a.button:hover {
  color: #fff;
}

.woocommerce table.shop_table {
    border: 1px solid #323232;
}

.woocommerce table.shop_table td {
    border-top: 1px solid #323232;
}

.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
    border-top: 1px solid #323232;
}

.woocommerce .woocommerce-customer-details address {
    border: 1px solid #323232;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    background-color: #303030;
    border: 1px solid #323232;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: #afafaf;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #131313;
    color: #afafaf;
}

.select2-dropdown {
    color: #afafaf;
}

/* WooCommerce Layout */
.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
  float: left;
  width: 100%;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .button {
  margin: 0 0 0 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin-left: 0px;
    margin-bottom: 15px;
    display: flex;
    column-gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

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

.woocommerce-account .woocommerce-MyAccount-content{
	width: 100%;
}

/* ===========================
   CLASES DE ALINEACIÓN DE WORDPRESS
   =========================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1rem auto;
  text-align: center;
}

.alignnone {
  margin: 1rem 0;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 678px) {
  .col {
    flex: 1 1 100% !important;
  }
}