* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primer-color: #f5f5f5;
  --segundo-color: #f44336;
  --tercero-color: #f5f5f5;
  --text-color: #333;
  --background-color: #f5f5f5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

body {
  font-family: "Ubuntu", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

/*main*/

.main-container {
  padding: 20px;
  position: relative;
}

.main-img {
  width: 85%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
  transition: all 1s ease;
  animation: fadeIn 0.8s ease both;
}
.main-img:hover {
  transform: scale(1.02);
  opacity: 1;
}

.main-text {
  position: absolute;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 24px;
  font-weight: bold;
  animation: fadeInUp 0.8s ease 0.15s both;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: min(900px, 90%);
}

.main-title {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 3rem);
  margin-bottom: 10px;
  color: #f5f5f5;
  font-weight: bold;
  animation: fadeInUp 0.8s ease 0.25s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.main-paragraph {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
  color: #f5f5f5;
  line-height: 1.5;
  margin-top: 12px;
  animation: fadeInUp 0.8s ease 0.35s both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.main-btn-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.main-btn {
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Botones cuando están sobre el overlay del main (mejor legibilidad) */
.main-text .main-btn {
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

.main-text .btn-contactanos {
  background-color: rgba(255, 255, 255, 0.08);
  color: black;

}
.main-text .btn-contactanos:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: gray;
}

.main-text .btn-propiedades {
  background-color: rgba(255, 165, 0, 0.95); /* orange casi sólido */
  color: #111;
  border-color: rgba(255, 255, 255, 0.7);
}
.main-text .btn-propiedades:hover {
  background-color: #ffd08a;
  color: #111;
}

.btn-propiedades:hover {
  background-color: var(--tercero-color);
  color: var(--segundo-color);
  transition: all 0.3s ease;
}

.btn-contactanos:hover {
  background-color: var(--tercero-color);
  color: var(--segundo-color);
  transition: all 0.3s ease;
}

/*section*/

.section-container {
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section-tipos {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #48e;
  font-weight: bold;
}

.section-paragraph {
  font-size: 1.5rem;
  color: #48e;
}

.section-tipo-casas,
.section-tipo-apartamentos,
.section-tipo-lotes {
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  opacity: 0.8;
  padding: 20px;
  background: #f5f5f5;
}

.section-tipo-img {
  width: 20%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 50%;
  background-color: #48e;
}

.section-tipo-casas:hover,
.section-tipo-apartamentos:hover,
.section-tipo-lotes:hover {
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1.1);
  opacity: 1;
}

/*section destacados*/

.card-container-destacados {
  padding: 12px;
  text-align: center;
  margin-top: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeInUp 0.8s ease 0.15s both;
  width: 70%;
  margin: auto;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #48e;
  font-weight: bold;
}

.card-helper {
  margin-top: -18px;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .card-helper {
    font-size: 0.8rem;
  }
}

.card-destacados {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin: 12px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.card-destacado {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  padding: 20px;
  background: #f5f5f5;
  margin: 0 0 20px 0;
  scroll-snap-align: start;
  position: relative;
}

.card-destacado::before {
  content: "Destacado";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
}
.card-destacado-title {
  margin-top: 12px;
}

.card-destacado-img-principal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background-color: transparent;
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: fadeIn 0.2s ease-out both;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  background: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.lightbox-nav.prev {
  left: -52px;
}
.lightbox-nav.next {
  right: -52px;
}
.lightbox-nav:hover {
  background: #fff;
}

.nombre-ubicacion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  font-size: 1rem;
  padding: 10px 0 10px 0;
}

.nombre-ubicacion h3 {
  font-weight: bold;
  font-size: 1.25rem;
}

.card-destacado-paragraph {
  font-size: 0.9rem;
  color: grey;
  font-weight: bold;
}
.card-destacado-info2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid #333;
  padding-bottom: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;  
  margin-top: 12px;
}

.precio {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}

.card-destacado-btn {
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  background-color: orange;
  color: var(--tercero-color);
}

.card-destacado-btn:hover {
  background-color: var(--tercero-color);
  color: var(--segundo-color);
  transition: all 0.3s ease;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.slider-btn.prev {
  left: 8px;
}
.slider-btn.next {
  right: 8px;
}
.slider-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.card-destacados {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-destacados::-webkit-scrollbar {
  display: none;
}

.card-destacados.dragging {
  cursor: grabbing;
  user-select: none;
}

/* Responsive slider*/

@media (min-width: 768px) {
  .card-container-destacados {
    width: 93%;
    margin: auto;
  }

  .card-destacados {
    gap: 24px;
  }

  .card-destacado:hover {
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1.05);
  }

  .card-destacado {
    flex-basis: 32%;
    width: 32%;
    margin: auto;
  }
}
@media (min-width: 768px) and (max-width: 1365px) {
  .card-destacado-img-principal {
    height: 250px;
  }
}

@media (min-width: 1920px) {
  .card-destacado-img-principal {
    height: 450px;
  }
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5); 
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active {
  background-color: #e74c3c; 
}

/* Pequeñas pantallas: hasta 625px */
@media (max-width: 625px) {
  .card-container-destacados {
    width: 100%;
    margin: auto;
  }
  .main-img {
    width: 100%;
    max-height: 45vh;
  }
  .main-text {
    position: static;
    transform: none;
    padding: 10px 12px;
    text-align: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    margin-top: 8px;
  }
  .main-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--segundo-color);
    text-shadow: none;
  }
  .main-paragraph {
    font-size: 0.95rem;
    margin-top: 6px;
    color: var(--text-color);
    text-shadow: none;
  }
  .main-btn-container {
    gap: 12px;
    margin-top: 12px;
  }
  .main-btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    box-shadow: none;
  }
}

