
/* =========================================
   MI SALUD EN TU BARRIO
   HOJA DE ESTILOS PRINCIPAL
========================================= */

/* =========================================
   01. VARIABLES Y COLORES
========================================= */

:root {
  --primary: #1479B8;
  --primary-dark: #075785;
  --primary-light: #EAF6FD;

  --secondary: #25B7AF;
  --secondary-light: #E6F8F5;

  --accent: #F6B55B;
  --accent-light: #FFF4E4;

  --text: #19364D;
  --text-light: #627889;

  --white: #FFFFFF;
  --background: #F6FAFD;
  --border: #DFEAF1;

  --shadow-sm: 0 4px 15px rgba(13, 70, 108, 0.06);
  --shadow-md: 0 12px 35px rgba(13, 70, 108, 0.10);
  --shadow-lg: 0 20px 55px rgba(13, 70, 108, 0.14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container: 1200px;
  --transition: 0.3s ease;
}


/* =========================================
   02. REINICIO GENERAL
========================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
  line-height: 1.2;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(90%, var(--container));
  margin-inline: auto;
}

section {
  position: relative;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}


/* =========================================
   03. BARRA SUPERIOR
========================================= */

.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 12px;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 20px;
}

.topbar-content p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-links {
  display: flex;
  gap: 24px;
}

.topbar-links a {
  opacity: 0.85;
}

.topbar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}


/* =========================================
   04. HEADER PRINCIPAL
========================================= */

.site-header {
  width: 100%;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(18, 63, 91, 0.06);
}

.header-content {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 175px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.nav-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  white-space: nowrap;
  padding: 10px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 5px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--primary-light);
  color: var(--primary);
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 20px;
}


/* =========================================
   05. BOTONES GENERALES
========================================= */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 25px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(20, 121, 184, 0.18);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(20, 121, 184, 0.24);
}

.btn-secondary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}


/* =========================================
   06. HERO PRINCIPAL
========================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: #EAF6FD;
}

.hero-slider {
  position: relative;
  min-height: 550px;
}

.hero-slide {
  display: none;
  width: 100%;
  min-height: 550px;
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(37, 183, 175, 0.12),
      transparent 35%
    ),
    linear-gradient(
      115deg,
      #F1FAFF 0%,
      #E3F4FC 60%,
      #D5EFF8 100%
    );
}

.hero-slide.active {
  display: block;
  animation: heroFade 0.65s ease both;
}

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

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

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  min-height: 550px;
  padding-top: 55px;
  padding-bottom: 95px;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 590px;
}

.hero-label {
  display: inline-block;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 121, 184, 0.13);
  border-radius: 30px;
  padding: 9px 15px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero-text h1,
.hero-text h2 {
  color: var(--text);
  font-size: clamp(38px, 4.8vw, 67px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-text h1 span,
.hero-text h2 span {
  display: block;
  color: var(--primary);
}

.hero-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  position: absolute;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(37, 183, 175, 0.2),
    rgba(20, 121, 184, 0.17)
  );
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-circle::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(20, 121, 184, 0.25);
  border-radius: 50%;
}

.hero-illustration {
  width: 245px;
  height: 245px;
  background: linear-gradient(
    145deg,
    var(--primary),
    var(--secondary)
  );
  border-radius: 40% 60% 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 115px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 20px;
  font-size: 27px;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floating 4s ease-in-out infinite;
}

.hero-icon-one {
  top: 25px;
  right: 50px;
}

.hero-icon-two {
  bottom: 35px;
  left: 20px;
  color: var(--secondary);
  animation-delay: 0.8s;
}

.hero-icon-three {
  bottom: 25px;
  right: 15px;
  color: var(--accent);
  animation-delay: 1.5s;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}


/* =========================================
   07. CONTROLES DEL SLIDER
========================================= */

