/* ==========================================================================
   Ariadna Cruz — Rematadora y Tasadora Pública
   Hoja de estilos única del sitio estático.

   Está escrita a mano, sin frameworks ni compilación: se puede editar
   directamente en el editor de archivos de cPanel.

   Orden del archivo:
     1. Variables de marca
     2. Base y tipografía
     3. Utilidades de maquetación
     4. Botones y enlaces de acción
     5. Encabezado y pie
     6. Portada (hero, servicios, propiedades, proceso, contacto)
     7. Listado y ficha de propiedades
     8. Tasaciones y formularios
     9. Landing de Expo
    10. Página 404
    11. Responsive (móvil primero, se amplía en sm / md / lg)
   ========================================================================== */

/* 1. Variables de marca ---------------------------------------------------- */

:root {
  /* Paleta */
  --verde-marca: #07a34f;
  --verde-profundo: #05412a;
  --tinta: #0a2e1b;
  --papel: #ffffff;
  --campo: #eff2ec;

  /* Roles */
  --fondo: var(--papel);
  --texto: var(--tinta);
  --texto-suave: #4a5a4f;
  --primario: var(--verde-marca);
  --borde: #dfe4da;
  --borde-campo: #cdd4c8;

  /* Medidas */
  --ancho-contenido: 72rem;   /* 1152px */
  --margen-lateral: 1.25rem;
  --radio: 0.5rem;
  --radio-boton: 5px;

  --fuente: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Base y tipografía ----------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--borde);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

/* Cualquier elemento con el atributo hidden queda oculto, incluso si más
   abajo se le asigna display: flex o grid. Lo usa js/sitio.js para los
   filtros y las fichas del listado de propiedades. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente);
  letter-spacing: -0.02em;
  margin: 0;
}

h1,
h2 {
  font-weight: 300;
}

h3,
h4 {
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--verde-profundo);
  outline-offset: 2px;
}

/* Títulos del sitio */
.titulo-hero {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  max-width: 48rem;
}

.titulo-pagina,
.titulo-seccion {
  font-size: 1.875rem;
  line-height: 1.2;
}

.titulo-bloque {
  font-size: 1.5rem;
  font-weight: 600;
}

.titulo-tarjeta {
  font-size: 1.125rem;
}

/* Medida de lectura cómoda (equivale a .medida-texto del proyecto original) */
.medida-texto {
  max-width: 68ch;
}

/* 3. Utilidades de maquetación --------------------------------------------- */

.contenedor {
  width: 100%;
  max-width: var(--ancho-contenido);
  margin-inline: auto;
  padding-inline: var(--margen-lateral);
}

.seccion {
  padding-block: 5rem;
}

.seccion-corta {
  padding-block: 4rem;
}

.fondo-campo {
  background-color: var(--campo);
}

.texto-suave {
  color: var(--texto-suave);
}

.texto-chico {
  font-size: 0.875rem;
}

