/* 
 * HuertoAmigo.com - Estilos principales
 * Archivo CSS optimizado para rendimiento y SEO
 * Diseño responsive y accesible
 */
/* Variables */
:root {
    /* Colores */
    --color-primary: #2e7d32;         /* antes: #4CAF50 → más contraste */
    --color-primary-dark: #1b5e20;    /* más oscuro aún para hover/focus */
    --color-primary-light: #66bb6a;   /* para fondos suaves, sigue siendo accesible */
    --color-secondary: #0277bd;       /* antes: #FF9800 → ahora azul accesible */
    --color-secondary-dark: #01579b;
    --color-accent: #ffb300;          /* similar al original pero con mejor legibilidad */
    --color-text: #212121;            /* más oscuro que #333 */
    --color-text-light: #616161;      /* más oscuro que #666 */
    --color-background: #ffffff;
    --color-background-alt: #f4f6f8;
    --color-border: #dcdcdc;
    
    /* Fuentes */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-headings: var(--font-primary);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    --header-height: 80px;
}
/* Reset y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover, a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--color-text);
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
p {
    margin-bottom: 1.5rem;
}
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
button, .btn {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
}
/* Utilidades */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    text-decoration: none;
}
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    color: white;
    text-decoration: none;
}
.btn-secondary {
    background-color: var(--color-secondary-dark);
    color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-secondary-dark);
    color: white;
    text-decoration: none;
}
/* HEADER UNIFICADO */
.site-header {
  background-color: var(--color-background, #ffffff);
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: auto; /* O usa una altura fija si lo necesitas */
  margin-bottom: 80px; /* ✅ Para evitar solapamiento con contenido */
}

/* Wrapper general del header */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Logo e idioma */
.logo-language {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  max-height: 60px;
  width: auto;
}

/* Navegación */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
  margin: 0 0.75rem;
}

.menu li:last-child {
  margin-right: 0;
}

