:root {
  --azul-oscuro: #17223d;
  --dorado: #ba9255;
  --blanco: #ffffff;
  --azul-claro: #6b87d0;
  --gris-suave: #e7e7e9;
  --texto: #3e4a66;
}

@font-face {
  font-family: 'Belgiano Serif';
  src: url('assets/Belgiano Serif 2.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Belgiano Serif', sans-serif;
  color: var(--azul-oscuro);
  line-height: 1.6;
  background: var(--blanco);
}

.container {
  width: min(1440px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 34, 61, 0.12);
  box-shadow: 0 6px 18px rgba(23, 34, 61, 0.08);
}

.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo-image {
  display: block;
  width: clamp(190px, 20vw, 300px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #2f3b58;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--dorado);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.btn-primary {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--blanco);
  border: 1px solid rgba(23, 34, 61, 0.25);
  background: linear-gradient(135deg, #2b3d69, #1c2948);
  padding: 0.65rem 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(23, 34, 61, 0.18);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(23, 34, 61, 0.25);
}

.legal-page {
  padding: 3.5rem 0;
  background: radial-gradient(circle at top right, #eef2ff 0%, #f5f6f8 48%, #f8f8fa 100%);
  min-height: calc(100vh - 96px);
}

.legal-card {
  width: min(980px, 92%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(23, 34, 61, 0.12);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 14px 30px rgba(23, 34, 61, 0.08);
}

.legal-card h1 {
  margin-top: 0;
  color: #17223d;
}

.legal-card h2 {
  margin-top: 1.6rem;
}

.legal-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-nav a {
  color: #17223d;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 34, 61, 0.35);
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  background: var(--azul-claro);
  color: var(--blanco);
  padding: 0.65rem 1.1rem;
  margin-top: 0.5rem;
}

.section {
  padding: 4rem 0;
}

.quienes-somos-carousel {
  padding: 0;
  background: var(--gris-suave);
}

.carousel-shell {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100vw;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  min-height: calc(100vh - 103px);
  background: var(--gris-suave);
  display: flex;
  align-items: stretch;
}

.slide-general {
  background:
    linear-gradient(90deg, rgba(231, 231, 233, 0.78) 0%, rgba(231, 231, 233, 0.6) 55%, rgba(231, 231, 233, 0.35) 100%),
    var(--gris-suave);
}

.slide-general .slide-content {
  grid-template-columns: 0.9fr minmax(520px, 1.15fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.slide-general .slide-copy {
  max-width: 820px;
}

.slide-general .slide-visual {
  align-self: end;
  justify-self: end;
  width: 100%;
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  background: url('assets/carousel1.png') right -14px bottom / contain no-repeat;
}

.slide-content {
  width: min(1440px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  padding-inline: clamp(2.8rem, 4vw, 4rem);
}

.slide-copy {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-copy h3 {
  margin: 0;
  color: var(--dorado);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.18;
  max-width: 560px;
  font-size: clamp(1.55rem, 2.4vw, 2.85rem);
  font-family: 'Belgiano Serif', sans-serif;
  font-weight: 500;
}

.slide-copy h4 {
  margin: 1rem 0 0.8rem;
  color: var(--dorado);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  font-family: 'Belgiano Serif', sans-serif;
  font-weight: 600;
}

.slide-copy p {
  color: var(--texto);
  margin: 0.7rem 0;
  max-width: 700px;
  font-size: 1.03rem;
  text-align: justify;
  text-justify: inter-word;
}

.slide-copy p strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--azul-oscuro);
}

.slide-photo {
  display: flex;
  justify-content: center;
  align-items: end;
  height: 100%;
}

.slide-photo img {
  width: min(100%, 560px);
  max-height: calc(100vh - 170px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 16px rgba(23, 34, 61, 0.15));
}

.slide-ines .slide-photo img {
  width: min(100%, 640px);
  max-height: calc(100vh - 130px);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 34, 61, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--azul-oscuro);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.carousel-arrow.prev {
  left: 1rem;
}

.carousel-arrow.next {
  right: 1rem;
}

.carousel-arrow:hover {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: -2.25rem 0 1.35rem;
  position: relative;
  z-index: 2;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 34, 61, 0.22);
  padding: 0;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--azul-oscuro);
}

.card-section .container {
  background: #f7f9ff;
  border: 1px solid rgba(23, 34, 61, 0.08);
  border-radius: 14px;
  padding: 2rem;
}

.card-section.alt .container {
  background: #eef3ff;
}

#servicios {
  background: #ebebee;
}

.servicios-container {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 3.6rem 0 3rem !important;
}

.servicios-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #2f3b58;
  margin: 0;
  font-size: clamp(2.4rem, 3vw, 4rem);
  font-weight: 500;
}

.servicios-subtitle {
  text-align: center;
  color: var(--texto);
  margin: 0.25rem 0 3.25rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.6rem 3.1rem;
}

.servicio-item {
  text-align: center;
  padding: 2.1rem 2rem;
  border: 1px solid transparent;
  border-radius: 18px;
  min-height: 325px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.servicio-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.6rem;
}

.servicio-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(62%) sepia(20%) saturate(890%) hue-rotate(357deg) brightness(90%) contrast(86%);
  transition: filter 0.25s ease;
}

.servicio-item h3 {
  margin: 0 0 0.95rem;
  text-transform: uppercase;
  color: #1f2b4a;
  font-size: clamp(2rem, 2.1vw, 2.85rem);
  line-height: 1.08;
  font-weight: 600;
}

.servicio-item p {
  margin: 0;
  color: var(--texto);
  font-size: 0.98rem;
  line-height: 1.72;
}

.servicio-item:hover,
.servicio-item:focus-visible {
  background: var(--dorado);
  border-color: transparent;
  outline: none;
}

.servicio-item:hover h3,
.servicio-item:focus-visible h3 {
  color: var(--blanco);
}

.servicio-item:hover p,
.servicio-item:focus-visible p {
  color: var(--blanco);
}

.servicio-item:hover .servicio-icon,
.servicio-item:focus-visible .servicio-icon {
  color: var(--blanco);
}

.servicio-item:hover .servicio-icon img,
.servicio-item:focus-visible .servicio-icon img {
  filter: brightness(0) invert(1);
}

h2 {
  margin-top: 0;
  color: var(--azul-oscuro);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.services-list {
  margin: 0;
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 0;
  background: linear-gradient(135deg, #2b3d69, #1c2948);
  color: var(--blanco);
  padding: 4rem 0 1.4rem;
}

.footer-logo-row {
  padding-bottom: 1.1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

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

.footer-logo-image {
  width: clamp(230px, 26vw, 360px);
}

.footer-brand p {
  margin: 0 0 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 1.08rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blanco);
  text-decoration: none;
  font-size: 1.08rem;
  margin: 0;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.1rem;
}

.footer-link:hover {
  color: var(--dorado);
  border-bottom-color: var(--dorado);
}

.footer-contact-link i {
  font-size: 1.15rem;
}

.footer-map-wrap h3 {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.95rem;
  color: var(--dorado);
}

.footer-map-wrap p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.08rem;
}

.map-location-list {
  margin-bottom: 0.8rem;
}

.map-location-list p {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.footer-map-wrap iframe {
  width: 100%;
  min-height: 330px;
  border: 2px solid rgba(23, 34, 61, 0.35);
  border-radius: 12px;
}

.map-external-link {
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(23, 34, 61, 0.35);
  margin-top: 0.4rem;
  padding-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-cta {
  margin: 0;
  text-transform: uppercase;
  color: var(--dorado);
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #101a34;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.25rem;
}

.footer-social a:hover {
  background: var(--dorado);
  color: var(--blanco);
}

.footer-bottom-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
}

.footer-legal a:hover {
  color: var(--dorado);
  border-bottom-color: var(--dorado);
}


.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--dorado);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--dorado);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dorado);
  color: var(--blanco);
}

