/*
Theme Name: Colegio de Corredores Públicos QROO
Theme URI: https://ccpqroo.org.mx
Author: ACADIGITAL
Author URI: https://acadigital.mx
Description: Tema institucional del Colegio de Corredores Públicos del Estado de Quintana Roo, A.C. Réplica fiel del sitio original con secciones de servicios, directorio de corredores, publicaciones, testimonios y contacto. Todo el contenido es editable desde WordPress: Corredores, Publicaciones, Servicios, Valores, Testimonios, FAQ y Estadísticas como entradas propias, y textos/imágenes desde el Personalizador (panel "Contenido CCP QROO").
Version: 2.4.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccpqroo
*/

/* ============================================================
   VARIABLES DE COLOR (equivalentes exactos al sitio original)
   ============================================================ */
:root {
  --background: 0 0% 100%;
  --foreground: 203 100% 24%;

  --primary: 197 100% 38%;
  --primary-foreground: 0 0% 100%;

  --secondary: 189 87% 47%;
  --secondary-foreground: 0 0% 100%;

  --accent: 27 89% 54%;
  --accent-foreground: 0 0% 100%;

  --accent-yellow: 48 100% 50%;
  --accent-yellow-foreground: 203 100% 24%;

  --card: 0 0% 100%;
  --card-foreground: 203 100% 24%;

  --muted: 210 40% 96%;
  --muted-foreground: 203 50% 35%;

  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 197 100% 38%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --radius: 8px;

  --primary-navy: 203 100% 24%;
  --primary-blue: 197 100% 38%;
  --primary-turquoise: 189 87% 47%;

  --carousel-dot-size: 8px;
  --carousel-dot-active-width: 24px;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; border-color: hsl(var(--border)); }

html {
  scroll-behavior: smooth;
  font-variant-numeric: tabular-nums;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: hsl(var(--foreground));
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }
p { line-height: 1.625; }

button, .btn {
  border-radius: var(--radius);
  transition: all 200ms ease-in-out;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  border: none;
}
button:hover, .btn:hover { transform: translateY(-2px); }
button:active, .btn:active { transform: scale(0.98); }

input, textarea, select { transition: all 200ms ease-in-out; font-family: 'Roboto', sans-serif; font-size: 1rem; }
input:focus, textarea:focus, select:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* ============================================================
   UTILIDADES DE LAYOUT
   ============================================================ */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }

.section-spacing { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-spacing { padding-top: 6rem; padding-bottom: 6rem; } }

.bg-background { background-color: hsl(var(--background)); }
.bg-muted { background-color: hsl(var(--muted)); }

.section-header { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.section-header h2 { color: hsl(var(--foreground)); margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin: 0 auto; }

.shadow-soft { box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06); }
.shadow-medium { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); }
.shadow-strong { box-shadow: 0 20px 25px -5px rgba(0,66,122,0.1), 0 10px 10px -5px rgba(0,66,122,0.04); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  font-size: 1rem;
}
.btn-lg { padding: 1.25rem 2rem; font-size: 1.125rem; }
.btn-accent { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-accent:hover { background-color: hsl(var(--accent) / 0.9); }
.btn-outline-white { background-color: rgba(255,255,255,0.1); color: #fff; border: 1px solid #fff; backdrop-filter: blur(4px); }
.btn-outline-white:hover { background-color: rgba(255,255,255,0.2); }
.btn-outline {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  width: 100%;
}
.btn-outline:hover { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  width: 100%;
  justify-content: space-between;
}
.btn-ghost:hover { background-color: hsl(var(--primary) / 0.1); }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}
.site-header.scrolled {
  background-color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05);
}
.site-header nav { padding-top: 1rem; padding-bottom: 1rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-brand { display: flex; align-items: center; gap: 0.75rem; }
.header-brand img { height: 3rem; width: auto; object-fit: contain; }
.header-brand-text { display: none; }
@media (min-width: 1024px) { .header-brand-text { display: block; } }
.header-brand-text .title { color: hsl(var(--foreground)); font-weight: 700; font-size: 1.125rem; line-height: 1.25; font-family: 'Montserrat', sans-serif; }
.header-brand-text .subtitle { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.header-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}
.header-nav a:hover { color: hsl(var(--primary)); }

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle:hover { color: hsl(var(--primary)); transform: none; }

.mobile-menu { display: none; overflow: hidden; }
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding-top: 1rem; padding-bottom: 0.5rem; }
.mobile-menu-inner a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.mobile-menu-inner a:hover { background-color: hsl(var(--muted)); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    hsl(var(--primary-navy)), hsl(var(--primary-blue)),
    hsl(var(--primary-turquoise)), hsl(var(--primary-blue)),
    hsl(var(--primary-navy)));
  background-size: 400% 400%;
  opacity: 0.35;
  animation: gradient-rotate 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-shine-effect { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shine-effect::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to bottom right,
    rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  animation: shine-sweep 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 0 auto 2.5rem;
  max-width: 48rem;
  line-height: 1.625;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  animation: bounce-updown 1.5s ease-in-out infinite;
}
.hero-scroll svg { width: 2rem; height: 2rem; color: rgba(255,255,255,0.8); }

