/* ============================================
   VARIABLES
   ============================================ */
:root {
  --blanco: #ffffff;
  --rojo-Principal: #900c25;
  --rojo-secundario: #750016;
  --rojo-hover: #b00e2d;
  --gris-50: #f6f6f6;
  --gris-100: #e7e7e7;
  --gris-200: #d1d1d1;
  --gris-300: #b0b0b0;
  --gris-400: #888888;
  --gris-500: #6d6d6d;
  --gris-600: #5d5d5d;
  --gris-700: #4f4f4f;
  --gris-800: #454545;
  --gris-900: #3d3d3d;
  --gris-950: #262626;
  --fprincipal: "Montserrat", sans-serif;
  --fsubtitulo: "DM Serif Text", serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fprincipal);
  font-size: 1.6rem;
  color: var(--gris-900);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
   ============================================ */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header {
  background-color: var(--rojo-Principal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  gap: 0.8rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo {
  width: 5rem;
  height: auto;
}

.header-matriculas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-cci-img {
  width: 2.6rem;
  height: auto;
}

.header-mat-texto {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanco);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blanco);
  flex-shrink: 0;
  padding: 0.4rem;
  border-radius: 0.4rem;
  transition: background-color 0.2s;
}

.header-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.header-hamburger svg {
  width: 100%;
  height: 100%;
}

.header-hamburger .hamburger-line {
  transition:
    transform 0.3s,
    opacity 0.2s;
  transform-origin: center;
}

.header-hamburger.is-open .hamburger-line.top {
  transform: translateY(6px) rotate(45deg);
}

.header-hamburger.is-open .hamburger-line.mid {
  opacity: 0;
}

.header-hamburger.is-open .hamburger-line.bot {
  transform: translateY(-6px) rotate(-45deg);
}

.header_nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(28rem, 80vw);
  height: 100vh;
  background: var(--rojo-secundario);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 6rem 2rem 2rem;
  z-index: 200;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.header_nav.is-open {
  right: 0;
}

.header__link {
  text-decoration: none;
  text-transform: capitalize;
  font-weight: 600;
  padding: 1.2rem 1.6rem;
  color: var(--blanco);
  font-size: 1.8rem;
  line-height: 1.4;
  position: relative;
  transition:
    background-color 0.2s,
    opacity 0.2s;
  border-radius: 0.6rem;
  display: block;
}

.header__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header__link--active {
  opacity: 0.55;
  font-weight: 700;
  pointer-events: none;
}

.header__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--blanco);
  border-radius: 2px;
}

.header-overlay {
  display: none;
}

.header-overlay.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
}

/* ============================================
   HERO
   ============================================ */
.contacto-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal) 0%,
    var(--rojo-secundario) 100%
  );
  padding: 8rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.contacto-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50rem;
  height: 50rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: heroPulse 6s ease-in-out infinite;
}

.contacto-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 35rem;
  height: 35rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.contacto-hero-content {
  position: relative;
  z-index: 2;
}

.contacto-hero-titulo {
  font-family: var(--fsubtitulo);
  font-size: 4rem;
  color: var(--blanco);
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s ease-out;
}

.contacto-hero-sub {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ============================================
   INFO COLUMN
   ============================================ */
.contacto-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--gris-50);
  border-radius: 1.2rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  animation: fadeSlideUp 0.6s ease-out both;
}

.contacto-info-card:nth-child(1) {
  animation-delay: 0.1s;
}
.contacto-info-card:nth-child(2) {
  animation-delay: 0.2s;
}
.contacto-info-card:nth-child(3) {
  animation-delay: 0.3s;
}
.contacto-info-card:nth-child(4) {
  animation-delay: 0.4s;
}

.contacto-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contacto-info-icon {
  flex-shrink: 0;
  width: 4.8rem;
  height: 4.8rem;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal),
    var(--rojo-secundario)
  );
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
}

.contacto-info-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.contacto-info-text h3 {
  font-family: var(--fsubtitulo);
  font-size: 1.8rem;
  color: var(--gris-900);
  margin-bottom: 0.3rem;
}

.contacto-info-text p {
  font-size: 1.5rem;
  color: var(--gris-500);
  line-height: 1.6;
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.contacto-redes {
  padding: 2rem;
  background: var(--gris-50);
  border-radius: 1.2rem;
  animation: fadeSlideUp 0.6s ease-out 0.5s both;
}

.contacto-redes h3 {
  font-family: var(--fsubtitulo);
  font-size: 1.8rem;
  color: var(--gris-900);
  margin-bottom: 1.2rem;
}

.contacto-redes-links {
  display: flex;
  gap: 1.2rem;
}

.contacto-redes-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--blanco);
  border: 2px solid var(--gris-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo-Principal);
  text-decoration: none;
  transition: all 0.3s;
}

