/* Base styles */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --muted: #1a1a1a;
  --muted-foreground: #b3b3b3;
  --gold: #C0A080;
  --dark-gray: #121212;
  --border: #333333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'GT Planar', 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 18px;
  font-weight: 300;
}

/* Específico para párrafo del hero - copiado de debug que funciona */
.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

/* Clase específica para el párrafo del hero con override forzado */
.hero-paragraph {
  text-align: center !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  margin-bottom: 3rem !important;
  font-weight: 300 !important;
  opacity: 0.9 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'GT Planar', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Título responsivo con nowrap para evitar separación */
.nowrap {
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  min-height: 60px;
  filter: brightness(1.1);
}

/* El logo mantiene siempre el mismo tamaño */

/* Language Selector */
.language-selector {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'GT Planar', Arial, sans-serif;
}

.lang-btn:hover {
  border-color: #C0A080;
  color: #C0A080;
}

.lang-btn.active {
  border-color: #C0A080;
  background: #C0A080;
  color: #000;
}

@media (max-width: 767px) {
  .language-selector {
    margin-left: 0;
    margin-top: 20px;
    justify-content: center;
  }
}

.main-nav {
  display: none;
}

.nav-link {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
  margin-left: 2rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-button {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 20px;
}

.mobile-language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-language-selector .lang-btn {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0.6;
}

.mobile-language-selector .lang-btn.active {
  color: var(--gold);
  opacity: 1;
}

.mobile-language-selector .lang-separator {
  color: var(--foreground);
  opacity: 0.3;
  font-size: 12px;
}

.mobile-menu {
  display: none;
  width: 100%;
  background-color: var(--background);
  padding: 1rem 0;
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
}

.mobile-menu .nav-link {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  text-align: center;
  padding: 120px 0 80px 0;
}

/* Centrado simple y directo para hero */
.hero {
  text-align: center;
}

.hero *, .hero p, .hero h1 {
  text-align: center;
}

/* Scroll down arrow - simple como en la web original */
.scroll-down {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--foreground);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
  text-align: center;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Control de líneas responsivo para el título */
@media (max-width: 767px) {
  .hero h1 br {
    display: inline; /* Siempre mostrar el salto en móvil */
  }
}

@media (min-width: 768px) and (max-width: 1400px) {
  .hero h1 br {
    display: none; /* Ocultar salto en pantallas medianas para que quepan en una línea */
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1401px) {
  .hero h1 br {
    display: inline; /* Mostrar salto en pantallas muy grandes */
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
  font-weight: 300;
  line-height: 1.6;
}

.button {
  display: inline-block;
  background-color: transparent;
  border: 1px solid var(--gold);
  color: var(--foreground);
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: var(--gold);
  color: var(--background);
}

.scroll-down {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--foreground);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

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

.about-content {
  max-width: 750px;
  margin: 0 auto;
}

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

.about h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Services section */
.services {
  padding: 6rem 0 8rem;
  background-color: var(--background);
}

.services-header {
  max-width: 750px;
  margin: 0 auto 4rem;
  text-align: center;
}

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

.services h3 {
  color: var(--gold);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.services-header p {
  font-size: 1.125rem;
  opacity: 0.8;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  border: 1px solid rgba(192, 160, 128, 0.2);
  padding: 2rem;
  transition: all 0.5s ease;
}

.service-card:hover {
  border-color: rgba(192, 160, 128, 0.5);
}

.service-card h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-style: normal;
}

.service-card p {
  font-size: 1.125rem;
  opacity: 0.8;
}

/* Contact section */
.contact {
  padding: 6rem 0 8rem;
  background-color: var(--background);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact > p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.contact-info {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(192, 160, 128, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item span {
  margin-right: 0.5rem;
  opacity: 0.8;
  font-family: 'GT Planar', sans-serif;
}

.contact-item a {
  color: var(--gold);
}

.contact-item a:hover {
  text-decoration: underline;
}

.locations {
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background-color: var(--background);
  border-top: 1px solid rgba(192, 160, 128, 0.2);
}

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

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-image {
  max-width: 180px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

.footer-nav {
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav li {
  margin: 0 1rem;
}

.footer-nav a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-copyright p {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Media Queries */
@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
  
  .mobile-controls {
    display: none;
  }
}

@media (max-width: 899px) {
  .main-nav {
    display: none;
  }
  
  .mobile-controls {
    display: flex;
  }
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-logo, .footer-nav {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}