/* Estilos principales para el sitio web inmobiliario */

:root {
  --color-primary: #2c3e50;
  --color-secondary: #3498db;
  --color-accent: #27ae60;
  --color-light: #f9f9f9;
  --color-dark: #333;
  --color-gray: #7f8c8d;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: #fff;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Encabezado */
header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

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

.logo h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* Navegación */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--color-secondary);
}

/* Hero Section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
}

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

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

/* Secciones */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Tarjetas */
.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.card p {
  color: var(--color-gray);
  margin-bottom: 15px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Características */
.features {
  background-color: var(--color-light);
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

/* Análisis de inversión */
.investment-analysis {
  background-color: #fff;
}

.scenario {
  margin-bottom: 40px;
}

.scenario h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  border-left: 4px solid var(--color-secondary);
  padding-left: 15px;
}

/* Testimonios */
.testimonials {
  background-color: var(--color-light);
}

.testimonial {
  text-align: center;
  padding: 30px;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-position {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* Contacto */
.contact {
  background-color: #fff;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-secondary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Pie de página */
footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--color-light);
  padding: 10px 0;
  margin-top: 70px;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
}

.breadcrumbs ul li {
  margin-right: 10px;
}

.breadcrumbs ul li::after {
  content: '/';
  margin-left: 10px;
  color: var(--color-gray);
}

.breadcrumbs ul li:last-child::after {
  content: '';
}

.breadcrumbs ul li a {
  color: var(--color-gray);
  text-decoration: none;
}

.breadcrumbs ul li a:hover {
  color: var(--color-secondary);
}

.breadcrumbs ul li.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 15px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}
