/*
Theme Name: Cute Garden
Description: green-glee and cute theme for nature
Version: 1.0.0
Author: Tania Arroyo Puebla
Text Domain: taniarroyo.com
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Exact replica of original site */
:root {
  --background: 40 33% 98%;
  --foreground: 150 10% 25%;

  --card: 0 0% 100%;
  --card-foreground: 150 10% 25%;

  --popover: 0 0% 100%;
  --popover-foreground: 150 10% 25%;

  --primary: 140 35% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 30 60% 92%;
  --secondary-foreground: 30 30% 30%;

  --muted: 100 20% 95%;
  --muted-foreground: 150 8% 50%;

  --accent: 15 70% 85%;
  --accent-foreground: 15 40% 30%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 100 15% 88%;
  --input: 100 15% 88%;
  --ring: 140 35% 55%;

  --radius: 1rem;

  /* Custom kawaii tokens */
  --peach: 15 70% 85%;
  --peach-foreground: 15 40% 30%;
  --sky: 200 60% 92%;
  --sky-foreground: 200 30% 30%;
  --sunshine: 45 70% 88%;
  --sunshine-foreground: 45 40% 30%;
  --leaf: 140 35% 55%;
  --leaf-light: 140 40% 92%;
  --cream: 40 33% 96%;

  --peach-back: 15 70% 60%;
  --sky-back: 200 60% 60%;
  --sunshine-back: 45 70% 60%;

  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;

  --font-cute: 'Quicksand', sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-cute);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cute);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1rem 0;
}


/* antes de nada */
.single-post .hero-single-post .container{
  max-width: 800px;
}

.single-post body p {
  font-size: 1.3rem;
  color: #5a6a5d;
}

header{
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
}

button {
  outline: none;
  border: none;
}

.hidden{
  display: none;
}

.main-section{
  position: relative;
  background-color: hsl(var(--cream));
}

h1{
  font-size: 3.75rem;
}

#desktop-navigation ul{
  margin: 0;
  gap: 10px;
}
#desktop-navigation #menu-main li a{
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
#desktop-navigation #menu-main li a{
  padding: 8px;
}
#desktop-navigation #menu-main li a:hover{
  background-color: hsl(var(--leaf-light));
  border-radius: 1rem;
}

/* Por defecto (desktop) */
.short-title, 
#mobile-menu-toggle {
  display: none;
}

.bg-card h3 a{
  color: hsl(var(--foreground));
}

.badge-fix-section{
  background-color: hsl(var(--card) / .6); 
}
.badge-fix-section:hover{
  background-color: hsl(var(--card));   
}


.badge-container span{
  background-color: hsl(var(--card) / .9);
}
.post-span-tag{
  background-color: hsl(var(--primary) / .1);
}

.post-bread-crumb{
  background-color: hsl(var(--leaf-light) / .5);
}

