/* 
  NEUROMURCIA - Estilos CSS Centralizados
  Paleta: Premium Oscura & Dorada (Deep Obsidian & Metallic Gold Accent)
  Tipografía: Plus Jakarta Sans & Playfair Display
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colores del Sistema */
  --bg-primary: #0a0b0d;
  --bg-secondary: #13151a;
  --bg-tertiary: #1c1f26;
  
  --gold-primary: #c5a880;
  --gold-light: #e5d5c0;
  --gold-dark: #8e734c;
  --gold-gradient: linear-gradient(135deg, #e5d5c0 0%, #c5a880 50%, #8e734c 100%);
  
  --text-primary: #f5f6f8;
  --text-secondary: #a0a6b2;
  --text-muted: #6b7280;
  
  --border-color: rgba(197, 168, 128, 0.15);
  --border-focus: rgba(197, 168, 128, 0.4);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 20px rgba(197, 168, 128, 0.1);
  
  --container-width: 1200px;
  --page-top-clearance: 200px;
  --page-top-clearance-mobile: 150px;
}

/* Reset general */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 120px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Estructura Base */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Cabecera / Navegación */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-wrapper.scrolled {
  background-color: rgba(10, 11, 13, 0.98);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.header-wrapper.scrolled .top-bar {
  display: none;
}

.header-wrapper.scrolled .main-header {
  padding: 6px 0;
}

.header-wrapper.scrolled .site-logo-img {
  width: 82px;
  height: 82px;
}

.top-bar {
  background-color: rgba(197, 168, 128, 0.05);
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--gold-light);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-phones a {
  color: var(--gold-primary);
  text-decoration: none;
  margin-right: 15px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.top-bar-phones a:hover {
  color: var(--text-primary);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

/* Logotipo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  display: block;
  transition: var(--transition-smooth);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-main span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 10px 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.nav-caret {
  font-size: 0.68rem;
  line-height: 1;
  transform: translateY(1px);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--gold-primary);
}

.nav-item.active > .nav-link {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Dropdowns / Menús Desplegables */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-radius: 4px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 100;
  padding: 8px 0;
  list-style: none;
}

.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.dropdown-item a:hover {
  background-color: rgba(197, 168, 128, 0.08);
  color: var(--gold-primary);
  padding-left: 25px;
}

/* Botón Menú Móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.08) 0%, transparent 60%);
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: var(--gold-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #121212;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 168, 128, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: rgba(197, 168, 128, 0.05);
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Bloques de Página / Secciones */
.section {
  padding: 80px 0;
  border-top: 1px solid rgba(197, 168, 128, 0.05);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--gold-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
}

/* Tarjetas / Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 168, 128, 0.35);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.card-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.card-link:hover {
  color: var(--text-primary);
}

/* Páginas de enfermedades / Detalles */
.disease-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  padding-top: var(--page-top-clearance);
  padding-bottom: 80px;
}

.disease-content h2, .disease-content h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.disease-content h2 {
  font-size: 1.8rem;
}

.disease-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.disease-content ul {
  list-style-type: none;
  margin-bottom: 25px;
}

.disease-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.disease-content ul li::before {
  content: "•";
  color: var(--gold-primary);
  font-size: 1.5rem;
  position: absolute;
  left: 5px;
  top: -4px;
}

.disease-sidebar {
  position: sticky;
  top: 140px;
}

.sidebar-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Páginas de consejos / Secciones detalladas */
.advice-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 40px;
  margin-bottom: 40px;
}