.texto-mini {
  font-size: 0.75rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 4. Botones y enlaces de acción ------------------------------------------- */

.boton {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radio-boton);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Verde de marca, texto blanco. Es el botón principal del sitio. */
.boton-primario {
  background-color: var(--primario);
  color: #ffffff;
}

.boton-primario:hover {
  background-color: var(--verde-profundo);
  color: #ffffff;
}

/* Sobre foto oscura: al pasar el mouse se invierte a blanco. */
.boton-primario-sobre-foto:hover {
  background-color: #ffffff;
  color: var(--texto);
}

.boton-blanco {
  background-color: #ffffff;
  color: var(--texto);
}

.boton-blanco:hover {
  background-color: var(--primario);
  color: #ffffff;
}

/* Contorno blanco, para usar sobre fotos. */
.boton-contorno-blanco {
  border-color: #ffffff;
  color: #ffffff;
}

.boton-contorno-blanco:hover {
  background-color: #ffffff;
  color: var(--texto);
}

/* Contorno verde profundo, para usar sobre fondo claro. */
.boton-contorno {
  border-color: var(--verde-profundo);
  color: var(--texto);
}

.boton-contorno:hover {
  background-color: var(--verde-profundo);
  color: #ffffff;
}

.boton-ancho {
  display: block;
  width: 100%;
}

.icono {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* 5. Encabezado y pie ------------------------------------------------------ */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--primario);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.encabezado-interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.encabezado-marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.encabezado-logo {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

/* El nombre junto al logo aparece recién en pantallas ≥ 640px. */
.encabezado-nombre {
  display: none;
  line-height: 1.25;
}

.encabezado-nombre strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.encabezado-nombre span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Botón de menú (hamburguesa). Es la única navegación del encabezado. */
.encabezado-boton-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radio-boton);
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.encabezado-boton-menu:hover {
  background-color: #ffffff;
  color: var(--verde-marca);
}

.encabezado-boton-menu svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Con el menú cerrado se ve la hamburguesa; abierto, la cruz. */
.encabezado-boton-menu .icono-cerrar {
  display: none;
}

.encabezado-boton-menu[aria-expanded="true"] .icono-menu {
  display: none;
}

.encabezado-boton-menu[aria-expanded="true"] .icono-cerrar {
  display: block;
}

.encabezado-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.encabezado-menu[hidden] {
  display: none;
}

.encabezado-menu-lista {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
}

.encabezado-menu-enlace {
  display: block;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.encabezado-menu-whatsapp {
  display: block;
  margin-top: 1rem;
  border-radius: var(--radio-boton);
  background-color: #ffffff;
  padding: 0.625rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--verde-marca);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.encabezado-menu-whatsapp:hover {
  background-color: var(--campo);
  color: var(--tinta);
}

.pie {
  background-color: var(--primario);
  color: #ffffff;
}

.pie-interior {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.pie-nombre {
  font-size: 1.125rem;
}

.pie-datos {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.pie-tenue {
  color: rgba(255, 255, 255, 0.75);
}

.pie a:hover {
  text-decoration: underline;
}

.pie-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.pie-legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.pie-legal a {
  text-decoration: none;
}

/* Botón flotante de WhatsApp: sólo en móvil (se oculta en ≥ 768px). */
.whatsapp-flotante {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--verde-profundo);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* 6. Portada --------------------------------------------------------------- */

/* Bloques con foto de fondo y velo oscuro encima (hero y llamada final). */
.bloque-foto {
  position: relative;
  overflow: hidden;
}

.bloque-foto-imagen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bloque-foto-velo {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 65, 42, 0.7);
}

.bloque-foto-contenido {
  position: relative;
}

/* Encuadrada sobre Cruz Alonso: está a la derecha y su cara arriba. */
.hero-imagen {
  object-position: 70% 26%;
}

/* Velo en degradado: más claro donde está ella, oscuro donde va el texto. */
.hero-velo {
  background-color: transparent;
  background-image:
    linear-gradient(to top, rgba(5, 65, 42, 0.85), rgba(5, 65, 42, 0.35) 55%, rgba(5, 65, 42, 0)),
    linear-gradient(to left, rgba(5, 65, 42, 0.4), rgba(5, 65, 42, 0.7) 55%, rgba(5, 65, 42, 0.85));
}

.hero-contenido {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Hasta 767px: la foto ocupa su propio alto arriba y el texto va debajo, sobre
   el verde profundo. Así el título no puede taparle la cara a la rematadora. */
@media (max-width: 767px) {
  .bloque-foto.hero {
    background-color: var(--verde-profundo);
  }

  .hero-imagen {
    position: static;
    height: 95vw;
    max-height: 30rem;
    object-position: 68% 28%;
  }

  .hero-velo {
    display: none;
  }
}

.hero-bajada {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Grilla de servicios */
.grilla-servicios {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.tarjeta-servicio {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borde);
  border-radius: 0.75rem;
  background-color: var(--papel);
  padding: 1.5rem;
}

.tarjeta-servicio p {
  flex: 1;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.tarjeta-servicio .boton {
  align-self: flex-start;
  margin-top: 1.25rem;
  padding: 0.625rem 1.25rem;
}

/* Propiedad destacada / fila de listado: foto + texto */
.fila-propiedad {
  display: grid;
  gap: 1.5rem;
}

.fila-propiedad-texto {
  align-self: center;
}

.fila-propiedad-foto {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  /* Bajada al horizonte, para que se vea el campo y no sólo el cielo. */
  object-position: center 62%;
}

.fila-propiedad-foto.redondeada {
  border-radius: 0.75rem;
}

.lista-propiedades {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* Sobre mí */
.bloque-sobre-mi {
  display: grid;
  gap: 2.5rem;
}

.foto-retrato {
  width: 100%;
  height: 20rem;
  border-radius: 1rem;
  object-fit: cover;
  /* Sobre ella, no sobre el techo de chapa. */
  object-position: 68% 24%;
}

.texto-sobre-mi {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* Banda de fotos de remates */
.banda-fotos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 2.5rem;
}

.banda-fotos img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.banda-fotos .encuadre-ella {
  object-position: 70% 22%;
}

.banda-fotos .encuadre-gente {
  object-position: center 55%;
}

.banda-fotos .encuadre-campo {
  object-position: center 62%;
}

/* Pasos del proceso */
.lista-proceso {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.paso {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--borde);
  padding-top: 1.5rem;
}

.paso-numero {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primario);
}

.paso p {
  margin-top: 0.25rem;
  max-width: 65ch;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* Llamada final sobre foto */
.llamada-imagen {
  object-position: 66% 22%;
  transition: transform 0.7s ease;
}

.bloque-foto:hover .llamada-imagen {
  transform: scale(1.05);
}

.llamada-velo {
  background-color: rgba(5, 65, 42, 0.75);
}

.llamada-contenido {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 50vh;
  padding-block: 5rem;
}

.llamada-contenido h2 {
  max-width: 48rem;
  color: #ffffff;
  font-size: 1.875rem;
}

.llamada-contenido p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Contacto */
.bloque-contacto {
  background-color: var(--primario);
  color: #ffffff;
}

.bloque-contacto-interior {
  display: grid;
  gap: 2.5rem;
  padding-block: 5rem;
}

.bloque-contacto p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.lista-contacto {
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}

.lista-contacto li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lista-contacto a {
  text-decoration: none;
}

.lista-contacto a:hover {
  text-decoration: underline;
}

/* 7. Listado y ficha de propiedades ---------------------------------------- */

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.filtros label {
  font-size: 0.875rem;
}

.filtros select {
  margin-left: 0.5rem;
  border: 1px solid var(--borde-campo);
  background-color: var(--fondo);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: inherit;
}

/* Aviso que aparece cuando ningún filtro da resultados. */
.sin-resultados {
  margin-top: 3rem;
  background-color: var(--campo);
  padding: 3rem 1.5rem;
}

.aviso-alianza {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

/* Ficha */
.ficha {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.galeria {
  display: grid;
  gap: 0.75rem;
}

.galeria img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.galeria img:first-child {
  height: 18rem;
}

.ficha-lista {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ficha-lista li {
  border-top: 1px solid var(--borde);
  padding-top: 0.5rem;
}

.ficha-caja {
  background-color: var(--campo);
  padding: 2rem 1.5rem;
}

.ficha-precio {
  font-size: 1.125rem;
  font-weight: 600;
}

/* 8. Tasaciones y formularios ---------------------------------------------- */

.bloque-tasaciones {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

.lista-guiones {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.lista-guiones li {
  border-top: 1px solid var(--borde);
  padding-top: 0.75rem;
}

.formulario {
  margin-top: 1.5rem;
}

.formulario-angosto {
  max-width: 42rem;
  margin-inline: auto;
}

.formulario label {
  display: block;
  font-size: 0.875rem;
}

.formulario label:not(:first-child) {
  margin-top: 1rem;
}

.formulario input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid var(--borde-campo);
  background-color: var(--fondo);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

.formulario .boton {
  margin-top: 1.5rem;
}

/* 9. Landing de Expo ------------------------------------------------------- */

.expo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 2.5rem var(--margen-lateral);
}

.expo-interior {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
}

.expo-logo {
  width: 4rem;
  height: 4rem;
}

.expo h1 {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.expo-rol {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.expo .boton-grande {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.expo-formulario {
  margin-top: 2rem;
  border-top: 1px solid var(--borde);
  padding-top: 2rem;
}

.boton-tinta {
  background-color: var(--verde-profundo);
  color: #ffffff;
  border-radius: 0;
}

.boton-tinta:hover {
  background-color: var(--tinta);
  color: #ffffff;
}

/* 10. Página 404 ----------------------------------------------------------- */

.pagina-404 {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  text-align: center;
}

.pagina-404 .numero {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

/* 11. Responsive ----------------------------------------------------------- */

/* ≥ 640px (sm) */
@media (min-width: 640px) {
  .encabezado-nombre,
  .encabezado-enlace {
    display: block;
  }

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

  .pie-interior {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .galeria img:first-child {
    grid-column: span 2;
  }
}

/* ≥ 768px (md) */
@media (min-width: 768px) {
  .whatsapp-flotante {
    display: none;
  }

  .seccion {
    padding-block: 7rem;
  }

  .seccion-corta {
    padding-block: 6rem;
  }

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

  .titulo-pagina,
  .titulo-seccion,
  .llamada-contenido h2 {
    font-size: 3rem;
  }

  .hero-contenido {
    min-height: 80vh;
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  .hero-bajada,
  .llamada-contenido p,
  .texto-sobre-mi {
    font-size: 1.125rem;
  }

  .fila-propiedad {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }

  .fila-propiedad-foto {
    height: 28rem;
  }

  .lista-propiedades .fila-propiedad-foto {
    height: 20rem;
  }

  .bloque-sobre-mi {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .foto-retrato {
    height: 26rem;
  }

  .banda-fotos {
    gap: 0.5rem;
  }

  .banda-fotos img {
    height: 26rem;
  }

  .llamada-contenido {
    min-height: 60vh;
    padding-block: 7rem;
  }

  .bloque-contacto-interior,
  .bloque-tasaciones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 7rem;
  }

  .lista-contacto {
    align-self: center;
  }

  .galeria img {
    height: 13rem;
  }

  .galeria img:first-child {
    height: 24rem;
  }
}

/* ≥ 1024px (lg) */
@media (min-width: 1024px) {
  .ficha {
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
  }

  .ficha-aside {
    position: sticky;
    top: 6rem;
    align-self: start;
  }

  .grilla-servicios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Respeta la preferencia del sistema de reducir animaciones. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