.contacto-redes-btn svg {
  width: 2.2rem;
  height: 2.2rem;
}

.contacto-redes-btn:hover {
  background: var(--rojo-Principal);
  border-color: var(--rojo-Principal);
  color: var(--blanco);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(144, 12, 37, 0.3);
}

/* ============================================
   MAP
   ============================================ */
.contacto-map {
  border-radius: 1.2rem;
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease-out 0.6s both;
}

.contacto-map iframe {
  width: 100%;
  height: 22rem;
  display: block;
}

/* ============================================
   FORM COLUMN
   ============================================ */
.contacto-form-col {
  display: flex;
  flex-direction: column;
}

.contacto-form-card {
  background: var(--blanco);
  border-radius: 1.6rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gris-100);
  animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.contacto-form-titulo {
  font-family: var(--fsubtitulo);
  font-size: 2.6rem;
  color: var(--rojo-Principal);
  margin-bottom: 0.5rem;
}

.contacto-form-desc {
  font-size: 1.5rem;
  color: var(--gris-400);
  margin-bottom: 2.5rem;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.contacto-campo {
  position: relative;
  margin-bottom: 2rem;
}

.contacto-campo-full {
  grid-column: 1 / -1;
}

.contacto-campo input,
.contacto-campo textarea {
  width: 100%;
  padding: 1.4rem 1.2rem 1rem;
  border: 2px solid var(--gris-200);
  border-radius: 0.8rem;
  font-family: var(--fprincipal);
  font-size: 1.6rem;
  color: var(--gris-900);
  background: var(--blanco);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  resize: vertical;
}

.contacto-campo textarea {
  min-height: 12rem;
}

.contacto-campo label {
  position: absolute;
  left: 1.2rem;
  top: 1.4rem;
  font-size: 1.6rem;
  color: var(--gris-400);
  pointer-events: none;
  transition: all 0.3s ease;
  transform-origin: left top;
}

.contacto-campo input:focus + label,
.contacto-campo input:not(:placeholder-shown) + label,
.contacto-campo textarea:focus + label,
.contacto-campo textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 1.2rem;
  color: var(--rojo-Principal);
  background: var(--blanco);
  padding: 0 0.4rem;
}

.contacto-campo input:focus,
.contacto-campo textarea:focus {
  border-color: var(--rojo-Principal);
  box-shadow: 0 0 0 3px rgba(144, 12, 37, 0.1);
}

.contacto-campo-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rojo-Principal);
  transition:
    width 0.4s,
    left 0.4s;
}

.contacto-campo input:focus ~ .contacto-campo-bar,
.contacto-campo textarea:focus ~ .contacto-campo-bar {
  width: 100%;
  left: 0;
}

.contacto-campo-error {
  display: block;
  font-size: 1.2rem;
  color: #dc3545;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
  max-height: 0;
  overflow: hidden;
}

.contacto-campo.error input,
.contacto-campo.error textarea {
  border-color: #dc3545;
}

.contacto-campo.error .contacto-campo-error {
  opacity: 1;
  transform: translateY(0);
  max-height: 3rem;
}

.contacto-campo.error input:focus ~ .contacto-campo-bar,
.contacto-campo.error textarea:focus ~ .contacto-campo-bar {
  background: #dc3545;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.contacto-btn-submit {
  width: 100%;
  padding: 1.6rem;
  border: none;
  border-radius: 0.8rem;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal),
    var(--rojo-secundario)
  );
  color: var(--blanco);
  font-family: var(--fprincipal);
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  margin-top: 0.5rem;
}

.contacto-btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.contacto-btn-submit:hover::before {
  left: 100%;
}

.contacto-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(144, 12, 37, 0.35);
}

.contacto-btn-submit:active {
  transform: translateY(0);
}

.contacto-btn-loading,
.contacto-btn-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.contacto-btn-submit.loading .contacto-btn-text {
  display: none;
}
.contacto-btn-submit.loading .contacto-btn-loading {
  display: flex;
}

.contacto-btn-submit.success {
  background: linear-gradient(135deg, #28a745, #218838);
}
.contacto-btn-submit.success .contacto-btn-text {
  display: none;
}
.contacto-btn-submit.success .contacto-btn-loading {
  display: none;
}
.contacto-btn-submit.success .contacto-btn-success {
  display: flex;
}

.contacto-spinner {
  width: 2rem;
  height: 2rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.contacto-btn-success svg {
  width: 2.4rem;
  height: 2.4rem;
}

/* ============================================
   TOAST
   ============================================ */
.contacto-toast {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--gris-950);
  color: var(--blanco);
  padding: 1.2rem 2.4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contacto-toast.visible {
  transform: translateX(-50%) translateY(0);
}

.contacto-toast-icon {
  color: #28a745;
  flex-shrink: 0;
}

.contacto-toast-icon svg {
  width: 2.2rem;
  height: 2.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-cci {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #999;
}

.footer-cci-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.4;
  max-width: 250px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rojo-Principal);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-nav-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 0.85rem;
  transition:
    color 0.2s,
    padding-left 0.2s;
}

.footer-nav-links a:hover {
  color: var(--blanco);
  padding-left: 0.3rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #bbb;
  line-height: 1.4;
}

.footer-contact-list svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--rojo-Principal);
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ccc;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-social-btn:hover {
  background-color: var(--rojo-Principal);
  color: var(--blanco);
  transform: translateY(-2px);
}

