/* ------------------------ */
/* 🎨 VARIABLES GLOBALES */
/* ------------------------ */
:root {
  --color-primary: #051d41;
  --color-secondary: #49bd38;
  --color-accent: #dda83b;
  --color-light: #ffdea7;
  --color-dark: #e0b705;
  --color-white: #fff;

  --font-base: 'Playfair Display', serif;
  --font-alt: Arial, sans-serif;

  --max-width: 1200px;
  --header-height: 4rem;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0.25rem 0.25rem 1rem rgba(0, 0, 0, 0.25);

  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-primary);
  color: var(--color-success);
  line-height: 1.6;
  overflow-x: hidden;
}

.logo {
    width: 20%;
    height: 25%;
}

/* ------------------------ */
/* 🧭 ENCABEZADO */
/* ------------------------ */
header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
}

.hero {
  margin-top: 200px;
}

header .logo a {
  font-size: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}

nav a:hover {
  opacity: 0.8;
}

/* ------------------------ */
/* 🏙️ HERO */
/* ------------------------ */
.hero {
  background: url() center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
  padding: 5rem 2rem;
}

/* ------------------------ */
/* 🏡 PROPIEDADES / CARDS */
/* ------------------------ */
.propiedades {
  padding: 2rem;
  background-color: var(--color-white);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: calc(33.333% - 2rem);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card .info {
  padding: 1rem;
}

.card h4 {
  margin-bottom: 0.5rem;
}

/* ------------------------ */
/* 🧾 SECCIONES GENERALES */
/* ------------------------ */
.section {
  padding: 2rem 1rem;
  text-align: center;
}

.section-title {
  margin: 2rem auto;
  padding: 1rem;
  color: var(--color-accent);
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  width: 250px;
  text-transform: uppercase;
}

/* ------------------------ */
/* 🌐 UTILIDADES */
/* ------------------------ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

/* Menu Hamburguesa*/
  .contact-form {
  background: #031f4d;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*responsi menuHambu*/
/* ===================
   ESTILOS GENERALES
=================== */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #021a3d;
  color: aliceblue;
}

.header {
  background-color: #040f20c9;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.container.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.logo {
  font-family: "Playfair Display", serif;
  color: var(--color-secondary);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo span {
  color: #fff;
}

/* ===================
   MENU BASE
=================== */
.menu {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 70px;
  right: 2rem;
  background-color: #6c727c;
  border-radius: 12px;
  padding: 1rem 0;
  width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.menu.is-active {
  display: flex;
}

.menu a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.7rem;
  width: 100%;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.menu a:hover {
  background-color: #84909c;
  color: var(--color-secondary);
}

/* ===================
   BOTÓN HAMBURGUESA
=================== */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  fill: var(--color-dark);
}

.none {
  display: none;
}

/* ===================
   VERSIÓN ESCRITORIO
=================== */
@media screen and (min-width: 768px) {
  .menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: none;
    box-shadow: none;
    gap: 1.5rem;
    padding: 0;
  }

  .menu a {
    color: var(--color-secondary);
    font-weight: 500;
    position: relative;
  }

  .menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #f7b500;
    transition: width 0.3s ease;
  }

  .menu a:hover::after {
    width: 100%;
  }

  .menu-btn {
    display: none;
  }
}


.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 15px var(--color-secondary);
}

.btn {
  background: var(--color-secondary);
  color: var(--color-light);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Adaptación móvil */
@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
  }
}
   


.btn:hover {
  background-color: var(--color-accent);
}

/* ------------------------ */
/* 🦶 FOOTER */
/* ------------------------ */
footer {
  background-color: rgb(27, 27, 27);
  color: var(--color-white);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ------------------------ */
/* 📱 RESPONSIVE */
/* ------------------------ */
@media (max-width: 1024px) {
  .card {
    width: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
  }

  .hero {
    padding: 3rem 1rem;
  }
}

/* Esconde el ícono de cierre */
.none {
  display: none;
}

/* Estilo base del menú */
.menu {
  display: none;
  flex-direction: column;
  background-color: #13be2a;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu.is-active {
  display: flex;
}

/* Para pantallas grandes */
@media screen and (min-width: 768px) {
  .menu {
    display: flex;
    position: static;
    flex-direction: column-reverse;
    box-shadow: none;
    background: none;
    background: #051d41;
  }

  .menu-btn {
    display: none;

  }
}