.hero-controls {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-controls > button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.hero-controls > button:hover {
  background: var(--primary);
  color: white;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 20px;
  background: #A7CDDF;
  transition: var(--transition);
}

.slider-dot.active {
  width: 28px;
  background: var(--primary);
}


/* =========================================
   08. ACCESOS RÁPIDOS
========================================= */

.quick-access {
  position: relative;
  z-index: 20;
  margin-top: -5px;
  padding: 34px 0 45px;
  background: var(--white);
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 23px 18px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.quick-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.quick-icon {
  flex: 0 0 51px;
  width: 51px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
}

.quick-card:nth-child(2) .quick-icon {
  background: var(--secondary-light);
  color: var(--secondary);
}

.quick-card:nth-child(3) .quick-icon {
  background: var(--accent-light);
  color: #DB922C;
}

.quick-text {
  flex: 1;
  min-width: 0;
}

.quick-text h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.quick-text p {
  font-size: 12px;
  color: var(--text-light);
}

.quick-arrow {
  color: var(--primary);
  font-size: 12px;
}


/* =========================================
   09. SOLICITUD DE ATENCIÓN
========================================= */

.appointment-section {
  padding: 45px 0 100px;
  background: var(--white);
}

.appointment-box {
  background: linear-gradient(135deg, #F3FAFE, #E9F7FA);
  border: 1px solid #D9ECF5;
  padding: 43px;
  border-radius: var(--radius-lg);
}

.appointment-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--secondary);
  margin-bottom: 13px;
}

.appointment-heading h2 {
  font-size: clamp(27px, 3vw, 37px);
  margin-bottom: 10px;
}

.appointment-heading p {
  color: var(--text-light);
  font-size: 15px;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group select,
.form-group input {
  height: 52px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  padding: 0 15px;
  outline: none;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 121, 184, 0.1);
}

.btn-search {
  height: 52px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 0 23px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.btn-search:hover {
  background: var(--primary-dark);
}

.form-message {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.form-message:empty {
  display: none;
}

.appointment-disclaimer {
  text-align: center;
  margin-top: 21px;
  font-size: 11px;
  color: var(--text-light);
}


/* =========================================
   10. ENCABEZADOS DE SECCIONES
========================================= */

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

.section-heading h2 {
  font-size: clamp(28px, 3vw, 41px);
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.7px;
}

.section-heading p {
  color: var(--text-light);
  max-width: 620px;
  font-size: 15px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.section-link:hover {
  gap: 15px;
}


/* =========================================
   11. SERVICIOS DE SALUD
========================================= */

.services-section {
  background: var(--background);
  padding: 105px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  padding: 32px 25px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: #B9DCEB;
}

.service-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 29px;
  margin-bottom: 25px;
}

.service-card:nth-child(2) .service-icon {
  background: var(--secondary-light);
  color: var(--secondary);
}

.service-card:nth-child(3) .service-icon {
  background: var(--accent-light);
  color: #DA942E;
}

.service-card:nth-child(4) .service-icon {
  background: #F1EBFF;
  color: #8769C8;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 25px;
  flex: 1;
}

.service-card a {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.service-card a:hover {
  gap: 14px;
}


/* =========================================
   12. ESPECIALIDADES
========================================= */

.specialties-section {
  padding: 105px 0;
  background: white;
}

.specialty-search {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 16px;
  max-width: 540px;
  padding: 0 18px;
  margin-bottom: 32px;
  color: var(--primary);
}

.specialty-search:focus-within {
  border-color: var(--primary);
}

.specialty-search input {
  height: 58px;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: var(--text);
}

.specialty-search input::placeholder {
  color: #8BA0AF;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.specialty-item {
  min-height: 105px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  background: white;
}

.specialty-item:hover {
  background: var(--primary-light);
  border-color: #B2D8ED;
  transform: translateY(-3px);
}

.specialty-item > i:first-child {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.specialty-item span {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.specialty-item > i:last-child {
  font-size: 12px;
  color: var(--primary);
}

.empty-results {
  padding: 25px;
  color: var(--text-light);
  text-align: center;
}

.empty-results[hidden],
.specialty-item[hidden] {
  display: none;
}


/* =========================================
   13. OPERATIVOS Y ACTIVIDADES
========================================= */

.campaign-section {
  background: var(--background);
  padding: 105px 0;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.campaign-card {
  border-radius: 21px;
  background: white;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.campaign-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.campaign-visual {
  height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.campaign-visual i {
  font-size: 75px;
  color: white;
  transition: var(--transition);
}

.campaign-card:hover .campaign-visual i {
  transform: scale(1.1);
}

.campaign-visual span {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.campaign-blue {
  background: linear-gradient(130deg, #1479B8, #61BFE2);
}

.campaign-green {
  background: linear-gradient(130deg, #13978E, #71D8C8);
}

.campaign-orange {
  background: linear-gradient(130deg, #EAA648, #F5C980);
}

.campaign-content {
  padding: 28px;
}

.campaign-category {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
}

.campaign-content h3 {
  font-size: 21px;
  margin: 12px 0;
}

.campaign-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 23px;
}

.campaign-content a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.campaign-content a:hover {
  gap: 15px;
}

.section-disclaimer {
  margin-top: 25px;
  font-size: 12px;
  color: var(--text-light);
}


/* =========================================
   14. CARNET DIGITAL
========================================= */

.digital-card-section {
  padding: 115px 0;
  background: white;
  overflow: hidden;
}

.digital-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.digital-card-text h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.16;
  max-width: 490px;
  margin-bottom: 23px;
}

.digital-card-text > p {
  color: var(--text-light);
  max-width: 510px;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 27px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 35px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.benefits-list i {
  color: var(--secondary);
  font-size: 17px;
}

.digital-card-preview {
  min-height: 425px;
  border-radius: 40px;
  background: linear-gradient(145deg, #E6F7FB, #DBF1F5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 38px;
  position: relative;
}

.digital-card-preview::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 2px dashed rgba(20, 121, 184, 0.2);
}

.health-id-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 330px;
  background: white;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(16, 78, 105, 0.17);
  transform: rotate(-5deg);
  transition: var(--transition);
}

.health-id-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.health-id-top {
  background: var(--primary);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
}

.health-id-top i {
  font-size: 25px;
}

.health-id-body {
  padding: 27px;
  text-align: center;
}

.health-id-body > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--secondary);
}

.health-id-body h3 {
  font-size: 19px;
  margin: 11px 0 23px;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 125px;
  height: 125px;
  margin: auto;
  background: #F3F7FA;
  border-radius: 12px;
  color: var(--text);
}

.qr-placeholder i {
  font-size: 95px;
}

.health-id-body small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 15px;
}


/* =========================================
   15. SOBRE NOSOTROS
========================================= */

.about-section {
  padding: 110px 0;
  background: var(--background);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.about-visual {
  position: relative;
  min-height: 420px;
  border-radius: 40px;
  background: linear-gradient(
    135deg,
    #DCF3F8,
    #D9F5EF
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon-circle {
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 105px;
  box-shadow: var(--shadow-lg);
}

.about-floating-card {
  position: absolute;
  bottom: 35px;
  right: -25px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  background: white;
  border-radius: 17px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 800;
}

.about-floating-card i {
  color: var(--secondary);
  font-size: 22px;
}

.about-content h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  margin-bottom: 24px;
  max-width: 500px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 19px;
  line-height: 1.9;
  font-size: 15px;
}

.about-content .btn-primary {
  margin-top: 15px;
}


/* =========================================
   16. PREGUNTAS FRECUENTES
========================================= */

.faq-section {
  padding: 110px 0;
  background: white;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.faq-heading h2 {
  font-size: clamp(32px, 3.5vw, 45px);
  margin-bottom: 20px;
}

.faq-heading p {
  color: var(--text-light);
  max-width: 330px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
  overflow: hidden;
}

.faq-item[open] {
  background: var(--primary-light);
  border-color: #C5E4F3;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-weight: 800;
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--primary);
  transition: var(--transition);
}

.faq-item[open] summary i {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 24px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 14px;
}


/* =========================================
   17. CONTACTO
========================================= */

.contact-section {
  padding: 25px 0 100px;
  background: white;
}

.contact-panel {
  background: linear-gradient(
    115deg,
    var(--primary-dark),
    var(--primary)
  );
  border-radius: 30px;
  min-height: 310px;
  padding: 58px 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.contact-content .section-eyebrow {
  color: #A1EFE2;
}

.contact-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: white;
  margin-bottom: 17px;
}

.contact-content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 25px;
}

.contact-content .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: none;
}

.contact-content .btn-primary:hover {
  background: var(--primary-light);
}

.contact-icon {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.12);
  font-size: 190px;
}


/* =========================================
   18. FOOTER
========================================= */

.footer {
  background: #12344B;
  color: white;
  padding: 75px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 45px;
  padding-bottom: 65px;
}

.footer-logo {
  width: 165px;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #ACC2D0;
  font-size: 13px;
  line-height: 1.85;
  max-width: 300px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  font-size: 17px;
  margin-bottom: 11px;
}

.footer-column a,
.footer-column p {
  color: #ACC2D0;
  font-size: 13px;
  line-height: 1.8;
}

.footer-column a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-column p i {
  margin-right: 8px;
  color: #7BD7D1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #91AEBD;
  font-size: 12px;
}


/* =========================================
   19. BOTÓN VOLVER ARRIBA
========================================= */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 47px;
  height: 47px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 17px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}


/* =========================================
   20. PANTALLAS MEDIANAS
========================================= */

@media (max-width: 1150px) {

  .header-content {
    min-height: 80px;
  }

  .main-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 12px;
  }

  .logo-img {
    width: 145px;
  }

  .btn-header {
    font-size: 12px;
    padding: 12px;
  }

  .quick-access-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-search {
    grid-column: span 2;
  }

  .digital-card-layout,
  .about-layout {
    gap: 45px;
  }

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


/* =========================================
   21. TABLETS
========================================= */

@media (max-width: 900px) {

  .topbar-links {
    display: none;
  }

  .header-content {
    min-height: 75px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 5%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 10px;
    font-size: 15px;
    border-radius: 9px;
  }

  .nav-link:hover {
    background: var(--primary-light);
  }

  .nav-link::after {
    display: none;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: clamp(36px, 5vw, 52px);
  }

  .hero-illustration {
    width: 195px;
    height: 195px;
    font-size: 90px;
  }

  .hero-icon {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

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

  .campaign-grid {
    gap: 15px;
  }

  .campaign-content {
    padding: 22px;
  }

  .campaign-content h3 {
    font-size: 18px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}


/* =========================================
   22. CELULARES
========================================= */

@media (max-width: 650px) {

  html {
    scroll-padding-top: 75px;
  }

  .container {
    width: 91%;
  }

  .topbar {
    font-size: 11px;
  }

  .logo-img {
    width: 135px;
  }

  .btn-header {
    padding: 11px 13px;
    font-size: 0;
    gap: 0;
    width: 41px;
    height: 41px;
    justify-content: center;
    border-radius: 12px;
  }

  .btn-header i {
    font-size: 18px;
  }

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding-top: 58px;
    padding-bottom: 95px;
  }

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

  .hero-label {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 20px;
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: clamp(35px, 9vw, 47px);
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }

  .hero-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 13px;
    padding: 14px 19px;
  }

  .hero-visual {
    min-height: 265px;
    margin-top: 30px;
  }

  .hero-circle {
    width: 240px;
  }

  .hero-illustration {
    width: 170px;
    height: 170px;
    font-size: 75px;
  }

  .hero-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 14px;
  }

  .hero-icon-one {
    top: 5px;
    right: 15%;
  }

  .hero-icon-two {
    left: 12%;
    bottom: 15px;
  }

  .hero-icon-three {
    right: 10%;
    bottom: 10px;
  }

  .hero-controls {
    bottom: 23px;
  }

  .quick-access {
    padding: 25px 0 35px;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .quick-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
  }

  .quick-icon {
    flex-basis: auto;
    width: 48px;
    height: 48px;
  }

  .quick-text h3 {
    font-size: 13px;
  }

  .quick-text p {
    font-size: 11px;
  }

  .quick-arrow {
    display: none;
  }

  .appointment-section {
    padding: 25px 0 75px;
  }

  .appointment-box {
    padding: 28px 20px;
    border-radius: 21px;
  }

  .appointment-heading h2 {
    font-size: 28px;
  }

  .appointment-heading p {
    font-size: 13px;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .btn-search {
    grid-column: auto;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .services-section,
  .specialties-section,
  .campaign-section,
  .digital-card-section,
  .about-section,
  .faq-section {
    padding: 75px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    padding: 27px;
  }

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

  .specialty-item {
    min-height: 85px;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .campaign-visual {
    height: 195px;
  }

  .digital-card-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .digital-card-text h2 {
    font-size: 33px;
  }

  .digital-card-preview {
    min-height: 390px;
    padding: 25px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .about-visual {
    min-height: 300px;
  }

  .about-icon-circle {
    width: 175px;
    height: 175px;
    font-size: 75px;
  }

  .about-floating-card {
    right: 10px;
    bottom: -20px;
    padding: 14px;
    font-size: 11px;
  }

  .about-content h2 {
    font-size: 32px;
  }

  .faq-heading h2 {
    font-size: 32px;
  }

  .faq-item summary {
    font-size: 13px;
    padding: 18px;
  }

  .contact-section {
    padding: 0 0 65px;
  }

  .contact-panel {
    padding: 42px 25px;
    min-height: auto;
  }

  .contact-content h2 {
    font-size: 29px;
  }

  .contact-content p {
    font-size: 13px;
  }

  .contact-icon {
    right: -15px;
    font-size: 130px;
  }

  .footer {
    padding: 60px 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-column:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .back-to-top {
    right: 17px;
    bottom: 17px;
    width: 43px;
    height: 43px;
  }
}


/* =========================================
   23. CELULARES PEQUEÑOS
========================================= */

@media (max-width: 380px) {

  .hero-text h1,
  .hero-text h2 {
    font-size: 33px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    flex-direction: row;
    align-items: center;
  }

  .quick-arrow {
    display: block;
  }

  .health-id-card {
    transform: rotate(0);
  }
}


/* =========================================
   24. ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

/* =========================================
   ANIMACIONES DE APARICIÓN
========================================= */

@media (prefers-reduced-motion: no-preference) {

  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(25px);
    }

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

  .revealed {
    animation: revealUp 0.65s ease both;
  }

}

/* =========================================
   25. PORTAL DE PACIENTES
   MI SALUD EN TU BARRIO
========================================= */

.portal-page {
  background: var(--background);
  min-height: 100vh;
  color: var(--text);
}


/* =========================================
   HEADER DEL PORTAL
========================================= */

.portal-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: 78px;
  background: white;
  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  padding: 12px 35px;

  box-shadow: var(--shadow-sm);
}

.portal-header-left,
.portal-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-logo img {
  width: 140px;
  max-height: 55px;
  object-fit: contain;
}

.portal-header-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.portal-header-title {
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  color: var(--primary);
}

.portal-menu-button {
  display: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
}

.portal-home-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}

.portal-home-link:hover {
  color: var(--primary);
}

.portal-user-menu {
  display: flex;
  align-items: center;
  gap: 11px;
  border-left: 1px solid var(--border);
  padding-left: 23px;
}

.portal-avatar,
.sidebar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}

.portal-avatar {
  width: 42px;
  height: 42px;
}

.portal-user-info {
  display: flex;
  flex-direction: column;
}

.portal-user-info strong {
  font-size: 13px;
}

.portal-user-info small {
  font-size: 11px;
  color: var(--text-light);
}


/* =========================================
   LAYOUT PRINCIPAL
========================================= */

.portal-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.portal-sidebar {
  background: white;
  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;

  padding: 28px 16px;
  min-width: 0;
}

.portal-main {
  width: 100%;
  min-width: 0;
  padding: 35px clamp(20px, 3.5vw, 55px);
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px 28px;
  border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
  width: 51px;
  height: 51px;
  font-size: 20px;
}

.sidebar-welcome span {
  font-size: 10px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 1px;
}

.sidebar-welcome h3 {
  font-size: 15px;
  margin-top: 3px;
}

.sidebar-navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 20px;
}

.sidebar-label {
  color: #8FA5B3;
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 800;
  margin: 19px 12px 9px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
}

.sidebar-link i {
  width: 21px;
  font-size: 17px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}

.sidebar-help {
  background: var(--primary-light);
  padding: 21px;
  border-radius: 16px;
}

.sidebar-help > i {
  font-size: 25px;
  color: var(--primary);
  margin-bottom: 12px;
}

.sidebar-help h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.sidebar-help p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 13px;
}

.sidebar-help a {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.sidebar-exit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 12px 5px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-exit:hover {
  color: var(--primary);
}


/* =========================================
   BIENVENIDA
========================================= */

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.portal-breadcrumb i {
  font-size: 9px;
}

.portal-breadcrumb a:hover {
  color: var(--primary);
}

.welcome-content {
  background: linear-gradient(115deg, #EAF6FD, #DBF5F2);
  border: 1px solid #D5EAF1;
  border-radius: 25px;
  padding: 40px 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  overflow: hidden;
}

.welcome-eyebrow,
.portal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 1.4px;
}

.welcome-content h1 {
  font-size: clamp(28px, 3vw, 41px);
  margin: 12px 0;
  color: var(--text);
}

.welcome-content p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.8;
}

.welcome-illustration {
  min-width: 135px;
  height: 135px;
  border-radius: 35px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 66px;
  box-shadow: var(--shadow-sm);
}


/* =========================================
   SECCIONES DEL PORTAL
========================================= */

.portal-section {
  margin-top: 47px;
  scroll-margin-top: 110px;
}

.portal-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 23px;
}

.portal-section-heading h2 {
  margin-top: 8px;
  font-size: clamp(23px, 2.6vw, 30px);
}

.portal-section-heading p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--text-light);
}

.portal-section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}