.menu a {
  display: block;
  padding: 0.5rem;
  color: var(--color-text, #222);
  font-weight: 500;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus {
  color: var(--color-primary, #5a9c4a);
}

.current-menu-item > a {
  color: var(--color-primary, #5a9c4a) !important;
  font-weight: 600;
}

/* Botón hamburguesa (por si lo usas más adelante) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
}

/* Líneas del icono hamburguesa */
.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background: var(--color-text, #222);
  height: 2px;
  width: 100%;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Buscador */
.search-toggle {
  position: relative;
  margin-left: 1rem;
}

.search-toggle button {
  background: transparent;
  border: none;
  color: var(--color-text, #222);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 300px;
  background: white;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: none;
  z-index: 100;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown form {
  display: flex;
  align-items: center;
}

.search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
}

.search-dropdown button {
  background: var(--color-primary, #5a9c4a);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hero Section */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-alt);
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    font-size: 2.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
/* Featured Categories */
.featured-categories {
    padding: var(--spacing-xxl) 0;
}
.featured-categories h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* A partir de aquí completo el CSS que faltaba */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    background-color: var(--color-background);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.category-link {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.category-link:hover {
    text-decoration: none;
}

.category-image {
    overflow: hidden;
    height: 180px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0;
}

.category-card p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Featured Guides */
.featured-guides {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-alt);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.view-all:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.guide-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--color-background);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.guide-card a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.guide-image {
    height: 180px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-content {
    padding: var(--spacing-lg);
}

.guide-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.guide-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.read-more:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Planting Calendar */
.planting-calendar {
    padding: var(--spacing-xxl) 0;
}

.calendar-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.calendar-content {
    flex: 1;
}

.calendar-content h2 {
    margin-bottom: var(--spacing-md);
}

.calendar-content p {
    margin-bottom: var(--spacing-lg);
}

.current-month {
    background-color: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.current-month h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-dark);
}

.planting-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.planting-list li {
    list-style: none;
    padding: var(--spacing-xs) 0;
}

.planting-list li:before {
    content: "• ";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.calendar-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Latest Blog */
.latest-blog {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--color-background);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.blog-card a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--spacing-lg);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.category {
    color: var(--color-primary);
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xxl) 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    padding: var(--spacing-lg);
    background-color: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: var(--spacing-lg);
    transition: opacity var(--transition-medium);
}

.testimonial-content {
    margin-bottom: var(--spacing-md);
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    color: var(--color-primary-light);
    font-size: 3rem;
    position: absolute;
    opacity: 0.3;
}

.testimonial-content:before {
    top: -20px;
    left: -10px;
}

.testimonial-content:after {
    bottom: -50px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: var(--spacing-md);
    object-fit: cover;
}

.author-info strong {
    display: block;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Newsletter */
.newsletter {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-primary-dark); /* era: var(--color-primary-light) */
    color: white;
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    color: white;           /* fuerza el color blanco */
    opacity: 1;             /* elimina la opacidad baja */
    margin-bottom: 0;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form label,
.newsletter-form a {
    color: white;
}

.newsletter-form a:hover {
    text-decoration: underline;
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-row input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
}

.form-consent {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    opacity: 0.9;
}

.form-consent a {
    color: white;
    text-decoration: underline;
}

.form-consent a:hover {
    color: white;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    background-color: var(--color-text);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.widget h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.widget h4 {
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.about-widget p {
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.links-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.links-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.links-widget a:hover {
    color: white;
    padding-left: var(--spacing-xs);
}

.contact-widget .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-widget li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    color: rgba(255,255,255,0.8);
}

.contact-widget svg {
    margin-right: var(--spacing-sm);
    min-width: 16px;
}

.contact-widget a {
    color: rgba(255,255,255,0.8);
}

.contact-widget a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.responsive-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-section .container,
    .calendar-wrapper,
    .newsletter-wrapper {
        flex-direction: column;
    }
    
    .hero-image,
    .calendar-image {
        margin-top: var(--spacing-lg);
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--spacing-md) 0;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .menu {
        flex-direction: column;
        padding: 0 var(--container-padding);
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .menu li:last-child {
        border-bottom: none;
    }
    
    .menu a {
        padding: var(--spacing-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .categories-grid,
    .guides-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .search-dropdown {
        width: calc(100vw - 2 * var(--container-padding));
        right: calc(-1 * var(--container-padding));
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .newsletter,
    .cta-buttons,
    .testimonials,
    .search-toggle,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;     
    }
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px dashed var(--color-primary);
    outline-offset: 4px;
}

.responsive-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.responsive-section > div {
  flex: 1;
  min-width: 280px;
}
@media (max-width: 768px) {
  .responsive-section {
    flex-direction: column;
    text-align: center;
  }
}
/* Language header Styles */
.language-switcher {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.language-link {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.language-link:hover {
  background-color: #ccc;
}

/* Corrección para texto en responsive */
@media (max-width: 768px) {
  .responsive-section > div {
    text-align: center;
  }
}
/* Corrección footer */
.site-footer {
  background-color: #f8f8f8;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 250px;
}

.footer-left img {
  height: auto;
  max-width: 140px;
}

.footer-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-right li {
  margin: 0;
}

.footer-right a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: #4CAF50;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-right ul {
    justify-content: center;
  }
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-language {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-link {
  padding: 0.3rem 0.6rem;
  background-color: #eee;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: #222;
  font-size: 0.9rem;
}

.guide-page {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background);
}

.guide-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.guide-header h1 {
  color: var(--color-primary-dark);
  font-size: 2.4rem;
  margin-bottom: var(--spacing-md);
}

.guide-header p {
  color: var(--color-text-light);
  font-size: 1.2rem;
}

.guide-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.guide-content h2 {
  color: var(--color-primary);
  margin-top: var(--spacing-xl);
}

.guide-content p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.guide-image {
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.guide-image img {
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.section-alt {
  background-color: #f0f5f0;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}
.responsive-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.responsive-section > div {
  flex: 1;
  min-width: 280px;
}
.responsive-section img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
}
@media (max-width: 768px) {
  .responsive-section {
    flex-direction: column;
    text-align: center;
  }
}
ul, ol {
  margin-bottom: 1.5rem;
}

/* MENU DESKTOP */
.main-navigation .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .menu li a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation .menu li a:hover {
  color: #267b2d;
}

/* SEARCH */
.header-tools {
  display: flex;
  align-items: center;
  position: relative;
}

.search-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 2.5rem;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 6px;
  z-index: 10;
}

.search-toggle button[aria-expanded="true"] + .search-dropdown {
  display: block;
}

.search-dropdown form {
  display: flex;
  gap: 0.5rem;
}

.search-dropdown input[type="search"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* RESPONSIVE: MENU HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
    width: 100%;
  }

  .main-navigation.active {
    display: block;
    margin-top: 1rem;
  }

  .main-navigation .menu {
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }
}
main {
  padding-top: var(--header-height);
}