/* CONTACTO NUEVO */
.contact-map-wrapper {
  min-height: 320px;
  height: 100%;
  background: var(--card-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(13,110,253,0.07);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.contact-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--radius-md);
}

body.dark-mode .contact-map-iframe {
  filter: invert(0.9) hue-rotate(180deg) brightness(1.1);
}
.contact-card .section-title {
  margin-bottom: 0.5rem;
  color: var(--text-color) !important;
}

.contact-card .text-soft,
.contact-card p,
.contact-card li,
.contact-card span,
.contact-card small,
.contact-card a,
.contact-card i {
  color: var(--text-color) !important;
}

.contact-card .contact-strong {
  color: var(--text-color) !important;
}

.contact-card .contact-map-wrapper,
.contact-card .contact-map-iframe {
  background: var(--card-color);
}
.contact-card ul {
  font-size: 1.13rem;
}
/* Social icons uniform style */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--button-color);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(25,135,84,0.10);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  border: none;
}

.social-icon-link i {
  color: #ffffff !important;
}

.social-icon-link svg {
  fill: #ffffff !important;
}

.social-icon-link:hover {
  background: color-mix(in srgb, var(--button-color) 80%, var(--primary-color) 20%);
  color: #fff;
  transform: translateY(-2px) scale(1.08);
}
@media (max-width: 767.98px) {
  .social-icon-link {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
@media (max-width: 991.98px) {
  .contact-map-wrapper {
    min-height: 220px;
  }
  .contact-map-iframe {
    min-height: 220px;
  }
}
@media (max-width: 767.98px) {
  .contact-card .row {
    flex-direction: column;
  }
  .contact-map-wrapper {
    min-height: 180px;
    margin-bottom: 1.5rem;
  }
  .contact-map-iframe {
    min-height: 180px;
  }
  .social-icon-link {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
:root {
  --primary-color: var(--button-color);
  --secondary-color: var(--background-color);
  --title-color: var(--text-color);
  --testimonial-color: var(--card-color);
  --button-color: #198754;
  --text-color: #222831;
  --background-color: #ffffff;
  --card-color: #ffffff;
  --navbar-color: #ffffff;
  --footer-color: #f8f9fa;
  --ui-navbar-text-color: #111111;
  --ui-footer-text-color: #222831;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 36px rgba(9, 30, 66, 0.08);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.dark-mode {
  --background-color: #181c22;
  --card-color: #23272f;
  --text-color: #ffffff;
  --footer-color: #0d1117;
  --ui-footer-text-color: #e1e6eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  --navbar-toggler-filter: none;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-color);
  background: radial-gradient(circle at 12% 8%, rgba(13, 110, 253, 0.08), transparent 30%),
    radial-gradient(circle at 92% 95%, rgba(25, 135, 84, 0.08), transparent 28%),
    var(--background-color);
  line-height: 1.65;
}

body.app-loading:not(.page-ready) {
  opacity: 0;
}

body.app-loading {
  transition: opacity 0.18s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 95%);
  z-index: -1;
}

section {
  padding: 48px 0;
}

.section-title {
  color: var(--title-color);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-color);
  max-width: 650px;
}

.text-soft {
  color: var(--text-color);
}


.bg-soft {
  background-color: var(--background-color);
}

.navbar {
  background: var(--navbar-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  --bs-navbar-color: var(--ui-navbar-text-color);
  --bs-navbar-hover-color: var(--ui-navbar-text-color);
  --bs-navbar-active-color: var(--ui-navbar-text-color);
  --bs-navbar-brand-color: var(--ui-navbar-text-color);
  --bs-navbar-brand-hover-color: var(--ui-navbar-text-color);
}

.navbar-brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.navbar .section-title,
.navbar .text-soft,
.navbar small,
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-brand span,
.navbar .navbar-text {
  color: var(--ui-navbar-text-color) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

#brandName,
.navbar .nav-link,
.navbar .navbar-brand {
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}

.navbar .btn-brand,
.navbar .btn-brand:focus,
.navbar .btn-brand:hover {
  color: #ffffff !important;
  text-shadow: none;
}

.navbar .btn-outline-brand {
  border-color: var(--ui-navbar-text-color);
  color: var(--ui-navbar-text-color);
}

.navbar .btn-outline-brand:hover {
  background: var(--ui-navbar-text-color);
  color: var(--navbar-color);
}

.navbar .navbar-toggler {
  border-color: color-mix(in srgb, var(--ui-navbar-text-color) 35%, transparent 65%);
}

.navbar .navbar-toggler-icon {
  filter: var(--navbar-toggler-filter);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.btn-brand,
.btn-brand:focus {
  background: var(--button-color);
  border-color: var(--button-color);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(25, 135, 84, 0.24);
  color: #fff;
}

.btn-outline-brand {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
}

.btn-outline-brand:hover {
  background: var(--primary-color);
  color: #fff;
}

.hero {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-wrap {
  --hero-overlay-start: rgba(2, 6, 23, 0.78);
  --hero-overlay-mid: rgba(2, 6, 23, 0.45);
  --hero-overlay-end: rgba(2, 6, 23, 0.7);
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.62));
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  border: none;
  position: relative;
}

.hero-cover {
  width: 100%;
  min-height: 100vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(98deg, var(--hero-overlay-start) 15%, var(--hero-overlay-mid) 58%, var(--hero-overlay-end) 100%);
  pointer-events: none;
}

.hero-wrap.hero-contrast-strong {
  --hero-overlay-start: rgba(2, 6, 23, 0.9);
  --hero-overlay-mid: rgba(2, 6, 23, 0.72);
  --hero-overlay-end: rgba(2, 6, 23, 0.86);
}

.hero-wrap.hero-contrast-strong .hero-title,
.hero-wrap.hero-contrast-strong .hero-badge,
.hero-wrap.hero-contrast-strong .text-soft,
.hero-wrap.hero-contrast-strong .btn-outline-brand {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-wrap::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 20%, white 80%), transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  background: color-mix(in srgb, var(--primary-color) 52%, black 48%);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.55rem);
  color: #ffffff;
  line-height: 1.1;
  font-weight: 800;
  margin-top: 1rem;
  letter-spacing: -0.03em;
}

.hero .text-soft {
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn-outline-brand {
  border-color: #ffffff;
  color: #ffffff;
}

.hero .btn-outline-brand:hover {
  background: #ffffff;
  color: #111827;
}

.profile-card,
.service-card,
.stat-card,
.gallery-card,
.testimonial-card,
.faq-card,
.contact-card,
.editor-card {
  background-color: var(--card-color);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.testimonial-card:hover,
.gallery-card:hover,
.editor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.profile-photo {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.profile-card-enhanced {
  position: relative;
  overflow: hidden;
}

.profile-card-enhanced::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 16%, white 84%), transparent 70%);
  pointer-events: none;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.profile-name {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.profile-role {
  font-size: clamp(1.15rem, 1.9vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.profile-description {
  font-size: clamp(1.1rem, 1.3vw, 1.45rem);
  max-width: 60ch;
  line-height: 1.55;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--button-color);
}

.service-icon i {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}

.process-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-color) 92%, white 8%), var(--card-color));
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.process-top {
  min-height: 52px;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--button-color) 14%, var(--background-color) 86%);
  color: var(--button-color);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--button-color);
  color: #fff;
}

