/*
Theme Name: Kodelr
Theme URI: https://kodelr.com/
Author: Kodelr
Author URI: https://kodelr.com/
Description: Tema minimalista limpio inspirado en el diseño moderno, enfocado en contenido y simplicidad.
Version: 2.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, clean, modern, white, content-focused
*/

/* ===========================
   RESET Y BASE
   =========================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #37352f;
  background: #ffffff;
  font-size: 16px;
}

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

/* ===========================
   LAYOUT PRINCIPAL
   =========================== */
.container {
  max-width: 920px;
  margin: 0 auto;
}

/* ===========================
   HEADER
   =========================== */
header {
  padding: 10px 0 0px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: #37352f;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 30px 0px;
    font-size: 25px;
}

.header-nav {
  margin-left: auto;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu li {
  margin: 0;
}

.header-menu a {
  color: rgba(55, 53, 47, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.header-menu a:hover {
  color: #37352f;
}

.header-menu .current-menu-item a,
.header-menu .current_page_item a,
.header-menu .current-page-ancestor a {
  color: #37352f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   TIPOGRAFÍA
   =========================== */

hr {
  border: none;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
  margin: 32px 0;
}

/* ===========================
   LISTAS
   =========================== */
ol, ul {
  margin: 24px 0;
  padding-left: 28px;
}

/* ===========================
   BLOCKQUOTE
   =========================== */
blockquote {
  border-left: 3px solid #37352f;
  padding: 16px 20px 16px 20px;
  margin: 32px 0;
  font-style: italic;
  background: rgba(55, 53, 47, 0.03);
  border-radius: 3px;
}

/* ===========================
   CARDS Y BOTONES
   =========================== */
.card {
  background: #ffffff;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 8px;
  padding: 24px;
  margin: 16px 0;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(55, 53, 47, 0.24);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 10px 25px;
  background: #37352f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.button:hover {
  background: #2e2c28;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(55, 53, 47, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #37352f;
}

.footer-links .current-menu-item a,
.footer-links .current_page_item a,
.footer-links .current-page-ancestor a {
  color: #37352f;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===========================
   MENÚ HAMBURGUESA
   =========================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 30px;
  cursor: pointer;
  font-size: 18px;
  color: #37352f;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: #fff;
  transform: rotate(180deg);
}


/* ===========================
   SUBMENÚS
   =========================== */
.header-menu {
  position: relative;
}

.header-menu li {
  position: relative;
}

.header-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  list-style: none;
  margin: 0;
}

.header-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-menu .sub-menu li {
  margin: 0;
  width: 100%;
}

.header-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
  margin: 0px 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.header-menu .sub-menu a:hover {
  background-color: rgba(55, 53, 47, 0.05);
  color: #37352f;
}

.header-menu .sub-menu .current-menu-item a,
.header-menu .sub-menu .current_page_item a {
  color: #37352f;
  background-color: rgba(55, 53, 47, 0.08);
}

/* Indicador de submenú */
.header-menu .menu-item-has-children > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: 8px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.header-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .mobile-menu-toggle {
        margin: 0 auto;
        position: fixed;
        bottom: 4rem;
        right: 1.5rem;
        z-index: 1000000000;
        width: 64px;
        height: 64px;
        border: 0;
        border-radius: 50%;
        opacity: 1;
        padding: 1rem;
        box-shadow: 0 0px 10px 0 rgba(0, 0, 0, .5);
        background-color: #fff;
        transition: 300ms ease all;
        display: block;
  }

  .logo {
    order: 1;
  }

  .header-nav {
    order: 3;
    width: 222px;
    position: fixed;
    bottom: 140px;
    left: 0;
    right: 20px;
    background: #ffffff;
    border: 1px solid rgba(55, 53, 47, 0.16);
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .mobile-menu-toggle:hover + .header-nav,
  .header-nav:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-menu {
    flex-direction: column;
    gap: 0;
    padding: 8px;
  }

  .header-menu li {
    width: 100%;
  }

  .header-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .header-menu a:hover {
    background-color: rgba(55, 53, 47, 0.05);
  }

  /* Submenús en móvil */
  .header-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-left: 16px;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header-menu .menu-item-has-children:hover .sub-menu {
    max-height: 300px;
  }

  .header-menu .menu-item-has-children > a::after {
    content: '▶';
    float: right;
    transition: transform 0.2s ease;
  }

  .header-menu .menu-item-has-children:hover > a::after {
    transform: rotate(90deg);
  }

  .footer-links {
    align-items: center;
    gap: 0 16px;
  }
}

@media (min-width: 640px) {
	.header-menu li a{
padding: 30px;    
}

.footer-links li a{
padding: 30px;    
}
}

/* ===========================
   TOGGLES PARA POLÍTICAS DE COOKIES/PRIVACIDAD/TÉRMINOS
   =========================== */

/* Estilos específicos para details/summary toggles basados en asd.css */
details summary::marker,
details summary::-webkit-details-marker {
    display: none;
    content: "";
}

details summary {
    display: block;
    cursor: pointer;
    background-color: rgba(239,239,239,0.5);
    margin: 5px 0;
    padding: 5px 10px;
    align-items: center;
    justify-items: stretch;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

details summary:hover {
    background-color: rgba(239,239,239,0.7);
}

details summary div {
    display: flex;
    grid-gap: 15px;
    align-items: center;
    justify-content: space-between;
}

details summary div h3 {
    grid-area: heading;
    border-bottom: 0;
}

details summary div:after {
    grid-area: chevron;
    cursor: pointer;
    content: "▼";
    transform: rotate(0);
    transition: all .5s ease;
    text-align: center;
    font-size: 14px;
    color: #666;
}

details[open] {
    padding-bottom: 1px;
}

details[open] summary div:after {
    transform: rotate(180deg);
}

details {
    background-color: rgba(239,239,239,0.25);
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}


details .cookies-per-purpose {
    border: 1px solid #dadada;
    grid-gap: 1px;
    background-color: #dadada;
    margin-bottom: 10px;
    display: grid;
    border-radius: 4px;
    overflow: hidden;
}

details .cookies-per-purpose div {
    background-color: white;
    padding: 15px;
}

/* Responsive para los toggles */
@media only screen and (min-width: 600px) {
    details .cookies-per-purpose {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template: "purpose purpose purpose" "header1 header2 header3" auto;
    }

    details .cookies-per-purpose .purpose {
        grid-area: purpose;
    }

    details .cookies-per-purpose div:nth-child(3n+2),
    details .cookies-per-purpose div:nth-child(3n+3),
    details .cookies-per-purpose div:nth-child(3n+4) {
        background-color: #f7f7f7;
    }
}

@media only screen and (max-width: 600px) {
    details .cookies-per-purpose {
        grid-template-columns: 100px 1fr;
    }

    details .cookies-per-purpose .purpose {
        grid-column: span 2;
    }

    details .cookies-per-purpose div:nth-child(even) {
        background-color: #f7f7f7;
    }
}



/* Personalizar */

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

a.added_to_cart.wc-forward {
    width: 100%;
}

section.woocommerce-order-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

input[type="checkbox" i] {
	height:20px;
	width: 20px;
	vertical-align: middle;
}

input[type="radio" i] {
	height:20px;
	width: 20px;
	vertical-align: middle;
}

[class*=" woo-wallet-icon-"], [class^=woo-wallet-icon-] {
    font-weight: 600;
}

table.shop_table.woocommerce-checkout-review-order-table .product-name {
    display: flex;
}
	
/* Payment Methods */
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: rgb(225 225 225 / 50%);
    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: .92em;
    border-radius: 2px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #515151;
}

#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 #ffffff;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
    position: absolute;
    top: -.75em;
    left: 0;
    margin: -1em 0 0 2em;
}

.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;
}

.intl-tel-input .country-list {
    width: 100%;
}

.intl-tel-input.allow-dropdown .flag-container, .intl-tel-input.separate-dial-code .flag-container {
    width: 100%;
}

/*mas estilos de woocoommerce*/

.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1em;
    box-shadow: none;
    border-radius: 10px 10px 0px 0px;
}