.footer-map-mini {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.footer-map-mini iframe {
  display: block;
  width: 100%;
  height: 120px;
}

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

.footer-bottom p {
  font-size: 0.7rem;
  color: #666;
  margin: 0;
}

/* ============================================
   HOME - HERO
   ============================================ */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("../img/banner-cambios.jpg") center/cover no-repeat;
  color: var(--blanco);
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(144, 12, 37, 0.82) 0%,
    rgba(38, 38, 38, 0.78) 100%
  );
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 75rem;
}

.home-hero-titulo {
  font-family: var(--fsubtitulo);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 0.8s ease-out;
}

.home-hero-sub {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.5;
  animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.home-hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--fprincipal);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.6rem;
  padding: 1.4rem 2.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.home-hero-btn svg {
  width: 2rem;
  height: 2rem;
}

.home-hero-btn--primario {
  background: var(--blanco);
  color: var(--rojo-Principal);
  border-color: var(--blanco);
}

.home-hero-btn--primario:hover {
  background: transparent;
  color: var(--blanco);
}

.home-hero-btn--secundario {
  background: transparent;
  color: var(--blanco);
  border-color: var(--blanco);
}

.home-hero-btn--secundario:hover {
  background: var(--blanco);
  color: var(--rojo-Principal);
}

.home-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 5rem;
  width: 100%;
  max-width: 70rem;
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.home-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
}

.home-hero-stat-num {
  font-family: var(--fsubtitulo);
  font-size: 3rem;
  font-weight: 400;
  color: var(--blanco);
  line-height: 1.2;
}

.home-hero-stat-text {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

/* ============================================
   HOME - SERVICIOS
   ============================================ */
.home-servicios {
  padding: 6rem 2rem 5rem;
  background: var(--gris-50);
}

.home-servicios-header {
  text-align: center;
  margin-bottom: 4rem;
}

.home-servicios-titulo {
  font-family: var(--fsubtitulo);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--rojo-Principal);
  margin-bottom: 1rem;
}

.home-servicios-sub {
  font-size: 1.5rem;
  color: var(--gris-500);
}

.home-servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 110rem;
  margin: 0 auto;
}

.home-servicio-card {
  background: var(--blanco);
  border-radius: 1.2rem;
  padding: 3rem 2.5rem;
  border: 1px solid var(--gris-100);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-servicio-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.home-servicio-icon {
  width: 5.6rem;
  height: 5.6rem;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal),
    var(--rojo-secundario)
  );
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.home-servicio-icon svg {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--blanco);
}

.home-servicio-titulo {
  font-family: var(--fsubtitulo);
  font-size: 2rem;
  color: var(--gris-950);
  margin-bottom: 1rem;
}

.home-servicio-desc {
  font-size: 1.4rem;
  color: var(--gris-500);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.home-servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rojo-Principal);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.home-servicio-link:hover {
  gap: 1rem;
}

.home-servicio-link svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* ============================================
   HOME - MAPA
   ============================================ */
.home-mapa {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--blanco);
}

.home-mapa-titulo {
  font-family: var(--fsubtitulo);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--rojo-Principal);
  margin-bottom: 1rem;
}

.home-mapa-sub {
  font-size: 1.5rem;
  color: var(--gris-500);
  margin-bottom: 3rem;
}

.home-mapa-iframe {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.home-mapa-iframe iframe {
  width: 100%;
  height: 100%;
}

/* ============================================
   HOME - CTA
   ============================================ */
.home-cta {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  background: url("../img/banner-cambios.jpg") center/cover no-repeat;
  color: var(--blanco);
  overflow: hidden;
}

.home-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(144, 12, 37, 0.88) 0%,
    rgba(117, 0, 22, 0.92) 100%
  );
  z-index: 1;
}

.home-cta-content {
  position: relative;
  z-index: 2;
  max-width: 65rem;
  margin: 0 auto;
}

.home-cta-titulo {
  font-family: var(--fsubtitulo);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  animation: fadeSlideUp 0.8s ease-out;
}

.home-cta-sub {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* ============================================
   PROPIEDAD - ACCESSIBILITY
   ============================================ */
.propiedad-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.propiedad-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rojo-Principal);
  color: var(--blanco);
  padding: 1rem 2rem;
  border-radius: 0 0 0.8rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.3s ease;
}

