/* MiTarjetaOnline â€” Hoja de estilos principal.
   Plantillas: Degradado, GeomÃ©trica y Moderna.
   Paletas: azul, turquesa, vino, verde, morado, grafito, rojo y dorado.
   Conserva los estilos del proyecto y agrupa los ajustes ya aprobados. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap");


/* 01. Base y variables predeterminadas (azul) */
:root {
  font-family: "DM Sans",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope",system-ui,sans-serif;
}

p {
  line-height: 1.65;
}

.card-page {
  --main: #153f69;
  --deep: #0b2b50;
  --light: #eaf3fa;
  --soft: #f8fbfe;
  --ink: #26364c;
  --line: #e1e9f0;
  --banner: linear-gradient(175deg,#f8fcff 7%,#accbe2 47%,#153e69 100%);
  background: #e7ebf0;
  color: var(--ink);
  padding-bottom: 0;
  --card-wash: #e3f1f9;
  --card-floor: #225b89;
  --card-rgb: 25,71,112;
}


/* 02. Colores de las tarjetas */
.palette-turquesa {
  --main: #13869c;
  --deep: #075d72;
  --light: #e5f8fa;
  --banner: linear-gradient(175deg,#f8ffff 5%,#96d7df 48%,#08738a 100%);
  --card-wash: #e0f7f7;
  --card-floor: #086e7c;
  --card-rgb: 12,112,128;
}

.palette-vino {
  --main: #96446a;
  --deep: #642444;
  --light: #faedf4;
  --banner: linear-gradient(175deg,#fff8fb 0%,#daa9c1 50%,#732a51 100%);
  --card-wash: #fbe9f2;
  --card-floor: #783455;
  --card-rgb: 117,44,79;
}

.palette-verde {
  --main: #367958;
  --deep: #205438;
  --light: #eaf6ed;
  --banner: linear-gradient(175deg,#fbfffc 0%,#b7dac2 50%,#245e44 100%);
  --card-wash: #e4f5e7;
  --card-floor: #286045;
  --card-rgb: 39,102,72;
}

.palette-morado {
  --main: #6e579b;
  --deep: #3c2b69;
  --light: #f1edfa;
  --banner: linear-gradient(175deg,#faf9ff 0%,#c4b6df 48%,#483376 100%);
  --card-wash: #f1eafa;
  --card-floor: #493977;
  --card-rgb: 75,55,119;
}

.palette-grafito {
  --main: #535f70;
  --deep: #1c293a;
  --light: #eef1f4;
  --banner: linear-gradient(175deg,#ffffff 0%,#c0c9d3 48%,#344153 100%);
  --card-wash: #eef3f8;
  --card-floor: #334457;
  --card-rgb: 46,65,83;
}

.palette-rojo {
  --main: #E92336;
  --deep: #941B2D;
  --light: #FFF0F2;
  --banner: linear-gradient(175deg,#fff7f8,#f4a2ac,#b71f36);
  --card-wash: #ffe6ea;
  --card-floor: #85182b;
  --card-rgb: 185,31,54;
}


/* Dorado: oro, champÃ¡n y contraste oscuro. */
.palette-dorado {
  --main: #B88A35;
  --deep: #70501F;
  --light: #FFF5DF;
  --banner: linear-gradient(175deg, #FFFDF5 0%, #E8CB91 48%, #A57227 100%);
  --card-wash: #FFF2D5;
  --card-floor: #805820;
  --card-rgb: 142, 101, 38;
}


/* 03. Componentes comunes: encabezado, botones y secciones */
.mobile-shell {
  width: 100%;
  max-width: 475px;
  margin: 0 auto 50px;
  min-height: 100vh;
  background: white;
  box-shadow: 0 12px 55px #10294213;
  padding-bottom: 50px;
}

.identity-zone {
  background: var(--banner);
  position: relative;
  isolation: isolate;
  padding: 14px 17px 23px;
  color: var(--deep);
  text-align: center;
  overflow: hidden;
}

.identity-zone:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--user-cover);
  background-position: center;
  background-size: cover;
  opacity: .22;
  z-index: -1;
  pointer-events: none;
}

.identity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.mini-brand {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .015em;
  opacity: .85;
}

.views-badge {
  font-size: .71rem;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 4px;
  background: #ffffffb9;
  color: var(--deep);
  font-weight: 700;
}

.views-badge strong {
  font-variant-numeric: tabular-nums;
}

.identity-content {
  display: grid;
  justify-items: center;
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 154px;
  height: 96px;
  overflow: hidden;
  margin: 4px auto 9px;
  background: #ffffffd9;
  border: 1px solid #ffffff99;
  border-radius: 13px;
  box-shadow: 0 5px 17px #1b36521c;
}

.logo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  object-fit: contain;
  max-width: none;
  max-height: none;
}

.person-row {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.photo-frame {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 6px 24px #18314f33;
  position: relative;
  overflow: hidden;
  background: var(--light);
  flex: 0 0 auto;
}

.photo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  object-fit: cover;
  max-width: none;
  max-height: none;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 800;
  color: var(--main);
}

.identity-copy h1 {
  font-size: 1.55rem;
  line-height: 1.24;
  letter-spacing: -.03em;
  margin: 0 0 5px;
}

.subtitle {
  font-size: .91rem;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.42;
}

.organization {
  font-size: .84rem;
  margin: 0;
  line-height: 1.35;
}

.quick-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}

.quick-action {
  appearance: none;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  width: 62px;
  color: inherit;
  font-weight: 700;
  font-size: .67rem;
  padding: 0;
}

.qa-icon {
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--deep);
  border-radius: 100%;
  width: 46px;
  height: 46px;
  box-shadow: 0 3px 10px #1929421c;
  font-size: 1.28rem;
}

.quick-action:hover .qa-icon {
  background: var(--light);
}

.primary-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  padding: 11px 10px;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.32;
}

.btn-add {
  background: var(--deep);
  color: white;
}

.btn-share {
  background: #fff;
  color: var(--deep);
}

.link-qr {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  font-size: .76rem;
  padding: 13px 5px 4px;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e5ad43;
  outline-offset: 3px;
}

.section {
  background: white;
  padding: 24px 21px;
  border-top: 9px solid #f2f5f7;
  scroll-margin-top: 12px;
}

.section h2 {
  font-size: 1.11rem;
  line-height: 1.35;
  border-left: 4px solid var(--main);
  padding-left: 10px;
  margin: 0 0 17px;
}

.section h3 {
  font-size: .96rem;
}

.subsection-title {
  margin: 25px 0 12px;
}

.micro-label {
  font-weight: 800;
  color: var(--main);
  font-size: .78rem;
}

.prose {
  font-size: .89rem;
  color: #3e5061;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.prose p {
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  padding-left: 22px;
}

.contact-short {
  padding-top: 21px;
}

.info-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 19px;
  min-width: 0;
}

.info-line:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--light);
  display: grid;
  place-items: center;
  color: var(--deep);
  flex: 0 0 40px;
}