.advice-badge {
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--gold-primary);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 15px;
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.advice-box h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.advice-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.advice-subcard {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.advice-subcard:hover {
  background-color: rgba(197, 168, 128, 0.03);
  border-color: rgba(197, 168, 128, 0.15);
}

.advice-subcard-title {
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.advice-alert {
  background-color: rgba(197, 168, 128, 0.05);
  border-left: 4px solid var(--gold-primary);
  padding: 20px;
  margin-top: 30px;
  border-radius: 0 4px 4px 0;
}

.advice-alert h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.advice-alert p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Pie de Página */
.footer {
  background-color: #050608;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 120px;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 6px;
  display: block;
}

.footer-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.back-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 4px;
  background: rgba(10, 11, 13, 0.88);
  color: var(--gold-primary);
  padding: 11px 15px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.back-button:hover {
  color: #121212;
  background: var(--gold-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 168, 128, 0.22);
  border-radius: 4px;
  color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.06);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: #121212;
  background: var(--gold-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.x-logo {
  color: var(--gold-primary);
  font-size: 1.05rem;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.social-links a:hover .x-logo {
  color: #121212;
}

.footer-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 1.5px;
  background-color: var(--gold-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-contact-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.footer-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

.footer-contact-value {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* =============================================
   HERO SPLIT LAYOUT (texto + foto doctor)
   ============================================= */
.hero-content-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  max-width: 100%;
}

.hero-text-block {
  max-width: 650px;
}

.hero-photo-block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  width: 300px;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 6px;
  background: var(--gold-gradient);
  z-index: 0;
  opacity: 0.6;
  filter: blur(8px);
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  z-index: 2;
  pointer-events: none;
}

.hero-doctor-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  display: block;
  filter: brightness(0.95) contrast(1.05);
  transition: var(--transition-smooth);
}

.hero-photo-frame:hover .hero-doctor-photo {
  filter: brightness(1) contrast(1.05);
  transform: scale(1.01);
}

.hero-photo-caption {
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, rgba(10, 11, 13, 0.95) 0%, rgba(19, 21, 26, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold-primary);
  padding: 14px 18px;
  text-align: center;
  border-radius: 0 0 6px 6px;
  margin-top: -2px;
}

.photo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 3px;
}

.photo-specialty {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.photo-license {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 5px;
}

/* =============================================
   DOCTOR CARD (sección "Atención Especializada")
   ============================================= */
.doctor-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transition: var(--transition-smooth);
}

.doctor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 30px 40px -10px rgba(0,0,0,0.8), 0 0 30px rgba(197, 168, 128, 0.12);
}

.doctor-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.doctor-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card-img {
  transform: scale(1.03);
}

.doctor-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 11, 13, 0.95) 100%);
}

.doctor-card-info {
  padding: 28px 30px 30px;
}

.doctor-card-badge {
  display: inline-block;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.doctor-card-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.doctor-card-license {
  color: var(--gold-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.doctor-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.doctor-card-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.doctor-card-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  font-weight: 600;
}

.contact-phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-phone:hover {
  color: var(--gold-primary);
}

/* =============================================
   FOTO DOCTOR en "Sobre Nosotros"
   ============================================= */
.about-photo-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  margin-bottom: 25px;
}

.about-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  filter: brightness(0.95) contrast(1.05);
}

.about-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 6px;
  pointer-events: none;
}

/* Contacto */
.contact-page {
  padding-top: var(--page-top-clearance);
  padding-bottom: 80px;
}

#main_content_area > .container[style*="padding-top: 140px"],
#main_content_area > .container[style*="padding-top: 180px"] {
  padding-top: var(--page-top-clearance) !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  margin-bottom: 0;
  text-align: left;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 4px;
  color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.08);
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-card a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--gold-primary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-actions .btn,
.confirmation-actions .btn {
  margin-left: 0;
}

.contact-form-box h3 {
  text-align: center;
  margin-bottom: 10px;
}