.process-icon i {
  color: #fff;
  font-size: 1.25rem;
}

.process-card .section-title {
  font-size: 1.2rem;
}

.stat-card h3 {
  color: var(--text-color);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
}


/* Galería premium, grid responsivo */
#galleryContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.gallery-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--card-color);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.10);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.gallery-card:hover {
  box-shadow: 0 16px 48px rgba(15,23,42,0.18);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.35s ease;
  display: block;
}
.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.1) 60%, rgba(2, 6, 23, 0) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.gallery-title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.gallery-action {
  transform: translateY(14px);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-within .gallery-overlay,
.gallery-card.is-touch-active .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover .gallery-action,
.gallery-card:focus-within .gallery-action,
.gallery-card.is-touch-active .gallery-action {
  transform: translateY(0);
}
@media (max-width: 991.98px) {
  #galleryContainer {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  .gallery-card img {
    aspect-ratio: 16/11;
  }
}
@media (max-width: 767.98px) {
  #galleryContainer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .gallery-card img {
    aspect-ratio: 16/9;
  }
}

.testimonial-card {
  background-color: var(--testimonial-color);
}

.testimonials-viewport {
  overflow: hidden;
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.testimonials-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: testimonials-marquee 28s linear infinite;
}

.testimonials-viewport:hover .testimonials-track {
  animation-play-state: paused;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
  border-radius: 20px;
  background: var(--card-color);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cta-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--button-color);
}

.cta-strip .section-title {
  margin-bottom: 0.25rem;
}

.cta-strip .text-soft {
  max-width: 62ch;
}

.testimonial-item {
  flex: 0 0 min(360px, 78vw);
}

.testimonial-item .testimonial-card {
  height: 100%;
  min-height: 190px;
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.stars {
  color: #f4b400;
  letter-spacing: 0.06em;
}

@media (max-width: 767.98px) {
  .testimonial-item {
    flex-basis: min(300px, 82vw);
  }

  .testimonials-track {
    animation-duration: 22s;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.faq-button {
  background-color: var(--card-color);
  color: var(--text-color);
  font-weight: 700;
}

.faq-button:not(.collapsed) {
  background-color: color-mix(in srgb, var(--button-color) 14%, var(--background-color) 86%);
  color: var(--text-color);
}

.faq-card .accordion-body {
  background-color: var(--card-color);
  color: var(--text-color);
}

.faq-button::after {
  filter: none;
}

body.dark-mode .faq-button::after {
  filter: invert(1);
}

.contact-strong {
  color: var(--text-color);
  font-weight: 700;
}

.footer {
  background: var(--footer-color);
  color: var(--ui-footer-text-color);
}

.footer,
.footer * {
  color: var(--ui-footer-text-color) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.footer a {
  color: var(--ui-footer-text-color);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.footer a:hover {
  color: #ffffff;
}

#developerCredit {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#developerCredit .credit-brand {
  color: #ff3b30 !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.45);
}

#developerCredit:hover .credit-brand {
  color: #ff6b63 !important;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  text-decoration: none;
  z-index: 1050;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.preview-shell {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.preview-shell .section-title,
.preview-shell .text-soft,
.preview-shell strong,
.preview-shell small,
.preview-shell p,
.preview-shell h3 {
  color: #111827 !important;
}

.preview-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.preview-navbar strong,
.preview-navbar .section-title {
  color: #111827 !important;
}

.preview-hero {
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary-color) 12%, #ffffff 88%), #ffffff);
}

.preview-hero .section-title,
.preview-hero .text-soft,
.preview-hero p,
.preview-hero h3 {
  color: #111827 !important;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.color-input-group {
  display: flex;
  gap: 0.5rem;
}

.color-chip {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
  section {
    padding: 40px 0;
  }

  .hero {
    min-height: 100vh;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 32px 0;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .profile-photo {
    width: min(100%, 260px);
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-role {
    font-size: 1.45rem;
  }

  .profile-description {
    font-size: 1.12rem;
  }
}