/* =========================================
   ACCESOS RÁPIDOS
========================================= */

.portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.portal-shortcut {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  padding: 24px 21px;
  border-radius: 19px;
  transition: var(--transition);
}

.portal-shortcut:hover {
  border-color: #A8D7E8;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.shortcut-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 19px;
}

.shortcut-blue {
  color: var(--primary);
  background: var(--primary-light);
}

.shortcut-green {
  color: var(--secondary);
  background: var(--secondary-light);
}

.shortcut-orange {
  color: #D59435;
  background: var(--accent-light);
}

.shortcut-purple {
  color: #8E6ED1;
  background: #F0EAFE;
}

.portal-shortcut h3 {
  font-size: 16px;
  margin-bottom: 9px;
}

.portal-shortcut p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 19px;
  flex: 1;
}

.portal-shortcut > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.portal-shortcut > span i {
  margin-left: 6px;
}


/* =========================================
   MIS ATENCIONES
========================================= */

.appointment-dashboard,
.portal-documents {
  background: white;
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 45px 25px;
  text-align: center;
}

.appointment-empty-icon,
.portal-documents-icon {
  width: 75px;
  height: 75px;
  border-radius: 22px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  margin: 0 auto 21px;
}

.appointment-dashboard h3,
.portal-documents h3 {
  font-size: 20px;
  margin-bottom: 11px;
}

