/* CSS Variables */
:root {
  --primary-color: #2c4c9b;
  --secondary-color: #373336;
  --tertiary-color: #ff9900;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-family: 'Roboto', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--white);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--medium-gray);
  line-height: 1.5;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-button.primary:hover {
  background-color: #1e3a7a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.cta-button.secondary:hover {
  background-color: #2a262a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.tertiary {
  background-color: var(--tertiary-color);
  color: var(--white);
}

.cta-button.tertiary:hover {
  background-color: #e6870a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.whatsapp {
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.cta-button.whatsapp:hover {
  background-color: #1aa855;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  margin-bottom: 0;
  display: flex;
  justify-content: flex-start;
  align-content: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('img/properlia-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 70px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 76, 155, 0.8),
    rgba(255, 153, 0, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Map Section */
.map-section {
  padding: 2rem 0;
  background-color: var(--light-gray);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--medium-gray);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--medium-gray);
}

/* Properties Section */
.valor-agregado {
  padding: 6rem 0;
  background-color: var(--white);
}

/* Alcance Section */
.alcance {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--light-gray);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--tertiary-color);
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.testimonial-author strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.contact-content {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.link {
    text-decoration: none;
    font-weight: 300;
    color: var(--primary-color)
}

.contact-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--medium-gray);
  margin-bottom: 0;
}

.whatsapp-cta {
  margin-top: 4rem;
  text-align: center;
}

.whatsapp-icon {
  font-size: 1.2rem;
}

.coverage-text {
  margin-top: 1rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #ccc;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--tertiary-color);
}

.footer-contact p {
  color: #ccc;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
}

.footer-bottom p {
  color: #ccc;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .feature-card,
  .benefit-item,
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .property-content {
    padding: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.property-card,
.benefit-item,
.testimonial-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.cta-button:focus,
.nav-link:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--tertiary-color);
  outline-offset: 2px;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