.contact-form-note {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 14px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
  font: inherit;
  transition: var(--transition-smooth);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form select {
  color: var(--text-primary);
  appearance: auto;
}

.contact-form select:focus,
.contact-form select:valid {
  color: var(--gold-primary);
}

.contact-form select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.contact-form select option:checked {
  color: var(--gold-primary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.08);
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .btn {
  padding: 14px 40px;
}

.confirmation-page {
  padding-top: var(--page-top-clearance);
  padding-bottom: 80px;
  text-align: center;
}

.confirmation-card {
  max-width: 640px;
  margin: 0 auto;
}

.confirmation-card p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cv-detail-box {
  overflow: hidden;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.cv-actions .btn {
  margin-left: 0;
}

.pdf-preview {
  width: 100%;
  height: 620px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
}

.review-box {
  margin-top: 40px;
}

.review-form {
  max-width: 760px;
  margin: 0 auto;
}

.review-form label,
.review-form legend {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 13px 14px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
  font: inherit;
  transition: var(--transition-smooth);
}

.review-form textarea {
  resize: vertical;
  min-height: 140px;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.08);
}

.rating-field {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.star-rating label {
  color: rgba(197, 168, 128, 0.35);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--gold-primary);
  text-shadow: 0 0 12px rgba(197, 168, 128, 0.25);
}

.review-feedback {
  min-height: 24px;
  color: var(--gold-primary);
  text-align: center;
  margin-top: 18px;
  font-weight: 600;
}

.video-presentation-box {
  margin-top: 34px;
}

.index-video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  object-fit: contain;
}

.video-card-info {
  padding: 28px 30px 30px;
}

.video-card-info h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.video-card-info p {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* Podcast */
.podcast-page {
  padding-top: var(--page-top-clearance);
  padding-bottom: 90px;
}

.podcast-grid {
  display: grid;
  gap: 28px;
}

.podcast-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.podcast-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.podcast-icon {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #10141a;
  flex: 0 0 auto;
}

.podcast-card h2 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.7rem;
  margin: 8px 0 0;
}

.podcast-card p {
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 22px;
}

.podcast-card audio,
.podcast-card video {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.podcast-card video {
  max-height: 560px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.podcast-audio {
  background: linear-gradient(135deg, rgba(39, 72, 88, 0.72), rgba(15, 21, 26, 0.96));
  border-color: rgba(103, 179, 219, 0.28);
}

.podcast-audio .podcast-icon {
  background: linear-gradient(135deg, #d4f1ff, #70c7e8);
}

.podcast-video {
  background: linear-gradient(135deg, rgba(84, 58, 98, 0.62), rgba(20, 17, 27, 0.96));
  border-color: rgba(191, 139, 219, 0.24);
}

.podcast-video .podcast-icon {
  background: linear-gradient(135deg, #f4d8ff, #c5a880);
}

.podcast-info {
  background: linear-gradient(135deg, rgba(83, 65, 32, 0.62), rgba(26, 21, 13, 0.96));
  border-color: rgba(197, 168, 128, 0.34);
}

.podcast-info .podcast-icon {
  background: var(--gold-gradient);
}

.home-news-entry {
  padding: 0 0 56px;
}

.news-entry-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(760px, 100%);
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(34, 58, 82, 0.95), rgba(31, 36, 44, 0.98));
  border: 1px solid rgba(103, 179, 219, 0.35);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.news-entry-image {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4f1ff, #c5a880);
  color: #10141a;
  font-size: 2.6rem;
}

.news-entry-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.05;
}

.news-entry-copy small {
  display: block;
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 0.98rem;
}

.news-entry-arrow {
  color: var(--gold-primary);
  font-size: 1.4rem;
}

.disease-hero-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 26px;
  box-shadow: var(--shadow-md);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-grid > div {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-grid span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a,
.publication-card,
.news-card {
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.link-list span,
.publication-card p,
.news-card p {
  display: block;
  color: var(--text-secondary);
  margin-top: 6px;
}

.publication-list,
.news-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 28px;
}

.publication-card h4,
.news-card h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.publication-card a,
.news-card a {
  color: var(--gold-primary);
  font-weight: 700;
  text-decoration: none;
}

.news-color-block {
  border-radius: 8px;
  padding: 24px;
  margin: 28px 0;
  border: 1px solid var(--border-color);
}

.events-block {
  background: linear-gradient(135deg, rgba(35, 63, 82, 0.45), rgba(15, 22, 30, 0.95));
  border-color: rgba(103, 179, 219, 0.25);
}

.latest-block {
  background: linear-gradient(135deg, rgba(82, 58, 35, 0.45), rgba(24, 20, 15, 0.95));
  border-color: rgba(197, 168, 128, 0.32);
}

.news-color-block h3 {
  margin-top: 0;
}

.social-links-large {
  gap: 16px;
}

.social-links-large a {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.social-links-large .fa-x-twitter {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(197, 168, 128, 0.35);
}

.social-links-large .x-logo-large {
  color: var(--gold-primary);
  font-size: 2.25rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(197, 168, 128, 0.45);
}

.social-links-large a:hover .fa-x-twitter {
  color: #121212;
  text-shadow: none;
}

.social-links-large a:hover .x-logo-large {
  color: #121212;
  text-shadow: none;
}

.neuroia-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
}

.neuroia-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  width: auto;
  height: 76px;
  padding: 0 18px 0 4px;
  background: #ffffff;
  color: #10141a;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.neuroia-toggle-text {
  color: #13202a;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.neuroia-toggle[aria-expanded="true"] .neuroia-toggle-text {
  display: none;
}

.neuroia-toggle[aria-expanded="true"] {
  width: 76px;
  padding: 0;
  border-radius: 50%;
}

.neuroia-panel {
  width: min(360px, calc(100vw - 34px));
  background: #edf7fb;
  border: 1px solid rgba(45, 98, 128, 0.3);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #13202a;
}

.neuroia-header,
.neuroia-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(45, 98, 128, 0.18);
}

.neuroia-header {
  justify-content: space-between;
  background: linear-gradient(135deg, #cfeef9, #f5ead2);
}

.neuroia-header span {
  display: block;
  color: #3d5c6e;
  font-size: 0.78rem;
}

.neuroia-header button,
.neuroia-form button {
  border: 0;
  background: transparent;
  color: #2d627f;
  cursor: pointer;
}

.neuroia-messages {
  max-height: 290px;
  overflow-y: auto;
  padding: 12px;
}

.neuroia-message {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.neuroia-bot {
  background: #ffffff;
  color: #13202a;
  border: 1px solid rgba(45, 98, 128, 0.16);
}

.neuroia-user {
  background: #d8edf7;
  color: #13202a;
}

.neuroia-form {
  border-bottom: 0;
  border-top: 1px solid rgba(45, 98, 128, 0.18);
  background: #f7fbfd;
}

.neuroia-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(45, 98, 128, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: #13202a;
}

.neuroia-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: visible;
}

.neuroia-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.neuroia-logo-panel {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}

.neuroia-logo-panel img {
  width: 54px;
  height: 54px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Diplomas */
.diplomas-section {
  margin-top: 40px;
}

.diplomas-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.diplomas-header h3 {
  margin-bottom: 0;
}

.diplomas-header p {
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 0;
}

.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.diploma-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(197, 168, 128, 0.13);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.diploma-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 168, 128, 0.38);
  box-shadow: var(--shadow-md);
}

.diploma-card a {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-primary);
}

.diploma-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
}