.appointment-dashboard p,
.portal-documents p {
  font-size: 13px;
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto 23px;
}

.portal-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.portal-primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}


/* =========================================
   FORMULARIO DEL PORTAL
========================================= */

.portal-booking-card {
  padding: 30px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 21px;
}

.portal-booking-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.portal-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.portal-form-group label {
  font-size: 13px;
  font-weight: 800;
}

.portal-form-group select,
.portal-form-group input {
  height: 51px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 12px;
  color: var(--text);
  padding: 0 14px;
}

.portal-form-group select:focus,
.portal-form-group input:focus {
  outline: 2px solid var(--primary-light);
  border-color: var(--primary);
}

.portal-booking-form .portal-primary-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.portal-form-message {
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}

.portal-form-message:empty {
  display: none;
}

.portal-form-message.success {
  color: var(--primary);
}

.portal-form-message.error {
  color: #C45B42;
}

.portal-disclaimer {
  display: block;
  margin-top: 19px;
  color: var(--text-light);
  font-size: 11px;
}


/* =========================================
   CARNET DIGITAL
========================================= */

.portal-digital-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: white;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 32px;
}

.portal-digital-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 375px;
  width: 100%;
  margin: auto;
}

.portal-card-header {
  background: var(--primary);
  color: white;
  padding: 21px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.portal-card-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.portal-card-header i {
  font-size: 20px;
}

.portal-card-header strong {
  font-size: 13px;
}

.portal-card-header > span {
  font-size: 10px;
}

.portal-card-body {
  padding: 30px 20px;
  text-align: center;
}

.portal-card-label {
  font-size: 10px;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 1px;
}

.portal-card-body h3 {
  font-size: 22px;
  margin-top: 12px;
}

.portal-card-body p {
  color: var(--text-light);
  font-size: 12px;
}

.portal-qr-preview {
  width: 145px;
  height: 145px;
  background: var(--background);
  border-radius: 15px;
  margin: 23px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 105px;
}

.portal-card-body small {
  font-size: 10px;
  color: var(--text-light);
}

.portal-digital-info h3 {
  font-size: 29px;
  margin: 12px 0 18px;
}

.portal-digital-info > p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.portal-digital-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}

