* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


.top-bar {
  background: #374d76;
  color: #fff;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info,
.social-info {
  display: flex;
  gap: 15px;
  font-size: 0.9em;
}

.info-item,
.social-info a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.top-bar svg {
  fill: #fff;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}


.navbar {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  color: #D32F2F;
}

.navbar .logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #D32F2F;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar ul li {
    padding: 15px 20px;
    border-top: 1px solid #eee;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }
}


.hero {
  background: url('/images/hero.jpg') center/cover no-repeat;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-overlay p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn-primary {
  background: #D32F2F;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #B71C1C;
}


section {
  padding: 60px 0;
}

section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  text-align: center;
  line-height: 1.8;
  color: #555;
}


.services .service-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

.service-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  text-align: center;
  transition: transform 0.3s;
}

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

.service-item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  fill: #D32F2F;
}

.service-item h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}

.service-item p {
  font-size: 1em;
  color: #666;
}


.properties .property-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

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

.card-info {
  padding: 20px;
}

.card-info h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.card-info p {
  font-size: 0.95em;
  margin-bottom: 10px;
  color: #777;
}

.card-info .price {
  font-size: 1.1em;
  font-weight: 700;
  color: #D32F2F;
  margin-bottom: 15px;
  display: block;
}

.btn-view {
  background: #D32F2F;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn-view:hover {
  background: #B71C1C;
}


.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact form label {
  font-weight: 700;
  color: #333;
}

.contact form input,
.contact form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.contact form button {
  background: #D32F2F;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 700;
}

.contact form button:hover {
  background: #B71C1C;
}


.site-footer {
  background: #374d76;
  color: #fff;
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 50px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ccc;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9em;
  color: #ccc;
}

.footer-contact .info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-footer p {
  font-size: 0.9em;
}


@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.5em;
  }

  .hero-overlay p {
    font-size: 1em;
  }

  .services .service-items {
    flex-direction: column;
    align-items: center;
  }
}

.featured-section {
  padding: 60px 20px;
  background: #f8f8f8;
  text-align: center;
}

.featured-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.featured-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.featured-card a {
  display: block;
  position: relative;
}

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

.featured-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card:hover .featured-card-overlay {
  opacity: 1;
}

.btn-ver-detalles {
  background: #D32F2F;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.btn-ver-detalles:hover {
  background: #B71C1C;
}

.featured-card-info {
  padding: 20px;
  text-align: left;
}

.featured-card-info h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #222;
}

.featured-card-info .price {
  font-size: 1.2em;
  font-weight: bold;
  color: #D32F2F;
  margin-bottom: 15px;
}

.featured-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  color: #777;
}

.detail-icon {
  margin-right: 5px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .featured-section h2 {
    font-size: 2em;
  }

  .featured-card img {
    height: 180px;
  }
}


.contact {
  padding: 60px 20px;
  background: #f2f2f2;
}

.contact .container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #333;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .form-group {
  display: flex;
  flex-direction: column;
}

.contact .form-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.contact .form-group input,
.contact .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.contact .form-group input:focus,
.contact .form-group textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.btn-primary {
  background: #007BFF;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
}

.btn-primary:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .contact .container {
    padding: 30px 20px;
  }

  .contact h2 {
    font-size: 2em;
  }
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}