.propiedad-skip-link:focus {
  top: 0;
}

/* ============================================
   PROPIEDAD - HERO
   ============================================ */
.propiedad-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal) 0%,
    var(--rojo-secundario) 100%
  );
  padding: 8rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.propiedad-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50rem;
  height: 50rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: heroPulse 6s ease-in-out infinite;
}

.propiedad-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 35rem;
  height: 35rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite reverse;
}

.propiedad-hero-content {
  position: relative;
  z-index: 2;
}

.propiedad-hero-titulo {
  font-family: var(--fsubtitulo);
  font-size: 4rem;
  color: var(--blanco);
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s ease-out;
}

.propiedad-hero-sub {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

/* ============================================
   PROPIEDAD - SEARCH
   ============================================ */
.propiedad-filtros {
  max-width: 90rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.propiedad-search {
  position: relative;
  margin-bottom: 2rem;
}

.propiedad-search-icon {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  color: var(--gris-400);
  pointer-events: none;
  transition: color 0.3s;
}

.propiedad-search-input {
  width: 100%;
  padding: 1.6rem 1.6rem 1.6rem 5rem;
  border: 2px solid var(--gris-200);
  border-radius: 1.2rem;
  font-family: var(--fprincipal);
  font-size: 1.7rem;
  color: var(--gris-900);
  background: var(--blanco);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.propiedad-search-input::placeholder {
  color: var(--gris-400);
}

.propiedad-search-input:focus {
  border-color: var(--rojo-Principal);
  box-shadow: 0 0 0 4px rgba(144, 12, 37, 0.1);
}

.propiedad-search-input:focus ~ .propiedad-search-icon {
  color: var(--rojo-Principal);
}

/* ============================================
   PROPIEDAD - FILTROS
   ============================================ */
.propiedad-filtros {
  max-width: 120rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.propiedad-filtros-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.propiedad-filtro-grupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.propiedad-filtro-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-gris-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
  white-space: nowrap;
}

.propiedad-filtro-separador {
  width: 1px;
  height: 2.2rem;
  background: var(--color-gris-200);
  margin: 0 0.4rem;
  flex-shrink: 0;
}

.propiedad-btn-filtro {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--color-gris-50);
  border: 1.5px solid var(--color-gris-200);
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-gris-400);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.propiedad-btn-filtro:hover {
  border-color: var(--rojo-Principal);
  color: var(--rojo-Principal);
  background: var(--color-gris-100);
}

.propiedad-btn-filtro.activado {
  background: var(--rojo-Principal);
  color: var(--blanco);
  border-color: var(--rojo-Principal);
  box-shadow: 0 2px 8px rgba(144, 12, 37, 0.3);
}

.propiedad-btn-filtro.activado:hover {
  background: var(--rojo-secundario);
  color: var(--blanco);
}

/* ============================================
   PROPIEDAD - CATEGORIA DROPDOWN
   ============================================ */
.propiedad-categoria-dropdown {
  position: relative;
}

.propiedad-btn-categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--color-gris-50);
  border: 2px solid var(--rojo-Principal);
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rojo-Principal);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.propiedad-btn-categoria:hover {
  background: var(--rojo-Principal);
  color: var(--blanco);
  box-shadow: 0 4px 16px rgba(144, 12, 37, 0.3);
}

.propiedad-btn-categoria.activado {
  background: var(--rojo-Principal);
  color: var(--blanco);
  border-color: var(--rojo-Principal);
}

.propiedad-categoria-chevron {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.propiedad-btn-categoria.activado .propiedad-categoria-chevron {
  stroke: var(--blanco);
}

.propiedad-categoria-dropdown.abierto .propiedad-categoria-chevron {
  transform: rotate(180deg);
}

.propiedad-categoria-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 20rem;
  background: var(--blanco);
  border: 1px solid var(--color-gris-200);
  border-radius: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  z-index: 100;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.propiedad-categoria-dropdown.abierto .propiedad-categoria-menu {
  display: block;
}

.propiedad-categoria-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 0.8rem;
  background: none;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-gris-400);
  cursor: pointer;
  transition: all 0.2s ease;
}

.propiedad-categoria-item:hover {
  background: var(--color-gris-50);
  color: var(--rojo-Principal);
}

.propiedad-categoria-item.activado {
  background: var(--rojo-Principal);
  color: var(--blanco);
}

/* ============================================
   PROPIEDAD - COUNTER
   ============================================ */
.propiedad-contador {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gris-500);
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   PROPIEDAD - GRID
   ============================================ */
.propiedad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ============================================
   PROPIEDAD - CARD
   ============================================ */
.propiedad-card-link {
  display: block;
  background: var(--blanco);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gris-100);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.propiedad-card-link.visible {
  opacity: 1;
  transform: translateY(0);
}

