/* --- Importación de Tipografías --- */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Brand Colors */
  --primary: #16a085;
  --primary-light: #e6f7f3;
  --primary-dark: #0e7a62;
  --accent: #e8734a;
  --accent-gradient-end: #d4843a;

  /* Neutrals */
  --background: 0 0% 99%;
  --foreground: 210 20% 15%;
  --muted-foreground: #6b7580;
  --background: #f3f5f7;
  --secondary-bg: #f1f4f7;
  --muted-bg: #ebeef2;
  --border: #dfe4ea;
  --white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    hsl(168, 76%, 36%) 0%,
    hsl(180, 60%, 45%) 100%
  );
  --gradient-card: linear-gradient(
    180deg,
    hsl(0, 0%, 100%) 0%,
    hsl(210, 20%, 98%) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    hsl(16, 85%, 60%) 0%,
    hsl(25, 90%, 55%) 100%
  );

  --shadow-card: 0 4px 20px -4px hsl(210 20% 15% / 0.08);
  --shadow-card-hover: 0 12px 32px -8px hsl(210 20% 15% / 0.15);
  --shadow-glow: 0 0 40px hsl(168 76% 36% / 0.2);

  --radius: 0.75rem;

  --primary-foreground: 0 0% 100%;

  --secondary: 210 20% 96%;
  --bg-primary: 0 0% 99%;

  /* Typography */
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background-color: hsl(var(--background));
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-display);
  font-weight: 700;
}