.portal-digital-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.portal-digital-info li i {
  color: var(--secondary);
}

.portal-info-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--primary-light);
}

.portal-info-note > i {
  color: var(--primary);
  margin-top: 3px;
}

.portal-info-note p {
  font-size: 12px;
  color: var(--text-light);
}


/* =========================================
   DOCUMENTOS Y NOTIFICACIONES
========================================= */

.portal-demo-label {
  background: var(--secondary-light);
  color: #17877D;
  display: inline-block;
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 800;
}

.portal-notification-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: white;
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 19px;
}

.notification-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
}

.portal-notification-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.portal-notification-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 11px;
}

.portal-notification-card span {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 700;
}


/* =========================================
   BANNER COMUNITARIO
========================================= */

.portal-community-banner {
  position: relative;
  overflow: hidden;
  padding: 45px;
  border-radius: 24px;
  background: linear-gradient(
    115deg,
    var(--primary-dark),
    var(--primary)
  );
  color: white;
}

.portal-community-banner > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.portal-community-banner span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #B3EFE4;
}

.portal-community-banner h2 {
  font-size: clamp(27px, 3vw, 38px);
  margin: 15px 0;
}

.portal-community-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 25px;
}

.portal-white-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--primary);
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
}

.portal-white-button:hover {
  background: var(--primary-light);
}

.community-banner-icon {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  font-size: 145px;
  color: rgba(255,255,255,0.12);
}


/* =========================================
   FOOTER DEL PORTAL
========================================= */