@keyframes gradient-rotate { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shine-sweep { 0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); opacity: 0; } 50% { opacity: 0.6; } 100% { transform: translateX(100%) translateY(100%) rotate(30deg); opacity: 0; } }
@keyframes bounce-updown { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image { position: relative; }
.about-image .frame { border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,66,122,0.1), 0 10px 10px -5px rgba(0,66,122,0.04); }
.about-image .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-image .accent-block {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 8rem; height: 8rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: 1rem;
  opacity: 0.2;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 1.5rem; max-width: none; }
.about-text p:last-child { margin-bottom: 0; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); }
.stat-card .icon-box {
  width: 3rem; height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
}
.stat-card .icon-box svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.stat-card .number { font-size: 2.25rem; font-weight: 700; color: hsl(var(--primary)); margin-bottom: 0.5rem; font-family: 'Montserrat', sans-serif; }
.stat-card .label { color: hsl(var(--muted-foreground)); font-weight: 500; }

/* Valores */
.values-header { text-align: center; margin-bottom: 3rem; }
.values-header h3 { color: hsl(var(--foreground)); margin-bottom: 1rem; }
.values-header p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  transition: all 0.3s;
}
.value-card:hover { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); }
.value-card .icon-box {
  width: 3rem; height: 3rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.value-card .icon-box svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.value-card h4 { color: hsl(var(--card-foreground)); margin-bottom: 0.5rem; font-size: 1.125rem; }
.value-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover { box-shadow: 0 20px 25px -5px rgba(0,66,122,0.1), 0 10px 10px -5px rgba(0,66,122,0.04); transform: translateY(-8px); }
.service-card .media { position: relative; height: 14rem; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .media img { transform: scale(1.1); }
.service-card .media .overlay { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.5), transparent); }
.service-card .media .icon-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--primary)));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0,66,122,0.1);
}
.service-card .media .icon-badge svg { width: 1.75rem; height: 1.75rem; color: #fff; }
.service-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-card .body h3 { color: hsl(var(--card-foreground)); margin-bottom: 0.75rem; transition: color 0.2s; }
.service-card:hover .body h3 { color: hsl(var(--primary)); }
.service-card .body p { color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 1.5rem; flex-grow: 1; }

/* ============================================================
   DIRECTORIO / CORREDORES
   ============================================================ */
.brokers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .brokers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .brokers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .brokers-grid { grid-template-columns: repeat(4, 1fr); } }
.broker-card {
  background-color: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.broker-card:hover { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); }
.broker-inner { display: flex; flex-direction: column; align-items: center; text-align: center; flex-grow: 1; }
.broker-avatar {
  width: 6rem; height: 6rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.broker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.broker-avatar.grad-0 { background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))); }