.title-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icons */
.cp-icon-back{
  width: 55px;
  height: 55px;
  background-color: hsl(var(--card) / .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.cp-icon-1{
  font-size: 1.3rem;
  color: hsl(var(--foreground));
  z-index: 1;
}

.cp-icon-1.clr-blank{
  color: #ffffff;
}

#kids{
  background-color: hsl(var(--peach) / 0.3);
}

footer .container .grid{
  grid-template-columns: repeat(4, minmax(0px, 1fr));
}

footer .social-links{
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s;
  font-size: .75rem;
  line-height: 1rem;
  width: 2.5rem;
  height: 2.5rem;
}


.main.archive-juegos .bg-leaf-light{
  /* background-image: url('https://garden.wowmodeon.com/wp-content/uploads/2026/04/vs-banner-juegos.png'); */
  /* opacity: 0.5; */
  background-position: center;
  background-repeat: no-repeat;
}
.bg-leaf-light .category-title{
  opacity: 1;
}

/* fin antes de nada */



/* JUEGOS */
.site-main.juegos article{
  position: relative;
  width: 200px;
  height: 200px;
}
.site-main.juegos article .juegos-desc{
  position: absolute;
  bottom: 0;
  background-color: #ffffffd1;
  width: 100%;
}
.site-main.juegos article .juegos-desc p,
.site-main.juegos article .juegos-desc h3{
  margin: 0;
}

.container-juegos{
  display: flex;
  flex-wrap: wrap;
  /* margin: 0 auto; */
  justify-content: center;
}

  

/* Filter */
.filter-marca-agua{
  filter: grayscale(1) contrast(1.05) brightness(1.05);
}

.marca-agua-green{
  /* background-color: #e2f3e8; */
  width: 100%;
  height: 100%;
  opacity: 0.4;
}


p {
  /* margin: 0 0 1rem 0; */
  margin: 0 0 0.5rem 0;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: all 0.3s ease;
}

/* a:hover {
  color: hsl(var(--primary));
  opacity: 0.8;
} */

/* Container utilities */
.container {
  width: 100%;
  max-width: 1400px;
  /* margin: 0 auto; */
  padding: 0 1rem;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-wrap{
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* border */
.border-b {
  border-bottom: 1px solid;
}
.border-t {
  border-top: 1px solid;
}

.border-border{
  border-color: hsl(var(--border));
}

/* Spacing utilities */
.py-2 { padding-top: .5rem; padding-bottom: .5rem;}
.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem;
}
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-1 {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.px-2-0{
  padding: 2rem 0;
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem;
}
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-10 { margin-top: 2.5rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-sm-share {font-size: 0.700rem;line-height: 1.25rem;}
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-peach-foreground { color: hsl(var(--peach-foreground)); }
.text-sky-foreground { color: hsl(var(--sky-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-sunshine-foreground {
  color: hsl(var(--sunshine-foreground));
}

/* Background utilities */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary-foreground { background-color: hsl(var(--primary-foreground)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-secondary-foreground { background-color: hsl(var(--secondary-foreground)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-peach { background-color: hsl(var(--peach)); }
.bg-peach-foreground { background-color: hsl(var(--peach-foreground)); }
.bg-peach-back { background-color: hsl(var(--peach-back)); }
.bg-sky { background-color: hsl(var(--sky)); }
.bg-sky-foreground { background-color: hsl(var(--sky-foreground)); }
.bg-sky-back { background-color: hsl(var(--sky-back)); }
.bg-sunshine { background-color: hsl(var(--sunshine)); }
.bg-sunshine-foreground { background-color: hsl(var(--sunshine-foreground)); }
.bg-sunshine-back { background-color: hsl(var(--sunshine-back)); }
.bg-leaf { background-color: hsl(var(--leaf)); }
.bg-leaf-light { background-color: hsl(var(--leaf-light)); }
.bg-cream { background-color: hsl(var(--cream)); }



.block-curioso {
  background-color: hsl(var(--sunshine) / 0.4);
  padding: 1rem;
  border: 1px solid hsl(var(--sunshine));
  border-radius: 2rem;
  font-size: 0.900rem;
}

.block-sabias-que {
  background-color: hsl(var(--peach) / 0.4);
  padding: 1rem;
  border: 1px solid hsl(var(--peach));
  border-radius: 2rem;
  font-size: 0.900rem;
}

/* Border radius utilities */
.rounded-cute { border-radius: 1.5rem; }
.rounded-blob { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.kawaii-shadow {
  box-shadow: 0 4px 20px -4px hsl(140 35% 55% / 0.15);
}

.kawaii-shadow-hover {
  box-shadow: 0 8px 30px -4px hsl(140 35% 55% / 0.25);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Transition utilities */
.transition-all {
  transition: all 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

/* Hover utilities */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:bg-card\/60:hover { background-color: hsl(var(--card) / 0.6); }
.hover\:bg-card:hover { background-color: hsl(var(--card)); }
.hover\:underline:hover { text-decoration: underline; }

/* Aspect ratio utilities */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.top-3 { top: 0.75rem; }
.top-10 { top: 2.5rem; }
.top-1\/2 { top: 50%; }
.bottom-20 { bottom: 5rem; }
.left-3 { left: 0.75rem; }
.left-10 { left: 2.5rem; }
.right-3 { right: 0.75rem; }
.right-10 { right: 2.5rem; }
.right-20 { right: 5rem; }

/* Transform utilities */
.translate-x-1 { transform: translateX(0.25rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }

/* Opacity utilities */
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

/* Width/Height utilities */
.w-4 { width: 1rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }

.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-36 { height: 9rem; }
.h-48 { height: 12rem; }
.h-full{ height: 100% ;}

/* Max width utilities */
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }


/* Media queries */
@media (min-width: 100px) and (max-width: 639px) {

  /* .container {
    width: 100%;
    padding: 0 1rem;
  }
   */
  .container .grid,
  footer .container .grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .hero-main{
    text-align: center;
  }

  .main-section .container{ 
    flex-direction: column;
  }

  h1{
    font-size: 2.25rem;
  }
  
  /* #huertos .container .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  
  /* MODO BUSCADOR EN MÓVIL */
  .search-active .full-title {
    display: none;
  }

  .search-active .short-title {
    display: inline-flex;
  }

  #mobile-menu-toggle{
    display: block;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  /* .container {
    width: 100%;
    padding: 0 1rem;
  } */

  .hero-main{
    text-align: center;
  }

  .main-section .container{ 
    flex-direction: column;
  }

  #mobile-menu-toggle{
    display: block;
  }

  h1{
    font-size: 2.25rem;
  }

  /* MODO BUSCADOR EN MÓVIL */
  .search-active .full-title {
    display: none;
  }

  .search-active .short-title {
    display: inline-flex;
  }

  .container-videos .grid,
  .container-exploradores .grid,
  .container-blog .grid,
  footer .container .grid{  
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container-2-cards .grid,
  .container-novedades .grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .single-post .container{
    padding-left: 6rem;
    padding-right: 6rem;
  }

  #desktop-navigation{
    display: none;
  }

  #mobile-menu-toggle{
    display: block;
  }

  /* #mobile-navigation{
    display: none;
  } */

  /* .main-section .container{ 
    flex-direction: column;
  }

  h1{
    font-size: 2.25rem;
  }

  .hero-main{
    text-align: center;
  } */

  .hero-main{
    text-align: center;
  }

  .main-section .container{ 
    flex-direction: column;
  }

  h1{
    font-size: 3rem;
  }

  .container-videos .grid,
  .container-exploradores .grid,
  .container-blog .grid,
  footer .container .grid,
  .container-2-cards .grid,
  .container-novedades .grid{  
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
}

@media (min-width: 1024px) {
  .justify-start { justify-content: flex-start; }
  .text-left { text-align: left; }
  .text-6xl { font-size: 3.75rem; line-height: 1; }

  .main-section .container{
    padding-top: 6rem; 
    padding-bottom: 6rem;
  }

  #desktop-navigation{
    display: block;
  }

  /* #mobile-navigation{
    display: none;
  } */

  .container .grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .container-novedades .grid{  
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-post .hero-single-post
  {
    padding-left: 13rem;
    padding-right: 13rem;
  }
  /* .single-post .hero-single-post .container
  {
    padding-top: 5rem;
    padding-bottom: 5rem;
  } */
  .single-post .post-content-single{
    padding-left: 15rem;
    padding-right: 15rem;
  }

  .single-post h1{
    font-size: 3rem;
    line-height: 1;
  }

  /* #huertos .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  .container-2-cards .grid{  
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out infinite;
}

.animate-bounce-soft {
  animation: bounce-soft 2s ease-in-out infinite;
}

/* WordPress specific styles */
.site-main {
  min-height: calc(100vh - 200px);
}

.wp-block-group,
.wp-block-columns {
  margin-bottom: 1.5rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Group hover utilities */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group:hover .group-hover\:kawaii-shadow-hover {
  box-shadow: 0 8px 30px -4px hsl(140 35% 55% / 0.25);
}

/* Inline flex utilities */
.inline-flex {
  display: inline-flex;
}

/* Cursor utilities */
.cursor-pointer {
  cursor: pointer;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

/* Leading utilities */
.leading-tight {
  /* line-height: 1.25; */
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-snug {
  line-height: 1.375;
}

/* Duration utilities */
.duration-300 {
  transition-duration: 0.3s;
}

/* Space utilities */
.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-6{
  > * + * {
    margin-top: 1.5rem;
  }
}

/* Padding utilities for specific elements */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Margin utilities for specific elements */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Button styles */
button {
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

header button:hover {
  background-color: hsl(var(--muted));
  padding: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 20px -4px hsl(140 35% 55% / 0.15);
}

.btn-secondary {
  background-color: hsl(var(--peach));
  color: hsl(var(--peach-foreground));
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 20px -4px hsl(15 70% 85% / 0.15);
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: hsl(var(--foreground));
  font-family: var(--font-cute);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Navigation */
.main-navigation {
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.main-navigation .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .menu li {
  position: relative;
}

.main-navigation .menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation .menu a:hover {
  color: hsl(var(--primary));
}

/* Footer */
.site-footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
  z-index: 100000;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

/* Forms */
/* input[type="text"], */
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: var(--font-main), sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

input.header-search{
  border-radius: 1.5rem;
  background-color: hsl(var(--muted));
  /* border: 2px solid hsl(var(--border)); */
}

/* input[type="text"]:focus, */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 178, 111, 0.1);
}


input.header-search:focus{
  border: 2px solid hsl(140deg 35% 55% / 16%);
  box-shadow: 0 0 0 1.5px rgba(103, 178, 111, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-post-image {
  object-fit: cover;
}
section#novedades .wp-post-image {
  border-radius: 1rem;
}

/* Lists */
ul, ol {
  /* margin: 1rem 0;
  padding-left: 2rem; */
  list-style-type: none; /* Elimina los puntos */
  padding: 0;            /* Elimina el sangrado izquierdo */
  margin: 0; 
}

ul li, ol li {
  margin-bottom: 0.7rem;
}

ul li a, ol li a{
  color: hsl(var(--muted-foreground));
}

.wp-block-list {
  list-style: none;
  padding: 0;
}

/* WordPress Blocks */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  border-radius: 1rem;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.wp-block-separator {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 2rem 0;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

table thead {
  background-color: var(--leaf-light);
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:nth-child(even) {
  background-color: var(--bg-secondary);
}


/* MENU */
#mobile-navigation {
  position: fixed;
  /* top: 70px; */
  left: 0;
  width: 100%;

  background: #ffffff;
  z-index: 1;

  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;

  transition: all 0.3s ease;
}

#mobile-navigation.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#mobile-navigation ul {
  padding: 15px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* Por defecto */
.short-title {
  display: none;
}

/* MODO BUSCADOR EN MÓVIL */
/* .search-active .full-title {
  display: none;
}

.search-active .short-title {
  display: inline-flex;
} */

/* Article prose styles */
.prose-custom {
  color: hsl(var(--foreground));
}

.prose-custom p {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: hsl(var(--muted-foreground));
}

.prose-custom h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.prose-custom h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.prose-custom img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.prose-custom a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.prose-custom a:hover {
  opacity: 0.8;
}

.prose-custom ul,
.prose-custom ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 1.5rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.prose-custom blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom table thead {
  background-color: hsl(var(--leaf-light));
}

.prose-custom table th,
.prose-custom table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid hsl(var(--border));
}

.prose-custom table tbody tr:nth-child(even) {
  background-color: hsl(var(--background));
}

/* Max width utilities */
.max-w-3xl {
  max-width: 48rem;
}

/* Additional hover states */
.group-hover\:fill-accent {
  fill: currentColor;
}

.group:hover .group-hover\:fill-accent {
  fill: hsl(var(--accent));
}

/* Utility for inline flex */
.inline-flex a {
  display: inline-flex;
}

/* Mobile responsive adjustments for single post */
@media (min-width: 640px) and (max-width: 1023px) {
  .md\:py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:text-5xl {
    font-size: 2.5rem;
  }
}

@media (max-width: 639px) {
  .md\:py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .md\:py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .md\:text-5xl {
    font-size: 1.875rem !important;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .gap-6 > * {
    margin-bottom: 1.5rem;
  }
}

/* ==================== COMMENTS SECTION - MODERN DESIGN ==================== */

/* Main comments area */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid hsl(var(--border));
}

.comments-area .form-submit .submit-button{
  background-color: hsl(var(--primary));
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px -4px hsl(140 35% 55% / 0.15);
  transition: all 0.3s ease;
  font-weight: 600;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer; 
  font-family: var(--font-cute);
}
.comments-area .form-submit .submit-button:hover{
  transition: all 0.3s ease;
  transform: scale(1.05);
  font-family: var(--font-cute);
}

/* Comments header */
.comments-header {
  margin-bottom: 2rem;
}

.comments-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem 0;
  padding: 0;
}

/* Comments list container */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Individual comment item */
.comment-item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nested comments indentation */
.comment-item .comment-item {
  margin-left: 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-left: 3px solid hsl(var(--leaf-light));
  padding-left: 1.5rem;
}

/* Pingback/Trackback styling */
.comment-item.pingback-trackback {
  padding: 1rem;
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
  border-left: 4px solid hsl(var(--muted-foreground) / 0.5);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.comment-item.pingback-trackback p {
  margin: 0;
}

/* Comment wrapper - main layout container */
.comment-wrapper {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.comment-wrapper:hover {
  background-color: hsl(var(--card) / 0.8);
  border-color: hsl(var(--leaf-light));
  box-shadow: 0 4px 12px hsl(140 35% 55% / 0.08);
}

/* Avatar section */
.comment-avatar {
  flex-shrink: 0;
}

.avatar-image {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid hsl(var(--leaf-light));
  background-color: hsl(var(--card));
}

/* Main content wrapper */
.comment-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Comment header with author and metadata */
.comment-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

/* Author information line */
.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comment-author-name {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
  word-break: break-word;
}

/* Author badge (for post author comments) */
.comment-author-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--leaf-light));
  color: hsl(var(--foreground));
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Date and time information */
.comment-date-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.comment-date {
  font-weight: 500;
}

.comment-time {
  color: hsl(var(--muted-foreground) / 0.8);
}

/* Comment text content */
.comment-text {
  color: hsl(var(--foreground));
  line-height: 1.6;
  padding: 0.5rem 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.comment-text p {
  margin: 0.5rem 0;
  padding: 0;
}

.comment-text p:first-child {
  margin-top: 0;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-text a {
  color: hsl(var(--primary));
  text-decoration: underline;
  transition: color 0.3s ease;
}

.comment-text a:hover {
  color: hsl(var(--primary) / 0.8);
}

.comment-text blockquote {
  border-left: 4px solid hsl(var(--leaf-light));
  padding-left: 1rem;
  margin: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.comment-text code {
  background-color: hsl(var(--muted));
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: hsl(var(--accent-foreground));
}

.comment-text pre {
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.comment-text pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Comment actions (reply, edit) */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.reply-link a,
.edit-link a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--primary) / 0.3);
}

.reply-link a:hover,
.edit-link a:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px hsl(140 35% 55% / 0.15);
}

.reply-link a {
  display: none;
}

.reply-link a.comment-reply-link {
  display: inline-flex;
}

/* Comment pagination */
.comments-navigation {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  padding: 0.5rem 1rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}

.nav-links span {
  color: hsl(var(--muted-foreground));
  background-color: transparent;
}

/* Comment form styles */
.comments-form-header {
  margin: 2rem 0 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid hsl(var(--border));
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: flex;
  margin: 1rem 0 0 0;
}

.comment-form-modern {
  background-color: hsl(var(--card));
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  margin-top: 1.5rem;
}

.comment-form-modern p {
  margin: 1rem 0;
}

.comment-form-modern textarea,
.comment-form-modern input[type="text"],
.comment-form-modern input[type="email"],
.comment-form-modern input[type="url"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-family: var(--font-cute);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form-modern textarea:focus,
.comment-form-modern input[type="text"]:focus,
.comment-form-modern input[type="email"]:focus,
.comment-form-modern input[type="url"]:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
  background-color: hsl(var(--card));
}

.comment-form-modern label {
  display: block;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.comment-form-modern .required {
  color: hsl(var(--destructive));
}

.comment-form-modern .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-cute);
  transition: all 0.3s ease;
}

.comment-form-modern .submit-btn:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(140 35% 55% / 0.25);
}

.comment-form-modern .submit-btn:active {
  transform: translateY(0);
}

#cancel-comment-reply-link {
  /* color: hsl(var(--destructive)); */
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  background-color: hsl(var(--destructive));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  /* padding: 1rem; */
  color: #ffffff;
  padding: 0.3rem;
  margin-left: 0.5rem;
  border-radius: 0.5rem;
}

#cancel-comment-reply-link:hover {
  color: hsl(var(--destructive) / 0.8);
  background-color: #ffffff;
  text-decoration: none;
  border: 1px solid hsl(var(--destructive) / 0.8);
}

/* Responsive design for comments */
@media (max-width: 768px) {
  .comment-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .avatar-image {
    width: 56px;
    height: 56px;
  }

  .comment-item .comment-item {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .comment-author-info {
    gap: 0.5rem;
  }

  .comment-date-time {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .comments-title {
    font-size: 1.5rem;
  }

  .comment-reply-title {
    font-size: 1.25rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .nav-links span {
    text-align: center;
  }

  .comment-form-modern {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .comments-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .comments-list {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .comment-wrapper {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .avatar-image {
    width: 48px;
    height: 48px;
  }

  .comment-header {
    gap: 0.25rem;
    padding-bottom: 0.35rem;
  }

  .comment-author-name {
    font-size: 0.95rem;
  }

  .comment-author-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }

  .comment-date-time {
    font-size: 0.8rem;
  }

  .comment-text {
    font-size: 0.95rem;
  }

  .comment-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .reply-link a,
  .edit-link a {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .comments-title {
    font-size: 1.25rem;
  }

  .comment-reply-title {
    font-size: 1.1rem;
  }
}