/* Variables de colores */
:root {
  --primary: #74b4e2;
  --primary-dark: #5a9bc9;
  --secondary: #64737c;
  --light: #ebe2ec;
  --accent: #52cc79;
  --accent-dark: #2fb45c;
  --dark: #383042;
  --text: #333333;
  --text-light: #777777;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
}

/* Contenedor del nombre en dos líneas */
.name-two-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.first-name {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.last-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 1px;
  margin-top: -2px;
  transition: all 0.3s ease;
}

/* Efectos hover */
.name-two-lines:hover .first-name {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(116, 180, 226, 0.3);
}

.name-two-lines:hover .last-name {
  transform: translateY(2px);
  color: var(--accent);
}

/* Línea decorativa bajo el apellido */
.last-name {
  position: relative;
}

.last-name::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.name-two-lines:hover .last-name::after {
  width: 100%;
}

/* Animación de entrada */
@keyframes slideInNames {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-name {
  animation: slideInNames 0.6s ease-out forwards;
}

.last-name {
  animation: slideInNames 0.6s ease-out 0.2s forwards;
}

/* Responsive */
@media (max-width: 1200px) {
  .first-name {
    font-size: 1.4rem;
  }
  .last-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .first-name {
    font-size: 1.2rem;
  }
  .last-name {
    font-size: 1rem;
  }
  .logo-container {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .name-two-lines {
    display: none; /* Ocultar en móviles */
  }
}

/* Versión alternativa para móviles */
@media (max-width: 768px) {
  .logo-container::after {
    content: "DM";
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 10px;
    padding: 4px 8px;
    border: 2px solid var(--primary);
    border-radius: 5px;
  }
}

.logo-placeholder {
  width: 180px;
  height: 50px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

/* Contenedor del logo */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



.logo-wrapper:hover .logo-shine {
  transform: translateX(200%) skewX(-20deg);
}

/* Imagen del logo */
.logo-img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 10px rgba(116, 180, 226, 0.3))
    drop-shadow(0 4px 20px rgba(82, 204, 121, 0.2));
  position: relative;
  z-index: 1;
}

/* Animación de entrada al cargar la página */
@keyframes logoFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes subtleGlow {
  0%,
  100% {
    filter: drop-shadow(0 2px 10px rgba(116, 180, 226, 0.3))
      drop-shadow(0 4px 20px rgba(82, 204, 121, 0.2));
  }
  50% {
    filter: drop-shadow(0 2px 15px rgba(116, 180, 226, 0.5))
      drop-shadow(0 6px 25px rgba(82, 204, 121, 0.3)) brightness(1.1);
  }
}

@keyframes colorShift {
  0%,
  100% {
    filter: drop-shadow(0 2px 10px rgba(116, 180, 226, 0.3))
      drop-shadow(0 4px 20px rgba(82, 204, 121, 0.2));
  }
  33% {
    filter: drop-shadow(0 2px 10px rgba(116, 180, 226, 0.4))
      drop-shadow(0 4px 20px rgba(155, 140, 199, 0.25));
  }
  66% {
    filter: drop-shadow(0 2px 10px rgba(82, 204, 121, 0.4))
      drop-shadow(0 4px 20px rgba(116, 180, 226, 0.25));
  }
}

/* Aplicar animación de entrada */
.logo-img {
  animation: logoFloat 1.2s ease-out forwards,
    colorShift 8s ease-in-out infinite;
}

/* Efectos hover */
.logo-wrapper:hover {
  transform: translateY(-3px);
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 4px 20px rgba(116, 180, 226, 0.5))
    drop-shadow(0 8px 30px rgba(82, 204, 121, 0.3)) brightness(1.15);
}