.broker-avatar.grad-1 { background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--primary))); }
.broker-avatar.grad-2 { background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-yellow))); }
.broker-card h3 { font-size: 1.125rem; color: hsl(var(--card-foreground)); margin-bottom: 0.25rem; line-height: 1.375; }
.broker-num {
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--primary) / 0.05);
  border-radius: 9999px;
  display: inline-block;
}
.broker-contact { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 1.5rem; gap: 0.625rem; flex-grow: 1; }
.broker-contact .row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); width: 100%; }
.broker-contact .row svg { width: 1rem; height: 1rem; color: hsl(var(--primary) / 0.7); flex-shrink: 0; }
.broker-contact .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.broker-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; width: 100%; margin-top: auto; }
.broker-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.625rem 0.75rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  flex: 1; min-width: 70px; max-width: 120px;
  transition: all 0.2s;
}
.broker-btn svg { width: 1rem; height: 1rem; margin-bottom: 0.375rem; }
.broker-btn span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.broker-btn.email:hover { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.broker-btn.call:hover { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border-color: hsl(var(--secondary)); }
.broker-btn.wa:hover { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent)); }

/* ============================================================
   PUBLICACIONES
   ============================================================ */
.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .publications-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .publications-grid { grid-template-columns: repeat(3, 1fr); } }
.publication-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.publication-card:hover { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); transform: translateY(-4px); }
.publication-media { position: relative; height: 14rem; overflow: hidden; background-color: hsl(var(--muted)); }
.publication-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.publication-card:hover .publication-media img { transform: scale(1.1) rotate(2deg); }
.publication-media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
}
.publication-media .placeholder svg { width: 4rem; height: 4rem; color: hsl(var(--primary) / 0.4); }
.badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.circular { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge.reforma { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.badge.comunicado { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.publication-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.publication-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.75rem; }
.publication-meta svg { width: 1rem; height: 1rem; }
.publication-body h3 { font-size: 1.25rem; color: hsl(var(--card-foreground)); margin-bottom: 0.75rem; line-height: 1.375; transition: color 0.2s; }
.publication-card:hover .publication-body h3 { color: hsl(var(--primary)); }
.publication-body .excerpt { color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 1rem; flex-grow: 1; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }
.testimonial-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card:hover { box-shadow: 0 10px 15px -3px rgba(0,66,122,0.1), 0 4px 6px -2px rgba(0,66,122,0.05); }
.testimonial-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.testimonial-head img { width: 4rem; height: 4rem; border-radius: 0.75rem; object-fit: cover; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.testimonial-head h4 { color: hsl(var(--card-foreground)); }
.testimonial-head .position { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.testimonial-head .company { font-size: 0.875rem; color: hsl(var(--primary)); font-weight: 500; }
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; fill: hsl(var(--accent-yellow)); color: hsl(var(--accent-yellow)); }
.testimonial-card p { color: hsl(var(--muted-foreground)); line-height: 1.625; font-style: italic; flex-grow: 1; }

/* ============================================================
   PORTAL AFILIADOS (CTA)
   ============================================================ */
.affiliates {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .affiliates { padding-top: 6rem; padding-bottom: 6rem; } }
.affiliates-bg { position: absolute; inset: 0; }
.affiliates-bg img { width: 100%; height: 100%; object-fit: cover; }
.affiliates-bg .overlay { position: absolute; inset: 0; background: linear-gradient(to right, hsl(var(--primary) / 0.95), hsl(var(--primary) / 0.9), hsl(var(--secondary) / 0.85)); }
.affiliates-content { position: relative; z-index: 10; max-width: 48rem; margin: 0 auto; text-align: center; color: #fff; }
.affiliates-content > svg { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; color: rgba(255,255,255,0.9); }
.affiliates-content h2 { color: #fff; margin-bottom: 1.5rem; }
.affiliates-content > p { font-size: 1.25rem; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); line-height: 1.625; }
.affiliates-box { background-color: rgba(255,255,255,0.1); backdrop-filter: blur(4px); border-radius: 0.75rem; padding: 2rem; margin-bottom: 2rem; }
.affiliates-box h3 { color: #fff; margin-bottom: 1rem; }
.affiliates-box ul { text-align: left; max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.affiliates-box li { display: flex; align-items: flex-start; gap: 0.75rem; color: #fff; }
.affiliates-box li svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }

/* ============================================================
   FAQ (ACORDEÓN)
   ============================================================ */
.faq-wrap { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
  border-bottom: 1px solid hsl(var(--border));
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.faq-question:hover { color: hsl(var(--primary)); transform: none; }
.faq-question svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: hsl(var(--muted-foreground)); line-height: 1.625; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1.25rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-form {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06);
}
.contact-form h3 { color: hsl(var(--card-foreground)); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: hsl(var(--foreground)); }
.form-control {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
textarea.form-control { min-height: 120px; resize: vertical; }
.contact-info-side { display: flex; flex-direction: column; gap: 2rem; }
.contact-card { background-color: hsl(var(--card)); border-radius: 0.75rem; padding: 2rem; box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06); }
.contact-card h3 { color: hsl(var(--card-foreground)); margin-bottom: 1.5rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .icon-box { width: 3rem; height: 3rem; border-radius: 0.75rem; background-color: hsl(var(--primary) / 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .icon-box svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.contact-row .label { font-weight: 500; color: hsl(var(--card-foreground)); }
.contact-row .value { color: hsl(var(--muted-foreground)); }
.contact-map { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,66,122,0.1), 0 2px 4px -1px rgba(0,66,122,0.06); }
.contact-map img { width: 100%; height: 16rem; object-fit: cover; }
.contact-hours { background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1)); border-radius: 0.75rem; padding: 2rem; }
.contact-hours h4 { color: hsl(var(--foreground)); margin-bottom: 1rem; }
.contact-hours p { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background-color: hsl(var(--foreground)); color: #fff; }
.footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand img { height: 4rem; width: auto; object-fit: contain; margin-bottom: 1rem; background: #fff; border-radius: 0.5rem; padding: 0.5rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.625; margin-bottom: 1rem; }
.footer-newsletter { display: flex; gap: 0.5rem; }
.footer-newsletter input { flex: 1; background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.625rem 0.75rem; border-radius: var(--radius); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.footer-newsletter button { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a, .footer-col button, .footer-col span { font-size: 0.875rem; color: rgba(255,255,255,0.8); background: transparent; text-align: left; transition: color 0.2s; }
.footer-col a:hover, .footer-col button:hover { color: #fff; transform: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 0.75rem; }
.footer-contact li svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-row { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .footer-bottom-row { flex-direction: row; } }
.footer-bottom-row .copy { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-align: center; }
@media (min-width: 768px) { .footer-bottom-row .copy { text-align: left; } }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background-color: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.2s; }
.footer-social a:hover { background-color: rgba(255,255,255,0.2); transform: translateY(-4px); }
.footer-social a svg { width: 1.25rem; height: 1.25rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.footer-legal a { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { color: rgba(255,255,255,0.4); }

/* ============================================================
   MODAL PUBLICACIÓN
   ============================================================ */
.pub-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 60; display: none; }
.pub-modal-backdrop.open { display: block; }
.pub-modal { position: fixed; inset: 1rem; z-index: 61; background-color: hsl(var(--background)); border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0,66,122,0.1); overflow: hidden; display: none; flex-direction: column; }
.pub-modal.open { display: flex; }
@media (min-width: 768px) { .pub-modal { inset: 2rem; } }
@media (min-width: 1024px) { .pub-modal { inset: 4rem; } }
.pub-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid hsl(var(--border)); }
.pub-modal-close { background: transparent; color: hsl(var(--foreground)); padding: 0.5rem; }
.pub-modal-body { overflow-y: auto; padding: 1.5rem 2rem; }
.pub-modal-body img { width: 100%; max-height: 20rem; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1.5rem; }
.pub-modal-body h2 { margin-bottom: 1rem; }
.pub-modal-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; font-size: 0.875rem; }
.pub-modal-meta span { display: flex; align-items: center; gap: 0.5rem; }
.pub-modal-meta svg { width: 1rem; height: 1rem; }
.pub-modal-body .content { color: hsl(var(--muted-foreground)); line-height: 1.75; }
.pub-modal-body .content p { max-width: none; margin-bottom: 1rem; }

/* ============================================================
   RESPONSIVE HELPERS / WP admin bar
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