.info-line div {
  min-width: 0;
}

.info-line small {
  font-size: .72rem;
  color: #64758a;
  display: block;
}

.info-line a {
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-pill {
  border-radius: 30px;
  background: var(--light);
  padding: 9px 12px;
  color: var(--deep);
  font-size: .77rem;
  text-decoration: none;
  font-weight: 800;
}

.stack,
.service-stack {
  display: grid;
  gap: 15px;
}

.location-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
}

.location-item h3 {
  margin: 0 0 7px;
}

.location-item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.55;
}

.small-muted {
  font-size: .77rem !important;
  color: #67778a !important;
  margin-top: 9px !important;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-heading span {
  font-size: .75rem;
  color: #667889;
}

.inline-buttons {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.inline-buttons a {
  background: #fff;
  padding: 8px 11px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 800;
  font-size: .79rem;
  color: var(--deep);
}

.expertise-list {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 17px;
  font-size: .9rem;
}

.expertise-list li::marker {
  color: var(--main);
}

.expertise-list strong {
  font-weight: 800;
}

.expertise-list p {
  color: #506074;
  margin: 6px 0 0;
  line-height: 1.66;
}

.extra-links {
  display: grid;
  gap: 8px;
  padding-left: 16px;
}

.extra-links a {
  color: var(--main);
  font-size: .85rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 18px #18354e0c;
}

.service-card>img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-body {
  padding: 15px;
}

.service-body h3 {
  margin: 0 0 8px;
}

.price {
  font-weight: 800;
  color: var(--main);
}

.small-prose {
  font-size: .81rem;
}

.btn-outline {
  background: white;
  border: 1px solid var(--main);
  color: var(--deep);
  margin-top: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-grid a {
  text-decoration: none;
  color: #54667b;
  font-size: .76rem;
}

.gallery-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid small {
  display: block;
  margin-top: 5px;
}

.video-grid {
  display: grid;
  gap: 12px;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 10px;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 43%;
  flex: 0 0 43%;
  aspect-ratio: 16/10;
  background: var(--light);
  border-radius: 7px;
  overflow: hidden;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-symbol {
  position: absolute;
  border-radius: 100%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #0b233cbd;
  color: white;
}

.video-content h3 {
  font-size: .88rem;
  margin: 0 0 9px;
}

.video-content a {
  color: var(--main);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.document-item {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.pdf-icon {
  font-size: .73rem;
  padding: 9px 7px;
  border-radius: 5px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.document-copy {
  flex: 1;
  display: grid;
  gap: 4px;
}

.document-copy strong {
  font-size: .86rem;
}

.document-copy small {
  color: #627387;
  font-size: .72rem;
}

.arrow {
  font-size: 1.1rem;
  color: var(--main);
}

.payment-grid {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 0;
  font-size: .83rem;
  margin: 0 0 15px;
}

.payment-grid dt,
.payment-grid dd {
  margin: 0;
  padding: 10px;
  overflow-wrap: anywhere;
}

.payment-grid dt {
  font-weight: 800;
  color: var(--deep);
}

.payment-grid dt:nth-of-type(odd),
.payment-grid dd:nth-of-type(odd) {
  background: #f0f4f7;
}

.payment-clabe {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.section-intro {
  color: #617185;
  font-size: .85rem;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.contact-form label:not(.privacy-check) {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: .79rem;
}

.contact-form input:not([type=checkbox]),
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd7e4;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: .86rem;
  color: #182c41;
  background: #fff;
}

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

.privacy-check {
  display: flex;
  gap: 8px;
  font-size: .78rem;
  color: #5f6e7b;
}

.privacy-check a {
  font-weight: 800;
  color: var(--main);
}

.bot-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.errorlist {
  color: #b0363b;
  font-size: .78rem;
}

.form-errors {
  border: 1px solid #f2c4c7;
  padding: 10px;
}

.form-success {
  background: #e9f7ed;
  border: 1px solid #bee0c9;
  padding: 12px;
  font-size: .86rem;
}

.card-footer {
  text-align: center;
  color: #76869a;
  padding: 25px 15px;
  font-size: .73rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8ec;
  box-shadow: 0 -6px 22px #0c28451c;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom,0);
}

.nav-inner {
  display: flex;
  gap: 2px;
  max-width: 475px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner a {
  min-width: 65px;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  flex-direction: column;
  font-size: .64rem;
  text-decoration: none;
  padding: 8px 5px;
  color: #344b61;
}

.nav-inner a span {
  font-size: 1.09rem;
  color: var(--main);
}

.qr-modal {
  max-width: min(340px,92vw);
  border: 0;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 12px 45px #0005;
}

.qr-modal::backdrop {
  background: #0616269c;
}

.qr-modal img {
  width: min(260px,78vw);
  margin: 15px auto;
}

.qr-modal .btn {
  width: 100%;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.modal-head button {
  border: 0;
  background: #eaf0f7;
  border-radius: 6px;
  padding: 8px;
}

.qr-modal p {
  font-size: .82rem;
  margin: 12px 0 0;
}

.qr-modal a {
  font-size: .84rem;
}


/* 04. Contactos y ubicaciones junto al telÃ©fono */
.locations-near-contact {
  margin-top: 18px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.locations-near-contact .section-heading {
  margin-bottom: 14px;
}

.locations-near-contact .section-heading h2 {
  font-size: 1rem;
  margin: 0;
}

.locations-near-contact .section-heading span {
  font-size: .7rem;
  white-space: nowrap;
}

.location-inline {
  align-items: flex-start;
  margin-bottom: 15px;
}

.location-inline .info-icon {
  margin-top: 2px;
}

.location-inline-content {
  flex: 1;
  min-width: 0;
}

.location-inline-name {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
}

.location-inline-address {
  font-size: .81rem;
  line-height: 1.5;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.location-inline .inline-buttons {
  margin-top: 9px;
}

.location-inline .inline-buttons a {
  border: 1px solid var(--line);
  background: var(--light);
  border-radius: 7px;
  font-size: .77rem;
  padding: 8px 11px;
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
}


/* 05. ImÃ¡genes de servicios completas en formato cuadrado (1:1) */
.service-card .service-image-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f7f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.service-card .service-image-square img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}


/* 06. Plantillas Degradado y Moderna */
.theme-moderna .identity-zone {
  background: linear-gradient(155deg,var(--deep),var(--main));
  color: white;
}

.theme-moderna .mini-brand {
  color: #ffffffed;
}

.theme-moderna .views-badge {
  background: #ffffff25;
  color: white;
}

.theme-moderna .logo-frame {
  border-radius: 20px;
}

.theme-moderna .qa-icon {
  border-radius: 12px;
}

.theme-moderna .btn-add {
  background: white;
  color: var(--deep);
}

.theme-profesional .mobile-shell,
.theme-moderna .mobile-shell {
  background: linear-gradient(170deg,#f7fcff 0%,var(--card-wash) 21%,var(--main) 65%,var(--card-floor) 100%);
}

.theme-profesional .identity-zone,
.theme-moderna .identity-zone {
  background: transparent;
  color: var(--deep);
  overflow: visible;
  padding: 0 16px 27px;
  isolation: isolate;
}

.theme-profesional .identity-zone::before,
.theme-moderna .identity-zone::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 177px;
  background-image: linear-gradient(180deg,rgba(5,20,40,.10),rgba(5,20,40,.20)),var(--user-cover,linear-gradient(135deg,var(--main),var(--deep)));
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.theme-profesional .identity-zone::after,
.theme-moderna .identity-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 177px 0 0;
  background: linear-gradient(170deg,#f9fdff 0%,var(--card-wash) 56%,rgba(var(--card-rgb),.16) 100%);
  pointer-events: none;
}

.theme-profesional .identity-top,
.theme-moderna .identity-top {
  height: 48px;
  position: relative;
  z-index: 1;
  color: white;
}

.theme-profesional .identity-top .views-badge,
.theme-moderna .identity-top .views-badge {
  background: #ffffffed;
  color: var(--deep);
  border-radius: 30px;
}

.theme-profesional .identity-content,
.theme-moderna .identity-content {
  padding-top: 133px;
}

.theme-profesional .logo-frame,
.theme-moderna .logo-frame {
  width: 188px;
  height: 103px;
  margin: 0 auto 13px;
  background: #fff;
  box-shadow: 0 9px 29px #162f4540;
  border: 3px solid white;
  border-radius: 17px;
}

.theme-profesional .photo-frame,
.theme-moderna .photo-frame {
  width: 146px;
  height: 146px;
  border: 5px solid white;
  box-shadow: 0 12px 28px #16304729;
}

.theme-profesional .person-row,
.theme-moderna .person-row {
  gap: 11px;
}

.theme-profesional .identity-copy h1,
.theme-moderna .identity-copy h1 {
  font-size: 1.68rem;
  line-height: 1.25;
}

.theme-profesional .subtitle,
.theme-moderna .subtitle {
  font-size: .92rem;
  max-width: 375px;
  margin: 0 auto 6px;
}

.theme-profesional .quick-actions,
.theme-moderna .quick-actions {
  margin: 19px 0 19px;
}

.theme-profesional .qa-icon,
.theme-moderna .qa-icon {
  border-radius: 50%;
  background: #fff;
  color: var(--deep);
  border: 1px solid rgba(var(--card-rgb),.18);
  width: 48px;
  height: 48px;
}

.theme-profesional .btn,
.theme-moderna .btn {
  border-radius: 8px;
}

.theme-profesional .btn-add,
.theme-moderna .btn-add {
  background: var(--deep);
  color: white;
}

.theme-profesional .btn-share,
.theme-moderna .btn-share {
  background: #fff;
  color: var(--deep);
  border: 1px solid rgba(var(--card-rgb),.2);
}

.theme-profesional .link-qr,
.theme-moderna .link-qr {
  color: var(--deep);
}

.theme-profesional .section,
.theme-moderna .section {
  position: relative;
  margin: 0 12px 13px;
  border: 1px solid rgba(var(--card-rgb),.15);
  border-radius: 12px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 7px 18px rgba(8,30,56,.10);
}

.theme-profesional .contact-short,
.theme-moderna .contact-short {
  margin-top: 12px;
}

.theme-profesional .card-footer,
.theme-moderna .card-footer {
  color: #fff;
}


/* 07. Plantilla GeomÃ©trica: azul original y colores alternativos */
.theme-elegante {
  --banner: var(--deep);
  --geo-line: rgba(136,207,248,.16);
  --geo-glow: rgba(48,184,240,.15);
}

.theme-elegante .identity-zone {
  background: transparent;
  color: white;
  min-height: 0;
  overflow: visible;
  padding: 0 16px 25px;
  isolation: isolate;
}

.theme-elegante .identity-zone:before {
  opacity: .5;
  background-image: linear-gradient(30deg,transparent 47%,#ffffff24 48%,#ffffff24 49%,transparent 50%),linear-gradient(150deg,transparent 47%,#ffffff18 48%,#ffffff18 49%,transparent 50%),radial-gradient(circle at 18% 23%,#ffffff46 2px,transparent 3px),radial-gradient(circle at 74% 49%,#ffffff54 3px,transparent 4px);
  background-size: 128px 116px,150px 140px,110px 140px,120px 120px;
}

.theme-elegante .mini-brand {
  color: #e6f1fb;
}

.theme-elegante .views-badge {
  background: #ffffff28;
  color: white;
}

.theme-elegante .logo-frame {
  width: 172px;
  height: 111px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px #0006;
  margin: 0 auto 17px;
  border: 3px solid white;
}

.theme-elegante .person-row {
  flex-direction: row;
  text-align: left;
  justify-content: center;
  gap: 14px;
  max-width: 400px;
  align-items: center;
}

.theme-elegante .photo-frame {
  width: 109px;
  height: 109px;
  border-width: 3px;
  flex: 0 0 109px;
  border: 4px solid white;
}

.theme-elegante .identity-copy {
  flex: 1;
  min-width: 0;
}

.theme-elegante .identity-copy h1 {
  font-size: 1.45rem;
}

.theme-elegante .qa-icon {
  color: var(--deep);
  background: white;
  border-radius: 50%;
  width: 47px;
  height: 47px;
}

.theme-elegante .btn-add {
  background: transparent;
  border: 1px solid #c5eafd;
  color: white;
}

.theme-elegante .btn-share {
  background: #fff;
  color: #092648;
}

.theme-elegante .mobile-shell {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg,#061a37 0%,var(--deep) 52%,var(--main) 100%);
  color: white;
}

.theme-elegante .mobile-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
  background-image: radial-gradient(circle at 10% 12%,rgba(102,203,255,.55) 0 3px,transparent 4px),radial-gradient(circle at 87% 19%,rgba(102,203,255,.42) 0 4px,transparent 5px),radial-gradient(circle at 30% 37%,rgba(102,203,255,.45) 0 3px,transparent 4px),radial-gradient(circle at 84% 64%,rgba(102,203,255,.4) 0 3px,transparent 4px),linear-gradient(32deg,transparent 49.65%,var(--geo-line) 49.9% 50.1%,transparent 50.35%),linear-gradient(145deg,transparent 49.7%,var(--geo-line) 49.9% 50.1%,transparent 50.3%),radial-gradient(ellipse at 100% 10%,var(--geo-glow),transparent 45%);
  background-size: 330px 360px,340px 420px,350px 400px,300px 390px,230px 310px,280px 260px,100% 100%;
}

.theme-elegante .identity-zone::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 164px;
  background-image: linear-gradient(180deg,rgba(2,13,35,.15),rgba(2,13,35,.35)),var(--user-cover,linear-gradient(125deg,#09264d,#164b7e));
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.theme-elegante .identity-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 164px 0 0;
  background: linear-gradient(180deg,rgba(6,22,48,.94),rgba(6,22,48,.32) 70%,transparent);
}

.theme-elegante .identity-top {
  height: 49px;
  position: relative;
  z-index: 1;
}

.theme-elegante .identity-content {
  padding-top: 119px;
}

.theme-elegante .identity-copy .subtitle {
  font-size: .81rem;
  line-height: 1.4;
}

.theme-elegante .quick-actions {
  margin: 22px 0 20px;
}

.theme-elegante .link-qr {
  color: #d5eeff;
}

.theme-elegante .section {
  margin: 0 12px 13px;
  padding: 24px 20px;
  border: 1px solid rgba(135,206,246,.22);
  border-radius: 10px;
  background: rgba(6,25,55,.87);
  color: #f4f9ff;
  box-shadow: 0 8px 18px #0002;
}

.theme-elegante .section h2 {
  color: #fff;
  border-left-color: #57c8f1;
}

.theme-elegante .section h3,
.theme-elegante .info-line a,
.theme-elegante .document-item,
.theme-elegante .video-content h3 {
  color: #fff;
}

.theme-elegante .section .prose,
.theme-elegante .section .prose p,
.theme-elegante .section .expertise-list p,
.theme-elegante .section .small-muted,
.theme-elegante .section .section-intro,
.theme-elegante .section .info-line small,
.theme-elegante .section .location-item p,
.theme-elegante .section .location-item .small-muted {
  color: #d8e7f7 !important;
}

.theme-elegante .section a:not(.btn),
.theme-elegante .section .micro-label {
  color: #b7eaff;
}

.theme-elegante .section .info-icon,
.theme-elegante .section .social-pill {
  background: #173d6b;
  color: #fff;
}

.theme-elegante .section .location-item,
.theme-elegante .section .service-card,
.theme-elegante .section .document-item,
.theme-elegante .section .video-item {
  background: #103359;
  border-color: #34577a;
}

.theme-elegante .section .service-body,
.theme-elegante .section .document-copy {
  color: #f4f9ff;
}

.theme-elegante .inline-buttons a,
.theme-elegante .btn-outline {
  background: #fff;
  color: #10345c !important;
}

.theme-elegante .section .payment-grid dt,
.theme-elegante .section .payment-grid dd {
  color: #fff;
}

.theme-elegante .payment-grid dt:nth-of-type(odd),
.theme-elegante .payment-grid dd:nth-of-type(odd) {
  background: #23496e;
}

.theme-elegante .section .contact-form label,
.theme-elegante .section .privacy-check {
  color: #edf8ff;
}

.theme-elegante .section .form-success {
  color: #173321;
}

.theme-elegante .card-footer {
  color: #d9ecfa;
}

.theme-elegante .bottom-nav {
  background: #081f43;
  border-color: #2d537c;
}

.theme-elegante .nav-inner a {
  color: #e8f5ff;
}

.theme-elegante .nav-inner a span {
  color: #9bdaff;
}

.theme-elegante .locations-near-contact {
  border-top-color: #34577a;
}

.theme-elegante .location-inline-name,
.theme-elegante .location-inline-address {
  color: #edf8ff;
}

.theme-elegante .location-inline .inline-buttons a {
  background: #fff;
  color: #10345c !important;
}

.theme-elegante:not(.palette-azul) {
  --geo-line: color-mix(in srgb,var(--main) 32%,transparent);
  --geo-glow: color-mix(in srgb,var(--main) 20%,transparent);
  --geo-panel: color-mix(in srgb,var(--deep) 75%,#111019);
  --geo-surface: color-mix(in srgb,var(--deep) 88%,#080913);
  --geo-accent: color-mix(in srgb,var(--main) 40%,white);
}

.theme-elegante:not(.palette-azul) .mobile-shell {
  background: linear-gradient(155deg,
    color-mix(in srgb,var(--deep) 55%,#080913),
    var(--deep) 55%,var(--main));
}

.theme-elegante:not(.palette-azul) .mobile-shell::before {
  background-image: radial-gradient(circle at 10% 12%,var(--geo-accent) 0 3px,transparent 4px),
    radial-gradient(circle at 87% 19%,var(--geo-accent) 0 4px,transparent 5px),
    radial-gradient(circle at 30% 37%,var(--geo-accent) 0 3px,transparent 4px),
    radial-gradient(circle at 84% 64%,var(--geo-accent) 0 3px,transparent 4px),
    linear-gradient(32deg,transparent 49.65%,var(--geo-line) 49.9% 50.1%,transparent 50.35%),
    linear-gradient(145deg,transparent 49.7%,var(--geo-line) 49.9% 50.1%,transparent 50.3%),
    radial-gradient(ellipse at 100% 10%,var(--geo-glow),transparent 45%);
}

.theme-elegante:not(.palette-azul) .identity-zone::before {
  background-image: linear-gradient(180deg,#00000018,#00000055),
    var(--user-cover,linear-gradient(125deg,var(--deep),var(--main)));
}

.theme-elegante:not(.palette-azul) .identity-zone::after {
  background: linear-gradient(180deg,var(--geo-surface),
    color-mix(in srgb,var(--deep) 35%,transparent) 70%,transparent);
}

.theme-elegante:not(.palette-azul) .mini-brand,
.theme-elegante:not(.palette-azul) .card-footer {
  color: #f7f3f5;
}

.theme-elegante:not(.palette-azul) .btn-add {
  border-color: var(--geo-accent);
}

.theme-elegante:not(.palette-azul) .btn-share,
.theme-elegante:not(.palette-azul) .qa-icon {
  color: var(--deep);
}

.theme-elegante:not(.palette-azul) .link-qr {
  color: var(--geo-accent);
}

.theme-elegante:not(.palette-azul) .section {
  background: var(--geo-surface);
  border-color: var(--geo-line);
}

.theme-elegante:not(.palette-azul) .section h2 {
  border-left-color: var(--geo-accent);
}

.theme-elegante:not(.palette-azul) .section .prose,
.theme-elegante:not(.palette-azul) .section .prose p,
.theme-elegante:not(.palette-azul) .section .expertise-list p,
.theme-elegante:not(.palette-azul) .section .small-muted,
.theme-elegante:not(.palette-azul) .section .section-intro,
.theme-elegante:not(.palette-azul) .section .info-line small,
.theme-elegante:not(.palette-azul) .section .location-item p,
.theme-elegante:not(.palette-azul) .section .location-item .small-muted {
  color: #f2eaf0 !important;
}

.theme-elegante:not(.palette-azul) .section a:not(.btn),
.theme-elegante:not(.palette-azul) .section .micro-label {
  color: var(--geo-accent);
}

.theme-elegante:not(.palette-azul) .section .info-icon,
.theme-elegante:not(.palette-azul) .section .social-pill {
  background: var(--geo-panel);
}

.theme-elegante:not(.palette-azul) .section .location-item,
.theme-elegante:not(.palette-azul) .section .service-card,
.theme-elegante:not(.palette-azul) .section .document-item,
.theme-elegante:not(.palette-azul) .section .video-item {
  background: var(--geo-panel);
  border-color: var(--geo-line);
}

.theme-elegante:not(.palette-azul) .inline-buttons a,
.theme-elegante:not(.palette-azul) .btn-outline {
  color: var(--deep) !important;
}

.theme-elegante:not(.palette-azul) .payment-grid dt:nth-of-type(odd),
.theme-elegante:not(.palette-azul) .payment-grid dd:nth-of-type(odd) {
  background: var(--geo-panel);
}

.theme-elegante:not(.palette-azul) .bottom-nav {
  background: var(--geo-surface);
  border-color: var(--geo-line);
}

.theme-elegante:not(.palette-azul) .nav-inner a span {
  color: var(--geo-accent);
}

.theme-elegante:not(.palette-azul) .locations-near-contact {
  border-top-color: var(--geo-line);
}

.theme-elegante:not(.palette-azul) .location-inline .inline-buttons a {
  color: var(--deep) !important;
}


/* 08. AdaptaciÃ³n a distintas pantallas y preferencias de movimiento */

@media (min-width:700px) {
  .card-page {
    padding-top: 24px;
  }

  .mobile-shell {
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 85px;
  }

  .bottom-nav {
    max-width: 475px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
  }
}


@media (max-width:365px) {
  .quick-action {
    width: 54px;
  }

  .qa-icon {
    width: 41px;
    height: 41px;
  }

  .section {
    padding: 21px 15px;
  }

  .identity-zone {
    padding-left: 12px;
    padding-right: 12px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}


@media (max-width:365px) {
  .theme-elegante .person-row {
    gap: 10px;
  }

  .theme-elegante .photo-frame {
    width: 94px;
    height: 94px;
    flex-basis: 94px;
  }

  .theme-elegante .identity-copy h1 {
    font-size: 1.3rem;
  }

  .theme-profesional .section,.theme-elegante .section,.theme-moderna .section {
    margin-left: 7px;
    margin-right: 7px;
  }
}