/*
Theme Name: La Cooperativa
Theme URI: https://coop.tropacirca.com
Author: Mauro Gatti
Author URI: https://tropacirca.com
Description: Tema inspirado en TECHO.org - Diseño minimalista y directo para cooperativas.
Version: 3.9.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: la-cooperativa
Tags: custom-header, custom-logo, featured-images, threaded-comments, translation-ready
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

:root {
  --primary: #1386d2;
  --secondary: #FF9900;
  --accent: #00CC66;
  --dark: #1a1a1a;
  --medium: #666666;
  --text: #333333;
  --muted: #666666;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
}

body {
  font-family: 'Encode Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.page-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6));
  pointer-events: none;
}

.page-hero__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .page-hero__image {
    height: 420px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Encode Sans', system-ui, sans-serif;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s; 
}
.fade-in-delay-2 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s; 
}
.fade-in-delay-3 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s; 
}
.fade-in-delay-4 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s; 
}
.fade-in-delay-5 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1s; 
}
.fade-in-delay-6 { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.2s; 
}

/* === HEADER === */
.site-header {
  background: #000000;
  border-bottom: 1px solid #333333;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Search Icon Button */
.search-icon-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.search-icon-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--primary);
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  display: flex;
  opacity: 1;
}

.search-modal-content {
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.search-modal input {
  width: 100%;
  background: rgba(255,255,255,0.95);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 40px rgba(19, 134, 210, 0.3);
}

.search-modal input::placeholder {
  color: var(--muted);
}

.search-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-modal-close:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.site-title a {
  color: #ffffff;
}

.site-title a:hover {
  color: var(--secondary);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::before {
  width: 100%;
}

.main-nav a:hover {
  color: var(--primary);
}

/* Submenú desplegable */
.main-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: block !important;
}

.main-nav li {
  position: relative;
}

.main-nav li:hover > ul,
.main-nav li.menu-item-open > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul ul li {
  width: 100%;
}

.main-nav ul ul a {
  color: var(--dark);
  padding: 0.75rem 1.5rem;
  display: block;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
}

.main-nav ul ul a::before,
.main-nav ul ul a::after {
  display: none;
}

.main-nav ul ul a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* Flecha indicadora de submenú */
.main-nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav .menu-item-has-children > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #0077aa 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image-url, url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80'));
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 900px;
  text-transform: uppercase;
}

.hero p {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 3rem;
  max-width: 700px;
  opacity: 1;
  font-weight: 400;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0f6fb0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(19, 134, 210, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* === SECCIONES === */
.section-title {
  text-align: center;
  margin-bottom: 3.25rem;
  position: relative;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title h2.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: left;
  font-size: 1.15rem;
  color: var(--muted);
}

.section-intro.center {
  text-align: center;
}

/* === GRID DE SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-8px);
}

.service-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 1.75rem;
}

.service-icon {
  display: none;
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === ESTADÍSTICAS === */
.stats-section {
  background: linear-gradient(135deg, var(--accent) 0%, #00aa55 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--stats-image-url, url('https://images.unsplash.com/photo-1556761175-b413da4baf72?w=1920&q=80'));
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

/* Logo sizing */
.site-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.95;
  color: #ffffff;
}

/* === TESTIMONIOS === */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.testimonial-text {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.testimonial-title {
  color: var(--muted);
  font-size: 0.85rem;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-banner .btn-primary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-banner .btn-primary:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* === FOOTER === */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(50, 111, 142, 0.5);
}

/* === SECCIONES CON IMAGEN (ESTILO TECHO) === */
.cta-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.cta-section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  min-height: 500px;
}

.cta-text {
  padding: 4rem 3rem;
  color: white;
}

.cta-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.cta-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-image {
  height: 100%;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colores de fondo para CTAs */
.cta-primary { background: linear-gradient(135deg, var(--primary) 0%, #0088bb 100%); }
.cta-secondary { background: linear-gradient(135deg, var(--secondary) 0%, #ff8800 100%); }
.cta-accent { background: linear-gradient(135deg, var(--accent) 0%, #00bb77 100%); }
.cta-purple { background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%); }
.cta-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }

/* === SECCIÓN QUIÉNES SOMOS (ESTILO GIROLABS) === */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0088bb 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.about-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: white;
  color: var(--primary);
  display: inline-block;
  padding: 0.5rem 2rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-hero h1.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.about-hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

.about-column h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-column p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.values-section {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.value-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.stats-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #0088bb 100%);
  padding: 4rem 0;
  color: white;
}

.stats-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-highlight h3 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-highlight p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* === SECCIÓN EDITORIAL Y LA NOTA (MEJORADAS) === */
.editorial-section, .lanota-section {
  padding: 5rem 0;
}

.editorial-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.editorial-text h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.editorial-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.editorial-image img, .lanota-screenshot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.editorial-image img:hover, .lanota-screenshot img:hover {
  transform: scale(1.02);
}

/* === TROPA EN LOS MEDIOS === */
.media-section {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.media-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.media-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-card-content {
  padding: 1.5rem;
}

.media-source {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.media-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.media-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.media-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.media-card a:hover {
  gap: 0.75rem;
}

/* === ALIANZAS ESTRATÉGICAS === */
.alliances-section {
  padding: 5rem 0;
}

.alliances-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

.alliance-logo {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.alliance-logo:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.alliance-logo img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.alliance-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .search-icon-btn,
  .social-links {
    display: none;
  }
  
  .header-inner {
    gap: 1rem;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .main-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  
  .main-nav a::after {
    height: 3px;
  }
  
  /* Submenús en móvil */
  .main-nav ul ul {
    position: static;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease;
  }
  
  .main-nav li.menu-item-open > ul {
    max-height: 500px;
  }
  
  .main-nav ul ul a {
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .main-nav ul ul a:hover {
    background: transparent;
    color: var(--primary);
  }
  
  .header-inner {
    justify-content: space-between;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  /* Forzar una sola columna en mobile para la grilla de servicios */
  #servicios .services-grid {
    grid-template-columns: 1fr !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
  
  .cta-section-content {
    grid-template-columns: 1fr;
  }
  
  .cta-text {
    padding: 3rem 2rem;
  }
  
  .cta-image {
    min-height: 300px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-highlight-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .editorial-content {
    grid-template-columns: 1fr;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
  }
  
  .alliances-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