.woocommerce ul#shipping_method li input {
    margin: 0px .4375em 2px 0;
    vertical-align: middle;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    padding: 0px 0px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0px 1px 1px rgb(0 0 0 / 8%);
}



/*
.woocommerce-billing-fields__field-wrapper {
    border: 1px solid rgb(234, 237, 244);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
}
*/
.woocommerce form .form-row .input-text{
	border: 2px solid #ced4da;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    border: 2px solid #ced4da;
}

.woocommerce-product-gallery__image {
    border-radius: 6px;
}

.woocommerce div.product form.cart .variations select {
    height: 35px;
    padding: 5px 10px;
	    border: 1px solid #ced4da;
    border-radius: 3px;
}

/* WooCommerce Buttons */





.input-text {
		height: 35px;
	}

.woocommerce table.cart td.actions .input-text, .woocommerce-page #content table.cart td.actions .input-text, .woocommerce-page table.cart td.actions .input-text {
    width: auto;
}


@media (max-width: 768px) {
    .woocommerce #content table.cart .product-thumbnail, .woocommerce table.cart .product-thumbnail, .woocommerce-page #content table.cart .product-thumbnail, .woocommerce-page table.cart .product-thumbnail {
        display: flex;
        justify-content: center;
    }
td.product-thumbnail:before {
    display: none;
}