.propiedad-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.propiedad-card-link:focus-visible {
  outline: 3px solid var(--rojo-Principal);
  outline-offset: 3px;
}

/* --- Badges --- */
.propiedad-card-badge-estado {
  position: absolute;
  z-index: 5;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 1.2rem;
  color: var(--blanco);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.propiedad-card-badge-estado--disponible {
  background: rgba(40, 167, 69, 0.9);
}
.propiedad-card-badge-estado--alquilado {
  background: rgba(144, 12, 37, 0.9);
}
.propiedad-card-badge-estado--reservado {
  background: rgba(230, 126, 34, 0.9);
}
.propiedad-card-badge-estado--vendido {
  background: rgba(38, 38, 38, 0.9);
}

.propiedad-card-badge-tipo {
  position: absolute;
  z-index: 5;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.4rem 1rem;
  color: var(--blanco);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Image Carousel --- */
.propiedad-card-img {
  position: relative;
  overflow: hidden;
  height: 22rem;
}

.propiedad-card-img .swiper {
  width: 100%;
  height: 100%;
}

.propiedad-card-img .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.propiedad-card-link:hover .propiedad-card-img .swiper-slide-active img {
  transform: scale(1.05);
}

.propiedad-card-img .swiper-pagination-bullet {
  background: var(--blanco);
  opacity: 0.5;
}

.propiedad-card-img .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--rojo-Principal);
}

/* --- Info --- */
.propiedad-card-info {
  padding: 2rem;
}

.propiedad-card-titulo {
  font-family: var(--fsubtitulo);
  font-size: 2rem;
  color: var(--gris-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.propiedad-card-datos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.propiedad-card-datos p {
  font-size: 1.4rem;
  color: var(--gris-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.propiedad-card-datos p b {
  color: var(--gris-700);
  font-weight: 600;
}

.propiedad-card-precio {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rojo-Principal);
  margin-bottom: 1.5rem;
  font-family: var(--fsubtitulo);
}

.propiedad-card-verMas {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal),
    var(--rojo-secundario)
  );
  color: var(--blanco);
  text-decoration: none;
  border-radius: 0.8rem;
  font-family: var(--fprincipal);
  font-size: 1.5rem;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  width: 100%;
  justify-content: center;
}

.propiedad-card-verMas svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform 0.3s;
}

.propiedad-card-verMas:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(144, 12, 37, 0.35);
}

.propiedad-card-verMas:hover svg {
  transform: translateX(3px);
}

/* ============================================
   PROPIEDAD - NO RESULTS
   ============================================ */
.propiedad-sin-resultados {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gris-400);
}

.propiedad-sin-resultados svg {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
  color: var(--gris-300);
}