.diploma-card figcaption {
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-align: center;
  padding: 9px 8px 10px;
  border-top: 1px solid rgba(197, 168, 128, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-logo-img {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    overflow-y: auto;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    width: 100%;
  }
  
  /* Desplegables en móvil */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 15px;
    display: none; /* Se maneja con JS en móvil */
    border-left: 2px solid var(--gold-primary);
    margin-bottom: 10px;
    border-radius: 0;
  }
  
  .nav-item.dropdown-active > .dropdown {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text-block {
    max-width: 100%;
  }

  .hero-photo-block {
    order: -1;
  }

  .hero-photo-frame {
    width: 220px;
    margin: 0 auto;
  }

  .hero-doctor-photo {
    height: 280px;
  }

  .doctor-card-img-wrapper {
    height: 240px;
  }
  
  .grid-4, .grid-3, .grid-2, .disease-layout, .contact-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .diplomas-header {
    display: block;
  }

  .diplomas-header p {
    margin-top: 14px;
    max-width: none;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .contact-page {
    padding-top: var(--page-top-clearance-mobile);
  }

  .podcast-page {
    padding-top: var(--page-top-clearance-mobile);
  }
  
  .disease-layout {
    padding-top: var(--page-top-clearance-mobile);
    gap: 30px;
  }

  #main_content_area > .container[style*="padding-top: 140px"],
  #main_content_area > .container[style*="padding-top: 180px"] {
    padding-top: var(--page-top-clearance-mobile) !important;
  }

  .confirmation-page {
    padding-top: var(--page-top-clearance-mobile);
  }
  
  .disease-sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-bottom-links a {
    margin: 0 10px;
  }

  .back-button {
    left: 18px;
    bottom: 18px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .neuroia-widget {
    right: 14px;
    bottom: 78px;
  }

  .social-links-large a {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
  }

  .podcast-card {
    padding: 22px;
  }

  .podcast-card-header {
    align-items: flex-start;
  }

  .podcast-card h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 125px 0 70px;
  }

  .hero-title,
  .section-title {
    font-size: 2rem;
  }

  .site-logo-img {
    width: 86px;
    height: 86px;
  }

  .back-button {
    padding: 10px 12px;
  }

  .btn {
    width: 100%;
  }

  .news-entry-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 16px;
  }

  .news-entry-image {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
  }

  .news-entry-arrow {
    display: none;
  }

  .contact-actions,
  .confirmation-actions {
    flex-direction: column;
  }
}