.logo-wrapper:hover .logo-shine {
  transform: rotate(45deg) translateY(100%);
  opacity: 0.6;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Efecto de pulso suave */
@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Aplicar pulso cada 15 segundos */
.logo-wrapper {
  animation: gentlePulse 15s ease-in-out infinite;
}

.logo-wrapper:hover {
  animation: none; /* Detener pulso en hover */
}

/* Efecto de partículas sutiles alrededor */
.logo-wrapper::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(116, 180, 226, 0.1) 0%,
    rgba(82, 204, 121, 0.05) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.logo-wrapper:hover::before {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .logo-img {
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    max-width: 120px;
  }

  .logo-wrapper:hover .logo-img {
    transform: scale(1.05) rotate(1deg);
  }
}

@media (max-width: 576px) {
  .logo-img {
    max-width: 100px;
  }

  .logo-container {
    padding: 3px;
  }
}

/* Efecto de carga suave para evitar parpadeo */
.logo-img {
  opacity: 0;
  animation-fill-mode: forwards;
}

.logo-img.loaded {
  opacity: 1;
}

.navigation {
  animation: fadeIn 1s ease, slideIn 0.5s ease 0.5s both;
}

.navigation ul {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Añadir después del .mobile-menu-btn */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.4s ease;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav ul {
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 10px 20px;
}

.mobile-nav .nav-link::after {
  display: none;
}

.mobile-nav .nav-link:hover {
  color: var(--accent);
}

/* Estilos para el modal de detalles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: white;
  margin: auto;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

.modal-gallery {
  position: relative;
  width: 100%;
  height: 400px;         
  overflow: hidden;      
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image img {
  width: 100%;       
  height: auto;      
  max-height: none;  
  object-fit: contain;
  object-position: center;
  cursor: grab;
  transition: transform 0.3s ease;
}




.main-image img:active {
  cursor: grabbing;
}

.main-image img:hover {
  transform: scale(1.02);  /* efecto hover */
}


.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 5;
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.thumbnail-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.8);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-5px);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 30px;
}

.modal-location {
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.modal-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.modal-features {
  margin-bottom: 25px;
}

.modal-features h3,
.modal-description h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
}

.modal-features h3::after,
.modal-description h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--light);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
  background: #f0e6f6;
}

.feature-item i {
  color: var(--primary);
  font-size: 1.3rem;
  width: 35px;
  text-align: center;
}

.modal-description {
  margin-bottom: 30px;
  line-height: 1.7;
}

.modal-description p {
  color: var(--text);
  font-size: 1.05rem;
}