.portal-footer {
  border-top: 1px solid var(--border);
  margin-top: 55px;
  padding: 25px 0 5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-footer p {
  font-size: 11px;
  color: var(--text-light);
}


/* =========================================
   RESPONSIVE DEL PORTAL
========================================= */

@media (max-width: 1200px) {

  .portal-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 900px) {

  .portal-layout {
    display: block;
  }

  .portal-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(290px, 85vw);
    z-index: 1300;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .portal-sidebar.open {
    transform: translateX(0);
  }

  .portal-sidebar-overlay {
    position: fixed;
    inset: 0;
    border: none;
    background: rgba(7, 40, 65, 0.45);
    z-index: 1200;
    cursor: pointer;
  }

  .portal-sidebar-overlay[hidden] {
    display: none;
  }

  .portal-sidebar-overlay.active {
    display: block;
  }

  .sidebar-open {
    overflow: hidden;
  }

  .portal-header {
    padding: 12px 20px;
  }

}


@media (max-width: 650px) {

  .portal-header {
    min-height: 72px;
    gap: 10px;
    padding: 10px 15px;
  }

  .portal-header-left,
  .portal-header-right {
    gap: 10px;
  }

  .portal-logo img {
    width: 105px;
  }

  .portal-header-divider,
  .portal-header-title,
  .portal-user-info,
  .portal-home-link span {
    display: none;
  }

  .portal-user-menu {
    padding-left: 0;
    border-left: none;
  }

  .portal-avatar {
    width: 36px;
    height: 36px;
  }

  .portal-main {
    padding: 25px 17px;
  }

  .welcome-content {
    padding: 28px 24px;
  }

  .welcome-content h1 {
    font-size: 29px;
  }

  .welcome-illustration {
    display: none;
  }

  .portal-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .portal-shortcut {
    padding: 18px 15px;
  }

  .portal-shortcut h3 {
    font-size: 14px;
  }

  .portal-shortcut p {
    font-size: 11px;
  }

  .shortcut-icon {
    width: 47px;
    height: 47px;
    font-size: 21px;
  }

  .portal-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-booking-form {
    grid-template-columns: 1fr;
  }

  .portal-booking-card {
    padding: 23px;
  }

  .portal-digital-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .portal-digital-info h3 {
    font-size: 25px;
  }

  .portal-community-banner {
    padding: 32px 25px;
  }

  .community-banner-icon {
    right: -15px;
    font-size: 100px;
  }

  .portal-notification-card {
    padding: 19px;
  }

  .portal-footer {
    flex-direction: column;
  }

}


@media (max-width: 380px) {

  .portal-shortcuts {
    grid-template-columns: 1fr;
  }

}


/* =========================================
   REDUCCIÓN DE MOVIMIENTO
========================================= */

@media (prefers-reduced-motion: reduce) {

  .portal-sidebar {
    transition: none;
  }

}

/* ========================================
   BOTÓN MI PORTAL - HEADER
======================================== */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 13px 20px;

  background: var(--primary-light);
  color: var(--primary);

  border: 1px solid var(--primary);
  border-radius: 30px;

  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;

  transition: all 0.3s ease;
}

.btn-portal:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* PANTALLAS MEDIANAS */
@media (max-width: 1150px) {

  .btn-portal {
    padding: 11px 13px;
    font-size: 12px;
  }

}

/* CELULARES */
@media (max-width: 650px) {

  .btn-portal {
    width: 41px;
    height: 41px;
    padding: 0;
    border-radius: 12px;
  }

  .btn-portal span {
    display: none;
  }

  .btn-portal i {
    font-size: 18px;
  }

}

/* ==========================================
   ACCESIBILIDAD PARA ADULTOS MAYORES
   MI SALUD EN TU BARRIO
========================================== */

/* 01. LECTURA GENERAL */

body {
  font-size: 18px;
  line-height: 1.8;
}

p {
  line-height: 1.8;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  letter-spacing: normal;
}

/* 02. MENÚ PRINCIPAL */

.nav-link {
  font-size: 16px;
  font-weight: 800;
}

.main-nav {
  gap: 16px;
}

.topbar {
  font-size: 15px;
}

.btn-header,
.btn-portal {
  font-size: 16px;
  font-weight: 800;
  padding: 14px 18px;
}

/* 03. BANNER PRINCIPAL */

.hero-text h1,
.hero-text h2 {
  font-size: clamp(42px, 4.8vw, 65px);
  line-height: 1.15;
}

.hero-text p {
  font-size: 19px;
  line-height: 1.85;
  max-width: 560px;
}

.hero-label {
  font-size: 14px;
  letter-spacing: 1px;
}

/* 04. BOTONES GENERALES */

.btn-primary,
.btn-secondary,
.btn-search {
  font-size: 17px;
  font-weight: 800;
  min-height: 50px;
}

/* 05. TARJETAS DE ACCESO RÁPIDO */

.quick-access-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-card {
  padding: 25px;
  gap: 18px;
}

.quick-text h3 {
  font-size: 19px;
}

.quick-text p {
  font-size: 16px;
  line-height: 1.6;
}

.quick-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  font-size: 27px;
}

/* 06. TÍTULOS DE SECCIONES */

.section-eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: clamp(32px, 3vw, 42px);
}

.section-heading p,
.appointment-heading p {
  font-size: 18px;
}

.appointment-heading h2 {
  font-size: 36px;
}

/* 07. TARJETAS DE SERVICIOS */

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

.service-card {
  padding: 35px;
}

.service-card h3 {
  font-size: 24px;
}

.service-card p {
  font-size: 18px;
  line-height: 1.8;
}

.service-card a,
.section-link {
  font-size: 17px;
}

/* 08. ESPECIALIDADES */

.specialty-item {
  min-height: 110px;
}

.specialty-item span {
  font-size: 18px;
}

.specialty-search input {
  font-size: 18px;
}

/* 09. FORMULARIOS */

.form-group label,
.portal-form-group label {
  font-size: 17px;
}

.form-group input,
.form-group select,
.portal-form-group input,
.portal-form-group select {
  font-size: 17px;
  min-height: 54px;
}

.appointment-disclaimer,
.portal-disclaimer {
  font-size: 14px;
}

/* 10. OPERATIVOS */

.campaign-content h3 {
  font-size: 24px;
}

.campaign-content p {
  font-size: 18px;
}

.campaign-category {
  font-size: 15px;
}

.campaign-content a {
  font-size: 17px;
}

/* 11. CARNET DIGITAL Y NOSOTROS */

.digital-card-text > p,
.about-content p {
  font-size: 18px;
}

.benefits-list li {
  font-size: 17px;
}

.digital-card-text h2,
.about-content h2 {
  font-size: clamp(32px, 3.5vw, 46px);
}

