/* Archivo de estilos principal del proyecto final.
   Define la apariencia general, componentes, grillas, formularios y responsive.. */

/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --primary-glow: #a855f7;
  --primary-fg: #ffffff;
  --bg: #faf8ff;
  --bg-alt: #f3f0ff;
  --card: #ffffff;
  --foreground: #1e1535;
  --muted: #6b7280;
  --border: #e5e0f0;
  --radius: 0.75rem;
  --shadow-card: 0 4px 24px -4px rgba(50, 30, 80, 0.08);
  --shadow-card-hover: 0 12px 40px -8px rgba(50, 30, 80, 0.15);
  --shadow-primary: 0 8px 32px -8px rgba(109, 40, 217, 0.3);
  --gradient-primary: linear-gradient(135deg, #6d28d9, #a855f7);
  --gradient-hero: linear-gradient(135deg, #1e1145, #3b1d8e, #7c3aed);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ===================================
   UTILIDADES
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

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

/* ===================================
   BOTONES
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(109, 40, 217, 0.4);
}

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

.btn-white:hover {
  transform: scale(1.05);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
}

.nav-portal-btn {
  font-size: 0.8rem;
}

/* Hamburguesa móvill */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-portal-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    animation: slideDown 0.3s ease;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.3), transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  display: block;
  background: linear-gradient(to right, #e9d5ff, #fbcfe8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.hero-feature {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   SECCIONES
   =================================== */
.section {
  padding: 5rem 1rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

.section-desc {
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   TARJETAS DE ESPECIALIDADES
   =================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.specialty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(109, 40, 217, 0.3);
}

.specialty-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}

.specialty-card:hover .specialty-icon {
  transform: scale(1.1);
}

.specialty-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.specialty-card .doctor {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-dark);
}


.specialty-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.specialty-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.specialty-time {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* ===================================
   FORMULARIOS
   =================================== */
.appointment-form,
.portal-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--foreground);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

/* ===================================
   PORTAL TABS
   =================================== */
.portal-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--muted);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* ===================================
   CONTACTO
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-primary);
}

.contact-card h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--gradient-hero);
  color: #fff;
  padding: 4rem 1rem 0;
}

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

.footer-logo {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding: 2rem 0;
}

/* ===================================
   TOAST (notificaciones)
   =================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-card-hover);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 200;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* ===================================
   LOGO CON IMAGEN
   =================================== */
.logo-img {
  width: 145px;
  /* mas ancho porque ahora es rectangular */
  height: auto;
  /* mantiene proporción */
  object-fit: contain;

  /* saco recorte circular */
  border-radius: 0;

  /* quito zoom porque ya no hace falta */
  transform: none;

  display: block;

  filter: drop-shadow(0 4px 12px rgba(109, 40, 217, 0.4));

}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo-img {
  width: 145px;
  height: auto;
  object-fit: contain;

  border-radius: 0;
  transform: none;

  display: block;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  font-size: 1rem;
}

/* ===================================
   BOTÓN SECUNDARIO
   =================================== */
.btn-secondary {
  background: var(--card);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: rgba(109, 40, 217, 0.35);
  transform: translateY(-2px);
}

/* ===================================
   PANEL DE TURNOS
   =================================== */
.appointments-panel {
  max-width: 860px;
  margin: 2rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.panel-header h3 {
  font-size: 1.15rem;
  color: var(--foreground);
}

.appointments-list {
  display: grid;
  gap: 1rem;
}

.appointment-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  transition: all 0.3s ease;
}

.appointment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(109, 40, 217, 0.3);
}

.appointment-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.appointment-card-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.appointment-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.appointment-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.empty-state {
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
  background: var(--bg);
}

/* ===================================
   PANEL DE SESIÓN
   =================================== */