#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
    width: 150px;
    box-shadow: none;
    border-radius: 10px;
}
}



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

.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    float: right;
    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%;
}

/* ===========================

   =========================== */

.boton-carrito-flotante {
    text-align: center;
    bottom: 20px;
    position: fixed;
    width: 100%;
    z-index: 99;
}

/* Enlace del carrito */
a.cart-contents {
    background: #f5f8f7;
	  padding: 10px;
	border: 1px solid #ddd;
	border-radius:20px;
		  font-weight: 600;
  text-decoration: none;
	color: #37352f;
}


/* Contador burbuja */
.boton-carrito-flotante .cart-count {
  background: #e63946;
  color: #fff;
  line-height: 0.6;
  border-radius: 50%;
  padding: 6px 7px;
  display: inline-block;
  margin-right: 5px;
}

/* ===========================
   HEADER CENTRADO
   =========================== */
.header-centered header {
  justify-content: center;
  text-align: center;
}

.header-centered .header-nav {
  display: none !important;
}

.header-centered .mobile-menu-toggle {
  display: none !important;
}

/* Responsive para header centrado */
@media (max-width: 640px) {
  .header-centered header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .header-centered .logo {
    order: unset;
    width: 100%;
    text-align: center;
  }
}

/* ===========================
   ESTILOS PARA CLASSIC EDITOR
   =========================== */

/* Alineación de imágenes */
.alignleft {
  float: left;
  margin: 8px 30px 8px 0;
}

.alignright {
  float: right;
  margin: 8px 0 8px 30px;
}

.aligncenter {
  display: block;
  margin: 16px auto;
  text-align: center;
}

.alignnone {
  margin: 16px 0;
}

/* Tamaños de imagen de WordPress */
.size-thumbnail {
  max-width: 150px;
  height: auto;
}

.size-medium {
  max-width: 300px;
  height: auto;
}

.size-large {
  max-width: 1024px;
  height: auto;
}

.size-full {
  max-width: 100%;
  height: auto;
}

/* Captions de imágenes */
.wp-caption {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 16px 0;
  padding: 8px;
  text-align: center;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0 auto 8px;
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 14px;
  color: rgba(55, 53, 47, 0.65);
  font-style: italic;
  margin: 0;
  padding: 4px 8px;
  line-height: 1.4;
}

/* Caption alignments */
.wp-caption.alignleft {
  float: left;
  margin: 8px 30px 8px 0;
}

.wp-caption.alignright {
  float: right;
  margin: 8px 0 8px 30px;
}

.wp-caption.aligncenter {
  display: block;
  margin: 16px auto;
}

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

/* Enlaces en el contenido */
a:-webkit-any-link {
    color: #37352f;
    text-underline-offset: 3px;
}

/* Strong y emphasis */
.entry-content strong,
.entry-content b {
  font-weight: 700;
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

/* Responsive para imágenes alineadas */
@media (max-width: 640px) {
  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 16px auto;
  }
  
  .wp-caption.alignleft,
  .wp-caption.alignright {
    float: none;
    display: block;
    margin: 16px auto;
  }
}