html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjusted to match header height */
}

:root {
  --primary: #3b0808;       /* Ultra Deep Bordo */
  --secondary: #C0B2A3;     /* Metallic Champagne */
  --accent: #5e0b15;        /* Deep Bordo Accent */
  --text-main: #fafaf9;
  --text-muted: #a3a3a3;    /* Neutral grey instead of slate */
  --text-dark: #262626;     /* Neutral dark instead of slate */
  --bg-light: #ffffff;
  --bg-dark: #3b0808;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Header & Nav */
header {
  background: rgba(59, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(192, 178, 163, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(59, 8, 8, 0.85), rgba(59, 8, 8, 0.85)), 
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=2000');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-main);
  padding-top: 100px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sections General */
section {
  padding: 100px 0;
  scroll-margin-top: 100px;
}

.about-section {
  background-color: #fafaf9;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image, .about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-text .muted-text {
  color: #737373;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .divider {
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e5e5e5;
  transition: var(--transition);
}

.service-card:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--secondary);
  transform: translateY(-10px);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  color: #737373;
}

.contact-form {
  background: white;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 4px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d4d4d4;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 8, 8, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: block;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.8rem;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    height: 80px;
  }

  .logo-container img {
    height: 50px !important;
  }

  .logo {
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

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

  .container {
    padding: 0 1.5rem;
  }
}

/* Legales Section */
.legales-section {
  background-color: #f1f5f9;
}

.legales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.legales-content {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.legales-content h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.legales-content h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.legales-content p, .legales-content ul {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legales-content ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.legales-content li {
  margin-bottom: 0.5rem;
}

.legales-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.9rem;
}

.legales-table th, .legales-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.legales-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 768px) {
  .legales-content {
    padding: 1.5rem;
  }
}
