/* Importar la fuente Manrope */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* Variables de colores Abadie */
:root {
  --color-background: #F1F2F7; /* Fondo General: Blanco Roto */
  --color-text-primary: #1A1A1A; /* Texto de Párrafos: Gris Oscuro */
  --color-title: #00529C; /* Títulos Principales: Azul Abadie */
  --color-accent: #FDBF50; /* Botones y Acentos: Dorado */
  --color-section-bg: #FED58D; /* Fondo de Secciones: Crema Claro */
  --color-scroll-track: #FFFFFF; /* Scroll track blanco Abadie */
  
  /* Variables adicionales para el navbar */
  --color-text-secondary: #666;
  --navbar-height: 68px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Configuración base del body */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar (Abadie colors) */
/* WebKit-based browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--color-scroll-track); /* track blanco Abadie */
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent), rgba(253,191,80,0.85));
  border-radius: 999px;
  border: 3px solid transparent; /* space around thumb */
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0,82,156,0.12);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-title); /* blue on hover for contrast */
}

/* Firefox */
* {
  scrollbar-width: thin;
  /* thumb color then track color */
  scrollbar-color: var(--color-accent) var(--color-scroll-track);
}

/* Enlaces y elementos clickeables: azul Abadie */
a,
a:visited,
.info-link,
.contact-info-container a,
.property-card a {
  color: var(--color-title);
  text-decoration: none;
  transition: color 0.15s ease, -webkit-text-decoration 0.15s ease;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  transition: color 0.15s ease, text-decoration 0.15s ease, -webkit-text-decoration 0.15s ease;
}

a:hover,
.info-link:hover,
.contact-info-container a:hover,
.property-card a:hover {
  text-decoration: underline;
}

/* Enfoque accesible para enlaces */
a:focus,
.info-link:focus,
.contact-info-container a:focus,
.property-card a:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,82,156,0.08);
  border-radius: 6px;
}

/* Ensure scrollbars in code blocks or special containers look consistent */
.container, .contact-form-container, .contact-info-container {
  overflow: auto;
}

/* Configuración de headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-title);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

/* Container general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilos para sections */
section {
  padding: 80px 0;
}

/* Botones base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 191, 80, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

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

/* Estilos específicos del App */
main {
  padding-top: var(--navbar-height);
}

/* Páginas específicas que necesitan espacio para el navbar */
.properties-main,
.property-detail-main {
  padding-top: var(--navbar-height);
}

/* Estilos para las secciones de demo */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--navbar-height));
}

/* Evitar alternancia global de fondos basada en el orden DOM, puede provocar que
   se intercambien colores cuando componentes/containers anidados cambian de orden
   (ej. el header #home que ocupa full-height). En su lugar, limitar la regla a
   sections directos dentro del main o usar una clase explícita como
   .section--alt cuando se necesite fondo de sección.
*/
/* Regla específica: solo alterna secciones dentro del contenedor principal */
main > section:nth-of-type(even),
.page > section:nth-of-type(even) {
  background-color: var(--color-section-bg);
}

/* Alternativa recomendada (más predecible): aplicar la clase .section--alt
   a las secciones que deban tener fondo cremoso. Ej:
   <section class="section section--alt">...</section>
*/

section h1,
section h2 {
  margin-bottom: 1rem;
}

section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

#home {
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-section-bg) 100%);
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: var(--navbar-height);
}

#home h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  #home h1 {
    font-size: 2rem;
  }
  
  section p {
    font-size: 1rem;
  }
}

/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/438aa629764e75f3-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/875ae681bfde4580-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/51251f8b9793cdb3-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/e857b654a2caa584-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/cc978ac5ee68c2b6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/4c9affa5bc8f420e-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Manrope Fallback';src: local("Arial");ascent-override: 103.31%;descent-override: 29.07%;line-gap-override: 0.00%;size-adjust: 103.19%
}.__className_73ee6c {font-family: 'Manrope', 'Manrope Fallback';font-style: normal
}.__variable_73ee6c {--font-manrope: 'Manrope', 'Manrope Fallback'
}