.propiedad-sin-resultados p {
  font-size: 2rem;
  font-weight: 500;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--rojo-Principal, #900c25);
  color: var(--blanco, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s,
    background 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

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

.scroll-top-btn:hover {
  background: var(--rojo-hover, #b00e2d);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid var(--rojo-hover, #b00e2d);
  outline-offset: 2px;
}

/* ============================================
   PROPIEDAD - MODAL
   ============================================ */
.propiedad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  backdrop-filter: blur(4px);
}

.propiedad-modal-overlay[hidden] {
  display: flex !important;
  pointer-events: none;
}

.propiedad-modal-overlay.abierto {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.propiedad-modal-overlay.abierto[hidden] {
  pointer-events: auto;
}

.propiedad-modal-container {
  background: var(--blanco);
  border-radius: 1.6rem;
  max-width: 70rem;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.propiedad-modal-overlay.abierto .propiedad-modal-container {
  transform: scale(1) translateY(0);
}

.propiedad-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    background 0.3s,
    transform 0.3s;
}

.propiedad-modal-close svg {
  width: 2rem;
  height: 2rem;
}

.propiedad-modal-close:hover {
  background: var(--rojo-Principal);
  transform: rotate(90deg);
}

.propiedad-modal-close:focus-visible {
  outline: 3px solid var(--blanco);
  outline-offset: 2px;
}

.propiedad-modal-body {
  overflow-y: auto;
  max-height: 85vh;
}

/* --- Modal: Swiper --- */
.propiedad-modal-swiper {
  width: 100%;
  height: 35rem;
}

.propiedad-modal-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.propiedad-modal-swiper .swiper-pagination-bullet {
  background: var(--blanco);
  opacity: 0.5;
}

.propiedad-modal-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--rojo-Principal);
}

.propiedad-modal-swiper .swiper-button-next,
.propiedad-modal-swiper .swiper-button-prev {
  color: var(--blanco);
  background: rgba(0, 0, 0, 0.35);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.propiedad-modal-swiper .swiper-button-next:hover,
.propiedad-modal-swiper .swiper-button-prev:hover {
  background: rgba(144, 12, 37, 0.8);
}

.propiedad-modal-swiper .swiper-button-next::after,
.propiedad-modal-swiper .swiper-button-prev::after {
  font-size: 1.6rem;
}

/* --- Modal: Content --- */
.propiedad-modal-contenido {
  padding: 2.5rem;
}

.propiedad-modal-badges {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.propiedad-modal-badge {
  padding: 0.4rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blanco);
}

.propiedad-modal-badge--tipo {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.propiedad-modal-badge--estado {
  backdrop-filter: blur(4px);
}

.propiedad-modal-badge--disponible {
  background: rgba(40, 167, 69, 0.9);
}

.propiedad-modal-badge--alquilado {
  background: rgba(144, 12, 37, 0.9);
}

.propiedad-modal-badge--reservado {
  background: rgba(230, 126, 34, 0.9);
}

.propiedad-modal-badge--vendido {
  background: rgba(38, 38, 38, 0.9);
}

.propiedad-modal-titulo {
  font-family: var(--fsubtitulo);
  font-size: 2.8rem;
  color: var(--gris-900);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.propiedad-modal-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.propiedad-modal-dato {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.propiedad-modal-dato-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gris-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.propiedad-modal-dato-valor {
  font-size: 1.6rem;
  color: var(--gris-800);
  font-weight: 500;
}

.propiedad-modal-precio {
  font-family: var(--fsubtitulo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--rojo-Principal);
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-100);
}

.propiedad-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(
    135deg,
    var(--rojo-Principal),
    var(--rojo-secundario)
  );
  color: var(--blanco);
  text-decoration: none;
  border-radius: 0.8rem;
  font-family: var(--fprincipal);
  font-size: 1.6rem;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.propiedad-modal-btn svg {
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s;
}

.propiedad-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(144, 12, 37, 0.35);
}

.propiedad-modal-btn:hover svg {
  transform: translateX(3px);
}

.propiedad-modal-btn:focus-visible {
  outline: 3px solid var(--rojo-Principal);
  outline-offset: 3px;
}

/* --- Modal: Body Scroll Lock --- */
body.modal-abierto {
  overflow: hidden;
}

/* ============================================
   DETALLE DE PROPIEDAD
   ============================================ */
.detalle-main {
  min-height: 60vh;
  padding: 1rem;
}

.detalle-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gris-texto, #555);
  font-size: 1.1rem;
}

.detalle-error {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gris-texto, #555);
}

.detalle-error svg {
  width: 4rem;
  height: 4rem;
  stroke: var(--rojo-Principal, #900c25);
  margin-bottom: 1rem;
}

.detalle-btn-volver {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--rojo-Principal, #900c25);
  color: var(--blanco, #fff);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.detalle-btn-volver:hover {
  background: var(--rojo-hover, #b00e2d);
}

/* Volver link */
.detalle-volver-wrap {
  margin-bottom: 1.5rem;
}

.detalle-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rojo-Principal, #900c25);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.detalle-volver svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.detalle-volver:hover {
  color: var(--rojo-hover, #b00e2d);
}

.detalle-volver:hover svg {
  transform: translateX(-3px);
}

/* Swiper */
.detalle-swiper-wrap {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detalle-mapa {
  width: 100%;
  height: 15rem;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detalle-swiper {
  width: 100%;
  max-height: 350px;
}

.detalle-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.detalle-swiper .swiper-slide img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
}

.detalle-swiper .swiper-pagination-bullet {
  background: var(--blanco, #fff);
  opacity: 0.5;
}

.detalle-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--rojo-Principal, #900c25);
}

.detalle-swiper .swiper-button-next,
.detalle-swiper .swiper-button-prev {
  color: var(--rojo-Principal, #900c25);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.detalle-swiper .swiper-button-next::after,
.detalle-swiper .swiper-button-prev::after {
  font-size: 1.4rem;
}

/* Info */
.detalle-info {
  max-width: 800px;
  margin: 0 auto;
}

.detalle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detalle-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detalle-badge--tipo {
  background: var(--rojo-Principal, #900c25);
  color: var(--blanco, #fff);
}

.detalle-badge--disponible {
  background: #16a34a;
  color: var(--blanco, #fff);
}

.detalle-badge--alquilado {
  background: #dc2626;
  color: var(--blanco, #fff);
}

.detalle-badge--reservado {
  background: #f59e0b;
  color: #1a1a1a;
}

.detalle-badge--vendido {
  background: #1a1a1a;
  color: var(--blanco, #fff);
}

.detalle-titulo {
  font-family: "DM Serif Text", serif;
  font-size: 1.8rem;
  color: var(--negro, #1a1a1a);
  margin: 0 0 0.8rem;
}

.detalle-precio {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rojo-Principal, #900c25);
  margin-bottom: 1.5rem;
}

.detalle-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.detalle-dato {
  background: var(--gris-claro, #f5f5f5);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.detalle-dato-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gris-texto, #777);
  margin-bottom: 0.2rem;
}

.detalle-dato-valor {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--negro, #1a1a1a);
  text-transform: capitalize;
}

/* Descripcion */
.detalle-descripcion {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--blanco, #fff);
  border: 1px solid var(--gris-claro, #e5e5e5);
  border-radius: 10px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--negro, #1a1a1a);
  white-space: pre-line;
}

/* Acciones */
.detalle-acciones {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-claro, #e5e5e5);
}

.detalle-btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: #25d366;
  color: var(--blanco, #fff);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition:
    background 0.3s,
    transform 0.2s;
}

.detalle-btn-wsp svg {
  width: 22px;
  height: 22px;
}

.detalle-btn-wsp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ============================================
   TABLET (481px+)
   ============================================ */
@media (min-width: 481px) {
  .header {
    padding: 0.6rem 2rem;
  }

  .header__logo {
    width: 6rem;
  }

  .header-cci-img {
    width: 3rem;
  }

  .header-mat-texto {
    font-size: 1.1rem;
  }

  .header-hamburger {
    width: 3.6rem;
    height: 3.6rem;
  }

  .contacto-hero {
    padding: rem 3rem 4rem;
  }

  .contacto-hero-titulo {
    font-size: 5rem;
  }

  .contacto-hero-sub {
    font-size: 2rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 2rem 6rem;
  }

  .contacto-map iframe {
    height: 20rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    padding: 2.5rem 2rem;
    gap: 2rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-tagline {
    width: 100%;
    max-width: none;
  }

  .footer-map-mini iframe {
    height: 150px;
  }

  .home-hero-btns {
    flex-direction: row;
    justify-content: center;
  }

  .home-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
  }

  .home-hero-stat-num {
    font-size: 3.5rem;
  }

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

  .home-servicios-grid .home-servicio-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .home-mapa {
    padding: 6rem 3rem;
  }

  .home-cta {
    padding: 5rem 3rem;
  }

  .propiedad-hero {
    padding: 8rem 3rem 5rem;
  }

  .propiedad-hero-titulo {
    font-size: 5rem;
  }

  .propiedad-hero-sub {
    font-size: 2rem;
  }

  .propiedad-search-input {
    font-size: 1.8rem;
    padding: 1.8rem 1.8rem 1.8rem 5rem;
  }

  .propiedad-btn-filtro {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }

  .propiedad-filtro-separador {
    display: none;
  }

  .propiedad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 2rem 6rem;
  }

  .propiedad-card-img {
    height: 24rem;
  }

  .propiedad-card-titulo {
    font-size: 2.2rem;
  }

  /* Detalle */
  .detalle-titulo {
    font-size: 2.2rem;
  }

  .detalle-precio {
    font-size: 1.8rem;
  }
}

/* ============================================
   DESKTOP (769px+)
   ============================================ */
@media (min-width: 769px) {
  .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--rojo-Principal);
    padding: 0.8rem 2.5rem;
  }

  .header {
    padding: 0;
    background: none;
  }

  .header__logo {
    width: 7rem;
  }

  .header-cci-img {
    width: 3.4rem;
  }

  .header-mat-texto {
    font-size: 1.2rem;
  }

  .header-hamburger {
    display: none;
  }

  .header_nav {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    background: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0;
    box-shadow: none;
    transition: none;
    border-radius: 0;
  }

  .header__link {
    padding: 0.6rem 1.2rem;
    font-size: 1.5rem;
    border-radius: 0.4rem;
  }

  .header__link--active::before {
    display: none;
  }

  .header__link--active {
    opacity: 0.5;
    pointer-events: none;
  }

  .contacto-hero {
    padding: 6rem 4rem 4rem;
  }

  .contacto-hero-titulo {
    font-size: 6rem;
  }

  .contacto-hero-sub {
    font-size: 2.2rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding: 5rem 3rem 7rem;
  }

  .contacto-form-card {
    padding: 4rem 3.5rem;
  }

  .contacto-form-titulo {
    font-size: 3rem;
  }

  .contacto-map iframe {
    height: 25rem;
  }

  .footer-top {
    grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-tagline {
    width: auto;
  }

  .footer-map-mini iframe {
    height: 170px;
  }

  .footer-bottom {
    padding: 1rem 2rem;
  }

  .home-hero {
    padding: 8rem 4rem 5rem;
  }

  .home-hero-btns {
    gap: 1.6rem;
  }

  .home-hero-btn {
    padding: 1.5rem 3.2rem;
    font-size: 1.6rem;
  }

  .home-hero-stats {
    margin-top: 5rem;
  }

  .home-hero-stat-num {
    font-size: 4rem;
  }

  .home-hero-stat-text {
    font-size: 1.3rem;
  }

  .home-servicios {
    padding: 7rem 4rem 6rem;
  }

  .home-servicios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .home-servicios-grid .home-servicio-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .home-servicio-card {
    padding: 3.5rem 3rem;
  }

  .home-servicio-titulo {
    font-size: 2.2rem;
  }

  .home-mapa {
    padding: 7rem 4rem;
  }

  .home-cta {
    padding: 6rem 4rem;
  }

  .propiedad-hero {
    padding: 7rem 4rem 5rem;
  }

  .propiedad-hero-titulo {
    font-size: 6rem;
  }

  .propiedad-hero-sub {
    font-size: 2.2rem;
  }

  .propiedad-filtros {
    padding: 2rem 2rem 1rem;
  }

  .propiedad-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 3rem 7rem;
  }

  .propiedad-card-img {
    height: 26rem;
  }

  .propiedad-card-info {
    padding: 2.5rem;
  }

  .propiedad-card-titulo {
    font-size: 2.4rem;
  }

  .propiedad-card-precio {
    font-size: 2.6rem;
  }

  .propiedad-modal-container {
    max-width: 70rem;
  }

  .propiedad-modal-swiper {
    height: 45rem;
  }

  .propiedad-modal-titulo {
    font-size: 3.2rem;
  }

  .propiedad-modal-contenido {
    padding: 3rem;
  }

  .propiedad-modal-datos {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Detalle */
  .detalle-main {
    padding: 2rem;
  }

  .detalle-titulo {
    font-size: 2.6rem;
  }

  .detalle-precio {
    font-size: 2rem;
  }

  .detalle-datos {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .detalle-mapa {
    height: 20rem;
  }
}

/* ============================================
   LARGE DESKTOP (1025px+)
   ============================================ */
@media (min-width: 1025px) {
  .header-wrap {
    padding: 0.8rem 4rem;
  }

  .header__logo {
    width: 8rem;
  }

  .header-cci-img {
    width: 3.6rem;
  }

  .header-mat-texto {
    font-size: 1.3rem;
  }

  .header_nav {
    gap: 0.8rem;
  }

  .header__link {
    font-size: 1.6rem;
    padding: 0.7rem 1.5rem;
  }

  .contacto-hero {
    padding: 8rem 4rem 6rem;
  }

  .contacto-hero-titulo {
    font-size: 7rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    padding: 6rem 4rem 8rem;
  }

  .contacto-form-card {
    padding: 5rem 4rem;
  }

  .contacto-map iframe {
    height: 28rem;
  }

  .home-hero {
    padding: 10rem 4rem 6rem;
  }

  .home-hero-sub {
    font-size: 2rem;
  }

  .home-hero-btn {
    padding: 1.6rem 3.6rem;
    font-size: 1.7rem;
  }

  .home-hero-stat-num {
    font-size: 4.5rem;
  }

  .home-servicios {
    padding: 8rem 4rem 7rem;
  }

  .home-servicio-card {
    padding: 4rem 3.5rem;
  }

  .home-mapa {
    padding: 8rem 4rem;
  }

  .home-cta {
    padding: 7rem 4rem;
  }

  .home-cta-sub {
    font-size: 1.8rem;
  }

  .propiedad-hero {
    padding: 9rem 4rem 6rem;
  }

  .propiedad-hero-titulo {
    font-size: 7rem;
  }

  .propiedad-hero-sub {
    font-size: 2.4rem;
  }

  .propiedad-filtros {
    padding: 3rem 3rem 1rem;
  }

  .propiedad-btn-filtro {
    padding: 0.6rem 1.4rem;
    font-size: 1.35rem;
  }

  .propiedad-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    padding: 0 4rem 8rem;
  }

  .propiedad-card-img {
    height: 28rem;
  }

  .propiedad-card-info {
    padding: 3rem;
  }

  .propiedad-card-titulo {
    font-size: 2.6rem;
  }

  .propiedad-card-precio {
    font-size: 2.6rem;
  }

  .propiedad-modal-container {
    max-width: 75rem;
  }

  .propiedad-modal-swiper {
    height: 50rem;
  }

  .propiedad-modal-titulo {
    font-size: 3.4rem;
  }

  .propiedad-modal-contenido {
    padding: 3.5rem;
  }

  .propiedad-modal-datos {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .propiedad-modal-precio {
    font-size: 3.4rem;
  }

  /* Detalle */
  .detalle-main {
    padding: 2rem 4rem;
  }

  .detalle-swiper,
  .detalle-swiper .swiper-slide img {
    max-height: 450px;
  }

  .detalle-info {
    max-width: 900px;
  }

  .detalle-titulo {
    font-size: 3rem;
  }

  .detalle-precio {
    font-size: 2.4rem;
  }
}