/* --- Logo Style --- */
.logo {
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo a{
  text-decoration: none;
  color: inherit;
}
.logo .ubi {
  color: var(--foreground);
}
.logo .ksa {
  color: var(--primary);
}

/* --- Navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  background-color: hsl(0 0% 99% / .8);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4rem;
  border-bottom-width: 1px ;
  border-bottom-style:solid;
  border-color:  hsl(210 20% 90% );
  backdrop-filter: blur(12px);
}

nav a {
  text-decoration: none;
  margin: 0 15px;
  color: var(--foreground);
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover {
  color: var(--primary);
}

.navbar .btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

/* --- Hero Section --- */
.hero {
  background:
    linear-gradient(rgba(30, 42, 54, 0.6), rgba(30, 42, 54, 0.6)),
    url("https://images.unsplash.com/photo-1512250431446-d0b4b57b27ec?q=80&w=1476&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: var(--white);
}
.hero-content {
  max-width: 42rem;
}

.w-4 {
  width: 1rem;
}
.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}
.h-5 {
  height: 1.25rem;
}

.w-7 {
  width: 1.75rem;
}
.h-7 {
  height: 1.75rem;
}

.w-8 {
  width: 2rem;
}
.h-8 {
  height: 2rem;
}

.gap-2{
  gap: .5rem;
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.bg-foreground {
  background-color: hsl(var(--foreground));
}


.text-muted {
  color: var(--muted-foreground);
}

.badge {
  background: hsl(168 76% 36% /0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 5px;
  color: hsl(var(--primary-foreground));
}

h1 {
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.highlight-blue {
  color: var(--primary);
}
.highlight-orange {
  color: var(--accent);
}

.hero-btns {
  margin-top: 2rem;
  display: flex;
  gap: 15px;
}

.btn-orange {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.btn-orange:hover {
  box-shadow: 0 4px 15px rgba(232, 115, 74, 0.3);
  transition: 2seg ease-in-out;
}

.btn-outline {
  background-color: hsl(0 0% 100 / 0.2);
  border: 2px solid hsl(0 0% 100 / 0.2);
  color: hsl(var(--primary-foreground));
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: 0.3s;
  font-size: 1.125rem;

  line-height: 1.75rem;
}
.btn-outline:hover {
  background: hsl(0 0% 100 / 0.2);
  color: var(--foreground);
}

.stats {
  display: flex;
  padding-top: 2rem;
  border-top-width: 2px;
  border-top-style: solid;
  border-color: hsl(0 0% 100 / 0.2);
  margin-top: 2rem;
  gap: 2rem;
}

.stats .font-bold {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.stats .text-small {
  color: hsl(var(--primary-foreground) / 0.6);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-small{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* --- Sections & Grids --- */
.section {
  padding: 5rem 10%;
}
.secondary-bg {
  background-color: var(--secondary-bg);
}

.text-center {
  text-align: center;
  margin-bottom: 3rem;
  color: hsl(var(--foreground));
}
.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: hsl(var(--foreground));
}

.grid-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card-type {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: start;
  transition: 0.3s;
  box-shadow: var(--shadow-card);
}

.card-icon {
  display: flex;
  height: 4rem;
  width: 4rem;
  border-radius: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bg-primary-light {
  background-color: hsl(168 60% 94%);
  color: hsl(168 76% 36%);
}

.bg-accent-light {
  background-color: hsl(16 90% 95%);
  color: hsl(16 85% 60%);
}

.bg-gradient-hero{
  background-image: var(--gradient-hero);
  color: white;
}
.card-type:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.card-type:hover .bg-primary-light {
  background-color: hsl(168 76% 36%);
  color: var(--white);
}

.card-type i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Property Cards --- */

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.btn-text {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid #0e7a62;
  border-radius: var(--radius);
  align-items: center;
  display: inline-flex;
  height: 2.5rem;
  cursor: pointer;
  gap: 5px;
  background-color: transparent;
  color: #0e7a62;
}

.btn-text:hover {
  color: white;
  background-color: #0e7a62;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-properties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: 0.4s;
  transition-property: all;
  transition-duration: 0.3s;
  animation-duration: 0.3s;
}

.img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.object-cover {
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-weight: 600;
  font-family: var(--font-display);
  overflow: hidden;
  display: -webkit-box;
  box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  margin-bottom: 0.5rem;
}
.uppercase {
  text-transform: uppercase;
}
.property-card:hover {
  box-shadow: var(--shadow-card-hover);
  cursor: pointer;
}

.property-card:hover .img-group {
  transform: scaleX(1.1) scaleY(1.1);
  animation-duration: 0.5s;
  transition-duration: 0.5s;
}

.property-card:hover .card-title {
  color: #0e7a62;
}


.details {
  display: flex;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-top: 0.75rem;
  border-top-width: 1px;
  border-top-style: solid;
  border-color: var(--border);
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
}

.status-tag {
  background: var(--primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.price {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
}
.location {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.btn-card {
  width: 100%;
  padding-left:  1rem;
  padding-right:  1rem;
  background: transparent;
   border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
  transition: 0.3s;
  font-size: 1rem;
  line-height: 1.25rem;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  margin-top: .75rem;
  cursor: pointer;
  border-radius: var(--radius);
  height: 2.25rem;
}

.btn-card:hover {
  background: var(--primary);
  color: var(--white);
  animation-duration: .3s;
  transition-duration: .3s;
}

.items-center{
    display: flex;
    gap:.25rem;
    align-items: center;
}

/* --- Final CTA & Footer --- */
.cta-banner {
  padding: 6rem 10%;
}

.cta-banner .container{
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.text-primary-foreground{
  color: var(--primary-foreground)
}

.text-primary-foreground-80{
  color: hsl(var(--primary-foreground) / .8)
}

.btn-white-outline {
  background:  hsl(var(--primary-foreground) / .1);
  border: 2px solid hsl(var(--primary-foreground) /.3);
  color: hsl(var(--primary-foreground));
  padding: 14px 2.5rem;
  border-radius: .75rem;
  margin-top: 30px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
  gap: .5rem;
  backdrop-filter:blur(4px);
}

.btn-white-outline:hover {
  transition: all;
  transition-duration: .3s;
  animation-duration: .3s;
 background:  hsl(var(--primary-foreground) / .2);
}

.main-footer {
  background: hsl(var(--foreground));
  color: var(--muted-bg);
  padding: 5rem 10% 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid #344155;
  padding-bottom: 3rem;
}


.list-items{
  display: flex;
  flex-direction: column;
  gap: .75rem;
  list-style: none;
}

.footer-title{
  margin-bottom: 1rem;
  font-weight: 600;
}

.list-items a{
  text-decoration: none;
  color: inherit;
}

.footer-brand .logo .ubi {
  color: var(--white);
}

.footer-brand .logo .ksa, .text-primary {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}



/* --- Responsive --- */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .section-header {
    gap: 1.5rem;
    flex-direction: column;
  }
  .btn-text {
    text-align: start;
    width: 100%;
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  h1 {
    font-size: 2.4rem;
  }
}