@media (max-width: 1024px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
    gap: 0.9rem;
  }

  .main-nav {
    width: auto;
    justify-content: center;
    gap: 0.65rem 1.2rem;
  }

  .btn-primary {
    width: auto;
    text-align: center;
  }

  .slide-content {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    padding-top: 1rem;
    padding-inline: clamp(2.2rem, 6vw, 3rem);
  }

  .slide-copy {
    padding: 1.5rem 0 0.8rem;
  }

  .slide-copy p {
    max-width: 100%;
  }

  .slide-general {
    background:
      linear-gradient(180deg, rgba(231, 231, 233, 0.88) 0%, rgba(231, 231, 233, 0.7) 65%, rgba(231, 231, 233, 0.45) 100%),
      var(--gris-suave);
  }

  .slide-general .slide-content {
    grid-template-columns: 1fr;
  }

  .slide-general .slide-visual {
    width: 100%;
    height: 58vh;
    max-height: 58vh;
    background-size: contain;
    background-position: right -10px bottom;
  }

  .slide-photo img {
    width: min(100%, 460px);
    max-height: 44vh;
  }

  .slide-ines .slide-photo img {
    width: min(100%, 520px);
    max-height: 52vh;
  }

  .carousel-dots {
    margin-top: 0.5rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    gap: 0.55rem 1rem;
  }

  .main-nav a,
  .btn-primary {
    font-size: 0.84rem;
  }

  .brand-logo-image {
    width: clamp(180px, 48vw, 260px);
  }

  .carousel-slide {
    min-height: calc(100vh - 145px);
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-arrow.prev {
    left: 0.5rem;
  }

  .carousel-arrow.next {
    right: 0.5rem;
  }

  .slide-content {
    padding-inline: 2.4rem;
  }

  .slide-copy h3 {
    font-size: 1.62rem;
  }

  .slide-copy p {
    font-size: 0.96rem;
  }

  .slide-ines .slide-photo img {
    width: min(100%, 480px);
    max-height: 50vh;
  }

  .slide-general {
    background:
      linear-gradient(180deg, rgba(231, 231, 233, 0.9) 0%, rgba(231, 231, 233, 0.76) 58%, rgba(231, 231, 233, 0.56) 100%),
      var(--gris-suave);
  }

  .slide-general .slide-visual {
    height: 56vh;
    max-height: 56vh;
    background-size: contain;
    background-position: right -6px bottom;
  }

  .servicios-container {
    padding-top: 2.6rem !important;
  }

  .servicios-subtitle {
    margin-bottom: 1.7rem;
    font-size: 0.96rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .servicio-item h3 {
    font-size: 1.8rem;
  }

  .servicio-item p {
    font-size: 0.95rem;
  }

  .site-footer {
    padding-top: 2.7rem;
  }

  .footer-logo-row {
    padding-bottom: 0.9rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-map-wrap h3 {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 4rem;
  }

  .footer-social {
    gap: 0.7rem;
  }

  .footer-bottom-links {
    align-items: flex-start;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .back-to-top {
    width: 46px;
    height: 46px;
    right: 0.8rem;
    bottom: 0.8rem;
  }
}