/* 12. PREGUNTAS FRECUENTES */

.faq-item summary {
  font-size: 19px;
  padding: 25px;
}

.faq-item p {
  font-size: 17px;
  line-height: 1.85;
}

.faq-heading p {
  font-size: 18px;
}

/* 13. CONTACTO Y FOOTER */

.contact-content p {
  font-size: 18px;
}

.footer-brand p,
.footer-column a,
.footer-column p {
  font-size: 16px;
}

.footer-bottom p {
  font-size: 14px;
}

/* ==========================================
   14. PORTAL DE PACIENTES
========================================== */

.portal-header-title {
  font-size: 20px;
}

.portal-home-link,
.portal-user-info strong {
  font-size: 16px;
}

.sidebar-link {
  font-size: 17px;
  padding: 16px;
}

.sidebar-label {
  font-size: 13px;
}

.welcome-content h1 {
  font-size: 42px;
}

.welcome-content p {
  font-size: 18px;
}

.portal-section-heading h2 {
  font-size: 33px;
}

.portal-section-heading p {
  font-size: 18px;
}

.portal-shortcut h3 {
  font-size: 20px;
}

.portal-shortcut p {
  font-size: 17px;
}

.portal-shortcut > span {
  font-size: 16px;
}

.appointment-dashboard h3,
.portal-documents h3 {
  font-size: 23px;
}

.appointment-dashboard p,
.portal-documents p {
  font-size: 18px;
}

.portal-primary-button {
  font-size: 17px;
  min-height: 50px;
}

.portal-digital-info > p {
  font-size: 18px;
}

.portal-digital-info li {
  font-size: 17px;
}

.portal-notification-card h3 {
  font-size: 20px;
}

.portal-notification-card p {
  font-size: 17px;
}

/* ==========================================
   15. ACCESIBILIDAD VISUAL
========================================== */

/* Mejor contraste del texto secundario */

:root {
  --text-light: #465E70;
}

/* Enfoque visible al navegar con teclado */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #1479B8;
  outline-offset: 4px;
}

/* Botones más fáciles de presionar */

button,
.btn-primary,
.btn-secondary,
.btn-header,
.btn-portal {
  min-height: 44px;
}

/* ==========================================
   16. AJUSTES RESPONSIVE
========================================== */

@media (max-width: 1150px) {

  .main-nav {
    gap: 10px;
  }

  .nav-link {
    font-size: 15px;
  }

  .btn-header,
  .btn-portal {
    padding: 12px;
    font-size: 14px;
  }

  .portal-shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 900px) {

  .main-nav {
    gap: 4px;
  }

  .nav-link {
    font-size: 18px;
  }

}

@media (max-width: 650px) {

  body {
    font-size: 17px;
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: clamp(37px, 9vw, 47px);
  }

  .hero-text p {
    font-size: 18px;
  }

  .hero-label {
    font-size: 12px;
  }

  .quick-access-grid,
  .services-grid,
  .specialties-grid,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    flex-direction: row;
    align-items: center;
  }

  .quick-arrow {
    display: block;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .service-card p,
  .campaign-content p {
    font-size: 17px;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form .btn-search {
    grid-column: auto;
  }

  .portal-shortcuts {
    grid-template-columns: 1fr;
  }

  .welcome-content h1 {
    font-size: 32px;
  }

  .portal-section-heading h2 {
    font-size: 28px;
  }

  .btn-header,
  .btn-portal {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }

  .btn-header i,
  .btn-portal i {
    font-size: 18px;
  }

  .btn-portal span {
    display: none;
  }

}
/* =========================================
   ACTUALIZACIÓN DEL ENCABEZADO
   Botones visibles en computador y celular
========================================= */

.site-header .header-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}

.site-header .main-nav {
  gap: clamp(0.5rem, 1vw, 1rem);
}

.site-header .nav-link {
  font-size: 1rem;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* BOTONES PRINCIPALES */

.site-header .btn-header,
.site-header .btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  width: auto;
  height: auto;
  min-height: 48px;
  padding: 0.8rem 1rem;

  border-radius: 12px;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.site-header .btn-portal {
  background: white;
}

.site-header .btn-header span,
.site-header .btn-portal span {
  display: inline;
}

.site-header .btn-header i,
.site-header .btn-portal i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* TABLETS Y PANTALLAS INTERMEDIAS */

@media (max-width: 1200px) {

  .site-header .header-content {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .header-actions {
    display: contents;
  }

  .site-header .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    grid-column: 2;
    grid-row: 1;
    justify-self: end;

    width: 48px;
    height: 48px;
  }

  .site-header .btn-header {
    grid-column: 1;
    grid-row: 2;
  }

  .site-header .btn-portal {
    grid-column: 2;
    grid-row: 2;
  }

  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    max-height: 55vh;
    overflow-y: auto;

    flex-direction: column;
    align-items: stretch;

    padding: 1rem 5%;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-header .main-nav.open {
    display: flex;
  }

  .site-header .nav-link {
    padding: 0.8rem;
    white-space: normal;
  }

}

/* CELULARES */

@media (max-width: 650px) {

  .site-header .header-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .site-header .logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
  }

  .site-header .btn-header,
  .site-header .btn-portal {
    min-width: 0;
    padding: 0.75rem 0.5rem;

    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }

}

/* ==========================================
   MI SALUD EN TU BARRIO
   SISTEMA DE ATENCIONES
========================================== */

.atenciones-resumen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 45px;
}

.atencion-resumen-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
  background: #fff;
  border: 1px solid #DFEAF1;
  border-radius: 20px;
}

.atencion-resumen-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 24px;
}