@media (max-width: 1200px) {
  .main-img {
    width: 100%;
    max-height: 55vh;
    opacity: 1;
  }
  .main-text {
    position: static;
    transform: none;
    padding: 12px 16px;
    text-align: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
  }
  .main-title {
    font-size: 2rem;
    margin-bottom: 6px;
    color: var(--segundo-color);
  }
  .main-paragraph {
    font-size: 1rem;
    margin-top: 8px;
    color: var(--text-color);
  }
  .main-btn-container {
    gap: 16px;
    margin-top: 16px;
  }
  .main-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    box-shadow: none;
  }
  .section-container {
    padding: 16px;
  }
  .section-container > .section-tipos {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .section-tipo-casas,
  .section-tipo-apartamentos,
  .section-tipo-lotes {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }
  .section-tipo-img {
    width: 56px;
  }
  .btn-contactanos {
    color: var(--primer-color);
    background-color: grey;
  }
}

@media (max-height: 800px) {
  .card-container-destacados {
    padding: 10px;
    margin-top: 8px;
  }
  .card-title {
    font-size: 2rem;
  }
  .card-destacado {
    padding: 12px;
    margin-bottom: 10px;
  }
  .card-media {
    aspect-ratio: 5 / 2;
  }
  .nombre-ubicacion h3 {
    font-size: 1.1rem;
  }
  .card-destacado-paragraph {
    font-size: 0.9rem;
  }
  .card-destacado-info2 {
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .slider-dots {
    gap: 6px;
    margin-top: 10px;
  }
  .slider-dot {
    width: 6px;
    height: 6px;
  }
}

/* footer */
footer {
  background-color: var(--primer-color);
  color: var(--text-color);
  font-weight: bold;
  text-align: center;
  padding: 20px;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.social-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--segundo-color);
  font-weight: bold;
}

.footer-text {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: bold;
}

.contact-container {
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text-color);
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--segundo-color);
  font-weight: bold;
}

.contact-paragraph {
  font-size: 1rem;
  margin-top: 8px;
  color: var(--text-color);
}

.social-icon {
  width: 24px;
  height: 24px;
  margin: 12px 8px;
}

.social-icon:hover {
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1.1);
}

/* Estilos para la sección Trabaja con Nosotros */
.work-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  margin: 40px 0;
}

.work-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.work-title {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.work-text {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.work-button {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #e74c3c;
}

.work-button:hover {
  background-color: transparent;
  color: #e74c3c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección Quiénes Somos */
.about-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-title {
  color: var(--segundo-color, #2c3e50);
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text {
  color: var(--text-color, #555);
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-video-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.about-video {
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.about-video:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .about-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1.1rem;
  }

}

/* Footer */
.footer {
  background-color: var(--primer-color, #2c3e50);
  color: var(--text-color, white);
  padding: 40px 20px 20px;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--segundo-color, #e74c3c);
  font-weight: 700;
}

.footer-subtitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--segundo-color, #e74c3c);
  font-weight: 600;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--segundo-color, #e74c3c);
}

.footer-map {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
  border-radius: 8px;
}

.footer-newsletter-text {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #ccc;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-btn {
  background-color: var(--segundo-color, #e74c3c);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  background-color: #c0392b;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #ccc;
}

.footer-legal {
  font-size: 0.8rem;
  color: #999;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--segundo-color, #e74c3c);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }
}

/* Sección de Estadísticas */
.estadisticas-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.estadisticas-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

  .estadisticas-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
  }

  .estadisticas-tabla th, .estadisticas-tabla td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  .estadisticas-tabla th {
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .estadisticas-tabla tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .estadisticas-tabla tr:hover {
    background-color: #f1f1f1;
    transform: scale(1.02);
    transition: all 0.3s ease;
  }

  @media (max-width: 768px) {
    .estadisticas-tabla {
      font-size: 0.9rem;
    }
    .estadisticas-tabla th, .estadisticas-tabla td {
      padding: 10px;
    }
  }