.modal-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* Responsive */
@media (max-width: 992px) {
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .modal-gallery {
    height: 350px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .modal-gallery {
    height: 300px;
  }
  
  .close-modal {
  width: 35px;
  height: 35px;
  }

  .gallery-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .thumbnail {
    width: 55px;
    height: 55px;
  }

  .modal-details {
    padding: 20px;
  }

  .modal-price {
    font-size: 1.8rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .modal-gallery {
    height: 250px;
  }

  .thumbnail {
    width: 45px;
    height: 45px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
  /* Tu imagen de fondo */
  background-image: url("imagenes/Inicio.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    /* Más oscuro que en móvil */ rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Efecto de partículas sutiles */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      90deg,
      transparent 49%,
      rgba(22, 15, 31, 0.579) 50%,
      transparent 51%
    ),
    linear-gradient(
      180deg,
      transparent 49%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 51%
    );
  background-size: 100px 100px;
  opacity: 0.3;
  animation: gridMove 30s infinite linear;
  z-index: 2;
  pointer-events: none;
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100px 100px;
  }
}

.hero-content {
  margin-left: 30px;
  flex: 1;
  padding-right: 50px;
  animation: fadeIn 1s ease, slideIn 0.5s ease 0.5s both;
  position: relative;
  z-index: 3;
  /* Solo agregamos estas 3 líneas para mejor contraste */
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Para resaltar "propiedad ideal" con tu color azul */
.hero-title span {
  color: #74b4e2 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-image {
  position: relative;
  z-index: 3; /* Asegura que las imágenes del tríptico estén sobre los efectos */
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  position: relative;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero {
    background-image: url("imagenes/F_celular.webp");
    background-position: center top;
    background-attachment: scroll; /* Fija el fondo para que no se mueva */
    min-height: 40vh;
  }
  
  /* Elimina el gradiente oscuro si no lo necesitas */
  .hero::before {
    display: none; /* Oculta el overlay oscuro */
  }

  .hero-content {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
}

.triptych {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 1s ease, slideIn 0.5s ease 0.5s both;
}

.triptych-panel {
  width: calc(33.333% - 25px);
  max-width: 100%;
  height: 400px;
  perspective: 1000px;
  position: relative;
}

.triptych-panel:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ESTRUCTURA FLIP */
.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* IMÁGENES */
.flip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
}

/* Para monitores grandes (> 1440px) */
@media (min-width: 1440px) {
  .triptych-panel {
    height: 700px; /* Más altura en pantallas grandes */
    max-width: 420px; 
  }
}


@media (min-width: 1024px) {
  .triptych-panel:hover .flip-card {
    transform: rotateY(180deg);
  }
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .triptych {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
    width: 100%;
  }

  .triptych-panel {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    min-height: 790px;
  }
  .btn {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    min-height: 50px; 
  }
}

@media (max-width: 768px) {
  .triptych-panel {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .triptych-panel {
    height: 250px;
  }

  .hero-image {
    padding: 20px 15px;
  }
}

/* Efecto para móviles con clase active */
.triptych-panel.active .flip-card {
  transform: rotateY(180deg);
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Featured Properties */
.featured-properties {
  padding: 100px 0;
  background: #fafafa;
}



/* ESTILOS MEJORADOS PARA QUIÉNES SOMOS */
.about-us-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fadeIn 1s ease, slideIn 0.5s ease 0.5s both;
}

.about-us-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #ebe2ec;
}

.about-us-title {
  font-size: 2.5rem;
  color: #64737c;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-us-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, #74b4e2, #52cc79);
  border-radius: 3px;
}

.about-us-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #64737c;
  max-width: 900px;
  margin: 0 auto;
}

.highlight {
  color: #2cac4c;
  font-weight: 700;
  font-style: italic;
}


.process-wrapper {
  position: relative;
  margin: 4rem 0;
}

.process-connector {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #74b4e2, #52cc79, #b38cc6);
  z-index: 1;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 1.5rem;
}

.process-step {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #74b4e2;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step:nth-child(2) {
  border-top-color: #52cc79;
}

.process-step:nth-child(3) {
  border-top-color: #b38cc6;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, #74b4e2, #52cc79, #b38cc6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover::before {
  opacity: 1;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74b4e2 0%, #5a9ed4 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}

.process-step:nth-child(2) .step-number {
  background: linear-gradient(135deg, #52cc79 0%, #2fb45c 100%);
}

.process-step:nth-child(3) .step-number {
  background: linear-gradient(135deg, #b38cc6 0%, #983650 100%);
}

.step-title {
  color: #64737c;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.step-content {
  text-align: center;
}

.step-description {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.step-details {
  color: #64737c;
  line-height: 1.6;
}


.benefits-container {
  background: linear-gradient(
    135deg,
    rgba(235, 226, 236, 0.3) 0%,
    rgba(116, 180, 226, 0.15) 100%
  );
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  margin: 4rem 0;
  border: 1px solid rgba(116, 180, 226, 0.2);
  position: relative;
  overflow: hidden;
}

.benefits-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(179, 140, 198, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
}

.benefits-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.benefits-title {
  color: #64737c;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.benefits-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #74b4e2, #52cc79);
  border-radius: 2px;
}

.condoviendo {
  color: #983650;
  font-style: italic;
  position: relative;
}

.condoviendo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #983650, transparent);
}

.benefits-subtitle {
  color: #779eb3;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.benefits-showcase {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.benefit-main-card {
  flex: 0 0 280px;
  background: linear-gradient(135deg, #74b4e2 0%, #779eb3 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(116, 180, 226, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}

.benefit-main-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 15px 35px rgba(116, 180, 226, 0.4);
}

.benefit-main-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.benefit-main-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.benefit-main-card p {
  line-height: 1.6;
  font-size: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  flex: 1;
}

.benefit-card {
  perspective: 1000px;
  height: 100%;
}

.benefit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  background: white;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-card:hover .benefit-card-inner {
  transform: rotateY(5deg) translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebe2ec 0%, #a38c97 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.benefit-icon-wrapper::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74b4e2, #52cc79);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-icon-wrapper::after {
  opacity: 1;
}

.benefit-icon {
  font-size: 2rem;
}

.benefit-card-title {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.benefit-card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #74b4e2, #52cc79);
  border-radius: 1px;
}

.benefit-card-desc {
  color: #64737c;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.benefit-card-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #74b4e2, #52cc79);
  color: white;
  padding: 0.8rem;
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-card-hover {
  opacity: 1;
  transform: translateY(0);
}

.benefits-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px dashed rgba(116, 180, 226, 0.5);
  position: relative;
  z-index: 2;
}

.benefits-cta p {
  color: #64737c;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.benefits-cta-btn {
  background: linear-gradient(to right, #2fb45c, #2cac4c);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(43, 172, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.benefits-cta-btn::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: 0.5s;
}

/* Responsive */
@media (max-width: 1024px) {
  .benefits-showcase {
    flex-direction: column;
  }

  .benefit-main-card {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .benefits-container {
    padding: 2rem 1.5rem;
  }

  .benefits-title {
    font-size: 1.7rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card-inner {
    padding: 1.5rem;
  }
}

/* Estilo para sistema de beneficios */
.system-benefits {
  background: #64737c;
  padding: 2.5rem;
  border-radius: 16px;
  color: white;
  margin-top: 4rem;
}

.system-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.system-header h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  color: white;
}

.system-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.system-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.system-feature:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.feature-text {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .process-steps {
    flex-direction: column;
  }

  .process-connector {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-us-container {
    padding: 1.5rem;
  }

  .about-us-title {
    font-size: 2rem;
  }

  .about-us-description {
    font-size: 1.1rem;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .system-features {
    flex-direction: column;
    gap: 2rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.properties-grid.single-item {
  grid-template-columns: minmax(300px, 900px) !important;
  justify-content: center !important;
  margin: 0 auto;
}

.property-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


.property-image {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}


.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block; 
  transition: transform 0.4s ease, filter 0.3s ease;
}


.property-image:hover img {
  transform: scale(1.01);
  filter: brightness(1.02) blur(0.4px);
}




.property-image.ratio-16-9 {
  aspect-ratio: 16/9;
  height: auto;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.property-content {
  padding: 25px;
}

.property-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.property-location {
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.property-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.property-link:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* Estilos para las secciones de propiedades */
.property-section {
  padding: 100px 0;
  background: white;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.property-section:nth-child(even) {
  background: var(--light);
}

.property-section.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Responsive */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-section {
    padding: 70px 0;
  }

  .header-container {
    justify-content: center;
    position: relative;
  }

  .mobile-menu-btn {
    position: absolute;
    right: 0;
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-info i {
  width: 30px;
  height: 30px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}


.contact-info p.email {
  display: flex;            
  align-items: center;     
  gap: 10px;                
  flex-wrap: nowrap;
  
}


.contact-info p.email a[href^="mailto:"] {
  white-space: nowrap;      
  overflow: hidden;         
  text-overflow: ellipsis;  
  display: inline-block;
  margin-left: 3px;
}



.checkbox-group {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-group a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: var(--primary-dark);
}

/* Estilo para el botón deshabilitado */
#contactForm button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

#contactForm button:disabled:hover {
  background: var(--primary);
  transform: none;
  box-shadow: var(--shadow);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(116, 180, 226, 0.2);
}

.email-link {
        display: inline-flex; 
        align-items: center;  
        gap: 0.5rem;          
        white-space: nowrap;  
    }

@media (max-width: 768px) {
  
  .contact-info h3 {
    text-align: center;
  }

  
  .contact-form .checkbox-group {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem; 
  }

  
  .contact-form button {
    display: block;
    margin: 1rem auto 0 auto; 
  }
}




/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 50px 0 15px; /* antes era 70px */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* antes era space-between */
  align-items: flex-start;
  gap: 60px; /* espacio controlado entre columnas */
  margin-bottom: 30px;
  text-align: center; /* centrado para textos */
}

.footer-section {
  flex: 1 1 250px;
  max-width: 300px; /* evita que se estiren demasiado */
}


.footer-section h4 {
  position: relative;
  padding-bottom: 5px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; 
  height: 2px;
  background: var(--accent);
}


.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}


.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}


/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 0 50px;
    
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
    margin-right: 40px;
    
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .triptych {
    max-width: 600px;
    margin: 0 auto;
    flex-direction: row;
  }

  .btn-secondary {
    /* Tus estilos existentes */
    padding: 10px 20px; /* Asegura buen espacio alrededor del texto */
  }
}

@media (max-width: 768px) {
  .navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
    padding: 80px 30px 30px;
    overflow-y: auto;
  }

  .navigation.active {
    left: 0;
  }

  .navigation ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1000;
  }

  /* Añade esto para el overlay de fondo */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .no-scroll {
    overflow: hidden;
  }
  .triptych {
    flex-direction: column; /* Esto hace que se apilen verticalmente */
  }
}
@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .property-features {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 5px;
  }
}

.main-image {
  position: relative;
  overflow: hidden;
}

#modalMainImage {
  transition: transform 0.3s ease;
  cursor: grab;
  max-width: 100%;
  max-height: 70vh;
}

#modalMainImage:active {
  cursor: grabbing;
}

.zoom-controls {
  position: absolute;
  top: 15px;
  left: 15px; /* ✅ cambiado de right a left */
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.zoom-controls button {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zoom-controls button:hover {
  background: rgba(0,0,0,0.8);
}

/* Estilos específicos para móvil */
@media (max-width: 1024px) {
  .zoom-controls {
    top: 10px;
    right: 10px; /* Cambiado de left a right */
    flex-direction: row; /* Mantiene los botones en fila horizontal */
  }
  
  .zoom-controls button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Estilos para dispositivos muy pequeños */
@media (max-width: 480px) {
  .zoom-controls {
    top: 8px;
    right: 8px; /* Cambiado de left a right */
  }
  
  .zoom-controls button {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