.atencion-resumen-icon.azul {
  background: #EAF6FD;
  color: #1479B8;
}

.atencion-resumen-icon.verde {
  background: #E6F8F5;
  color: #25B7AF;
}

.atencion-resumen-icon.naranja {
  background: #FFF4E4;
  color: #DA942E;
}

.atencion-resumen-card span {
  display: block;
  color: #627889;
  font-size: 14px;
}

.atencion-resumen-card strong {
  display: block;
  margin-top: 5px;
  color: #19364D;
  font-family: "Nunito", sans-serif;
  font-size: 30px;
}

.atenciones-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.atenciones-titulo h3 {
  color: #19364D;
  font-size: 25px;
}

.lista-atenciones {
  display: grid;
  gap: 18px;
}

.atencion-card {
  background: #fff;
  border: 1px solid #DFEAF1;
  border-radius: 20px;
  padding: 25px;
}

.atencion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.atencion-card-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.atencion-card-title i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #EAF6FD;
  border-radius: 14px;
  color: #1479B8;
  font-size: 23px;
}

.atencion-card-title h4 {
  margin: 0;
  font-size: 19px;
  color: #19364D;
}

.atencion-card-title p {
  margin: 5px 0 0;
  color: #627889;
  font-size: 13px;
}

.atencion-estado {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
}

.atencion-estado.programada {
  color: #1479B8;
  background: #EAF6FD;
}

.atencion-estado.realizada {
  color: #138A7F;
  background: #E6F8F5;
}

.atencion-estado.cancelada {
  color: #B66A23;
  background: #FFF4E4;
}

.atencion-card-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-bottom: 20px;
  color: #506A7E;
  font-size: 14px;
}

.atencion-card-datos span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.atencion-card-datos i {
  color: #1479B8;
}

.atencion-cancelar {
  background: #fff;
  color: #B84A4A;
  border: 1px solid #E8CACA;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 700;
}

.atencion-cancelar:hover {
  background: #FFF1F1;
}

.atencion-vacio {
  padding: 55px 25px;
  text-align: center;
  background: #fff;
  border: 1px solid #DFEAF1;
  border-radius: 20px;
}

.atencion-vacio i {
  display: block;
  margin-bottom: 20px;
  font-size: 42px;
  color: #1479B8;
}

.atencion-vacio h3 {
  margin-bottom: 10px;
}

.atencion-vacio p {
  color: #627889;
}

.panel-nueva-atencion {
  padding: 30px;
  margin-top: 30px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #DFEAF1;
}

.panel-nueva-atencion[hidden] {
  display: none !important;
}

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

.panel-nueva-atencion .portal-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-nueva-atencion input,
.panel-nueva-atencion select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #DFEAF1;
  border-radius: 12px;
  background: #F6FAFD;
  color: #19364D;
}

.atencion-cerrar {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #EAF6FD;
  color: #1479B8;
}

.atencion-aviso {
  margin-top: 18px;
  font-size: 12px;
  color: #627889;
}

@media (max-width: 900px) {
  .atenciones-resumen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .atenciones-form-grid {
    grid-template-columns: 1fr;
  }

  .atencion-card,
  .panel-nueva-atencion {
    padding: 20px;
  }
}

/* ==========================================
   FILTROS DE ATENCIONES
========================================== */

.atenciones-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.filtro-atencion {
  background: white;
  color: #627889;
  border: 1px solid #DFEAF1;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 800;
  transition: .2s ease;
}

.filtro-atencion:hover {
  background: #EAF6FD;
  color: #1479B8;
}

.filtro-atencion.activo {
  background: #1479B8;
  color: white;
  border-color: #1479B8;
}

/* ==========================================
   DETALLE DE ATENCIÓN REALIZADA
========================================== */

.atencion-detalle {
  margin-top: 20px;
  border-top: 1px solid #DFEAF1;
  padding-top: 18px;
}

.atencion-detalle summary {
  color: #1479B8;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 0;
}

.atencion-detalle summary:hover {
  color: #075785;
}

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

.detalle-campo {
  background: #F6FAFD;
  border: 1px solid #DFEAF1;
  border-radius: 14px;
  padding: 18px;
}

.detalle-campo strong {
  display: block;
  color: #19364D;
  font-size: 14px;
  margin-bottom: 9px;
}

.detalle-campo p {
  color: #627889;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

.detalle-contenido .atencion-aviso {
  grid-column: 1 / -1;
}

@media (max-width: 650px) {
  .detalle-contenido {
    grid-template-columns: 1fr;
  }

  .filtro-atencion {
    flex: 1;
    text-align: center;
    padding: 12px 9px;
    font-size: 12px;
  }
}
/* ==========================================
   EDICIÓN DE DIRECCIÓN Y COMUNA
========================================== */

.portal-digital-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.editar-datos-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid #DFEAF1;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1479B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.2s ease;
}

.editar-datos-btn:hover {
  background: #EAF6FD;
  border-color: #1479B8;
}

.form-editar-ubicacion {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #DFEAF1;
  border-radius: 18px;
  background: #F9FCFE;
}

.form-editar-ubicacion[hidden] {
  display: none !important;
}

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

.form-editar-ubicacion .portal-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-editar-ubicacion .portal-form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #19364D;
}

.form-editar-ubicacion .portal-form-group input {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #DFEAF1;
  border-radius: 12px;
  background: #FFFFFF;
  color: #19364D;
}

.form-editar-ubicacion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 650px) {
  .form-editar-ubicacion-grid {
    grid-template-columns: 1fr;
  }

  .form-editar-ubicacion-actions {
    justify-content: stretch;
  }

  .form-editar-ubicacion-actions button {
    width: 100%;
  }
}