.session-panel {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(168, 85, 247, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.session-info {
  color: var(--foreground);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* ===================================
   RESPONSIVE 
   =================================== */
@media (max-width: 640px) {
  .appointments-panel {
    padding: 1rem;
  }

  .session-panel {
    padding: 1rem;
  }

  .logo-img {
    width: 52px;
    height: 52px;
  }

  .footer-logo-img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .logo-img {
    width: 90px;
  }

  .footer-logo-img {
    width: 85px;
  }
}

/* ===================================
   REDES SOCIALES
   ===================================* */
.redes-sociales {
  margin-top: 3px;
}

.redes-sociales a {
  margin: 0 10px;
  font-size: 26px;
  color: #6d28d9;
  transition: 0.3s;
}

.redes-sociales a:hover {
  color: #9333ea;
  transform: scale(1.2);
}

.logo-img {
  /* Ajustes para el logo con imagen arriba*/
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.stats-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.stats-grid,
.appointment-layout,
.portal-layout {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: 1.65rem;
}

.specialty-desc,
.panel-subtitle {
  color: var(--muted);
}

.specialty-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.specialty-time,
.mini-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  background: var(--bg-alt);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.appointment-layout {
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
}

.portal-layout {
  grid-template-columns: 1fr 1fr 0.9fr;
  align-items: start;
}

.panel-stack {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.appointments-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.appointments-toolbar input,
.appointments-toolbar select,
.form-group input,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-family: inherit;
  color: var(--foreground);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.appointment-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.appointments-list {
  display: grid;
  gap: 1rem;
}

.appointment-card-header,
.session-panel,
.footer-logo-wrap,
.redes-sociales {
  display: flex;
  align-items: center;
}

.appointment-card-header {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.appointment-badge,
.specialty-badge {
  display: inline-flex;
  margin-top: 0.35rem;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-action-btn,
.btn-secondary {
  border: none;
  border-radius: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.icon-action-btn {
  background: #fee2e2;
  color: #b91c1c;
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--primary-dark);
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.session-panel {
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.portal-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.tab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-card);
}

.portal-form,
.appointment-form,
.appointments-panel,
.contact-card,
.specialty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.specialties-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.specialties-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.footer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.specialty-icon,
.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.doctor,
.footer-desc,
.contact-card p,
.appointment-card-body p,
.info-card li {
  color: var(--muted);
}

.info-card ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.footer {
  background: #4c1d95;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-desc,
.footer li,
.footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.footer-logo-wrap {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  /* Ajustes para el logo con imagen en el footer */

  width: 100px;
  height: 100px;
  object-fit: contain;

  display: block;
  /* elimina espacio lateral raro */
  margin: 0;
  /* saca margenes */
  padding: 0;
}

.redes-sociales {
  gap: 1rem;
  margin-top: 1rem;
}

.redes-sociales a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.empty-state {
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: var(--bg-alt);
}

@media (max-width: 1100px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .contact-grid,
  .footer-grid,
  .portal-layout,
  .appointment-layout {
    grid-template-columns: 1fr 1fr;
  }

  .portal-layout> :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {

  .stats-grid,
  .specialties-grid,
  .contact-grid,
  .footer-grid,
  .appointment-layout,
  .portal-layout,
  .form-row,
  .appointments-toolbar {
    grid-template-columns: 1fr;
  }

  .logo-text {
    display: none;
  }

  .session-panel,
  .panel-stack {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Ajustes para que las 4 tarjetas de contacto queden en una sola fila en escritorio */
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* Ajustes finales pedidos para la entrega */
.hero-buttons .btn {
  min-width: 230px;
  justify-content: center;
}

.btn-outline-white {
  color: #fff;
}

.btn-outline-white:hover {
  color: #fff;
}

.nav-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.specialty-meta {
  justify-content: flex-start;
}

.portal-tabs {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.portal-tabs .tab-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

#portal .section-header {
  margin-bottom: 2rem;
}

#portal .section-title {
  text-align: center;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {

  .contact-grid,
  .portal-tabs {
    grid-template-columns: 1fr;
  }
}


/* Ajustes finales extra solicitadoss */
.btn i {
  font-size: 1rem;
}

.nav-portal-btn,
.hero-buttons .btn {
  gap: .55rem;
}

#portal .container {
  max-width: 1100px;
}

.portal-layout {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(320px, 420px));
  justify-content: center;
  align-items: start;
}

.portal-form-title {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: .25rem;
  color: var(--primary-dark);
}

#portal .portal-form {
  min-height: auto;
  height: fit-content;
  align-self: start;
}

.form-group input::placeholder,
.form-group select::placeholder,
.appointments-toolbar input::placeholder {
  color: #a89fbe;
  opacity: 1;
}

#portal .portal-form input {
  color: var(--foreground);
}

.portal-tabs,
.info-card {
  display: none !important;
}

@media (max-width: 900px) {
  .portal-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}


/*FOOTER LOGO PARA QUE ME LEA LOS CAMBIOS-AJUSTES*/
.footer-logo-img {
  width: 80px;
  height: 70px;
  object-fit: cover;
  transform: scale(1.1);
}

/* ===================================
   AJUSTE FINAL PORTAL DEL PACIENTE
   Evita que el formulario de iniciar sesión tome
   la altura del formulario de registrarse.
   =================================== */
#portal .container {
  max-width: 1100px;
}

#portal .portal-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 420px));
  justify-content: center;
  align-items: start;
  gap: 2rem 4rem;
}

#portal .portal-form {
  width: 100%;
  min-height: auto;
  height: fit-content;
  align-self: start;
}

#loginForm {
  height: fit-content;
  align-self: start;
}

@media (max-width: 900px) {
  #portal .portal-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}


/* ===================================
   AJUSTE enRESERVA TU TURNO
   Hace que las guías/ejemplos del formulario de turnos
   se vean más claras, igual que en Registro/Login.
   =================================== */
.appointment-form input,
.appointment-form select {
  color: #a89fbe;
}

.appointment-form input::placeholder,
.appointment-form select::placeholder {
  color: #a89fbe;
  opacity: 1;
}

.appointment-form input:focus,
.appointment-form select:focus {
  color: #1e1535;
}