/* Import Google Font */
body {
    font-family: 'Poppins', sans-serif;
    /* Ajuste para la navbar fija */
    padding-top: 70px; /* Ajusta este valor según la altura final de tu navbar */
  }
  
  /* Variables de Color (basadas en el logo) */
  :root {
    --primary-color: #D70A5F; /* Fucsia/Magenta del logo */
    --secondary-color: #333333; /* Gris oscuro / Negro del logo */
    --light-grey: #f8f9fa;   /* Gris claro de Bootstrap */
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted-custom: #6c757d; /* Gris texto 'Servicios Inmobiliarios' */
  }
  
  /* Smooth Scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Navbar Styling */
  .navbar-logo {
    max-height: 45px; /* Ajusta el tamaño del logo */
  }
  
  .navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 400;
    transition: color 0.3s ease;
  }
  
  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* Estilo botones primarios */
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  
  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active {
    background-color: #b80850; /* Un tono más oscuro del primario */
    border-color: #b80850;
    box-shadow: 0 0 0 0.25rem rgba(215, 10, 95, 0.5); /* Sombra al hacer focus */
  }
  
  /* Sections General Styling */
  .section-padding {
    padding: 80px 0;
  }
  
  .section-title {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
  }
  
  /* Añade un pequeño subrayado decorativo a los títulos */
  .section-title::after {
      content: '';
      position: absolute;
      display: block;
      width: 60px;
      height: 3px;
      background: var(--primary-color);
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
  }
  
  /* Propiedades Section */
  .property-card {
      border: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border-radius: 0.5rem; /* Bordes redondeados */
      overflow: hidden; /* Asegura que la imagen no se salga */
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .property-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .property-card .card-img-top {
      height: 200px; /* Altura fija para las imágenes */
      object-fit: cover; /* Asegura que la imagen cubra el espacio */
  }
  
  .property-card .card-title {
      color: var(--secondary-color);
      font-weight: 600;
      margin-bottom: 0.5rem;
  }
  
  .property-card .price {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--primary-color);
  }
  
  .property-card .card-body {
      padding: 1.25rem;
  }
  
  /* Servicios Section */
  .service-item {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .service-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  .service-item h5 {
      color: var(--secondary-color);
      font-weight: 600;
  }
  .service-item p {
      font-size: 0.9rem;
      color: var(--text-muted-custom);
  }
  .text-primary { /* Usa el color primario para iconos y links */
      color: var(--primary-color) !important;
  }
  
  /* Contacto Section */
  #contacto h4 {
      color: var(--secondary-color);
      font-weight: 600;
  }
  
  .form-control:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 0.25rem rgba(215, 10, 95, 0.25);
  }
  
  .contact-info p {
      margin-bottom: 1rem;
      line-height: 1.6;
  }
  .contact-info strong {
      color: var(--secondary-color);
  }
  
  /* Footer Styling */
  .footer {
    background-color: var(--secondary-color); /* Usa el gris oscuro/negro del logo */
    color: var(--text-light);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 991.98px) {
    body {
        padding-top: 60px; /* Ajusta si la navbar cambia de altura en móvil */
    }
    .navbar-logo {
        max-height: 40px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 767.98px) {
      .section-title {
          font-size: 1.6rem;
      }
      .property-card .card-img-top {
          height: 180px;
      }
  }

/* Propiedades Section - Idealista Link Block */

/* Elimina el padding general si existe y usa uno compacto o ninguno */
.section-padding-compact {
    padding: 40px 0; /* Reduce el padding vertical */
  }

  
  .idealista-section-title {
    font-size: 1.8rem; /* Tamaño del título */
    font-weight: 700;
    color: #212529; /* Color específico para el título, más oscuro */
  }
  
  .idealista-section-text {
    font-size: 1.1rem;
    color: #555; /* Color para el texto descriptivo */
  }
  
  .idealista-name {
      font-weight: bold;
      font-size: 1.2rem;
      color: #212529;
  }
  
  /* Quita el subrayado de título que definimos antes si afecta aquí */
  .idealista-section .section-title::after {
      display: none;
  }
  
  /* Asegura que el título dentro del enlace tenga el color correcto */
  .idealista-link-block h2 {
      color: #212529; /* Hereda o define explícitamente */
  }
  
/* Estilos para el enlace de Idealista en línea */

.idealista-inline-link {
    display: inline-flex; /* Mantenemos inline-flex para que se comporte como un bloque en línea */
    align-items: center; /* Centra verticalmente los elementos hijos */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.idealista-inline-link:hover,
.idealista-inline-link:focus {
    opacity: 0.8;
    text-decoration: none;
    outline: none;
}

.idealista-yellow-text {
    color: #FFCF00;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: flex; /* Convertimos el texto en un contenedor flex */
    align-items: center; /* Centramos verticalmente dentro del texto */
}

.idealista-inline-logo {
    height: 30px;
    width: auto;
    margin-left: 0.5rem; /* Añadimos un poco de espacio entre el texto y el logo */
}

/* Ajustes responsivos para el texto amarillo */
@media (max-width: 767.98px) {
    .idealista-yellow-text {
      font-size: 1.3rem;
    }
    .idealista-inline-logo {
      height: 25px;
    }
}