:root {
  --primary: #c48b7f;
  --primary-dark: #a66e63;
  --primary-light: #f7f0ed;
  --bg-light: #faf8f5;
  --text-main: #2d2826;
  --text-muted: #6e6562;
  --white: #ffffff;
  --border-color: #eee5e0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}
nav {
  margin-left: auto; 
  margin-right: 1.5rem; /* Ajusta este margen para acercar/alejar el menú del selector de idiomas */
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  font-weight: 400;
  color: var(--primary);
}

.mobile-right-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--primary-dark);
}

.lang-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--white);
}

/* CORRECCIÓN: Quita el subrayado y el azul del enlace de Euskera */
.lang-selector a {
  font-size: 0.8rem;
  padding: 0 0.1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-selector a:hover {
  color: var(--primary-dark);
}

.lang-selector .active-lang {
  color: var(--primary-dark);
}

.lang-divider {
  color: var(--border-color);
}

.nav-phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--primary-light);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
}

.page-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Botones */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  display: inline-block;
  text-align: center;
}

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

.btn-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-main);
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: inline-block;
  text-align: center;
}

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

/* Hero Section (Index) */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.booking-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.75rem;
}

.booking-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.booking-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

/* CORRECCIÓN: Evita que el teléfono salga en azul o subrayado al convertirlo en enlace */
.phone-number {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
}

.phone-number:hover {
  color: var(--primary-dark);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-img-container {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sección de Instalaciones (Index) */
.facility-section {
  background-color: var(--white);
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.facility-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.facility-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
}

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

.facility-card img.vertical-img {
  object-fit: contain;
  background-color: var(--bg-light);
}

.facility-card p {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  margin: 0;
}

/* Servicios Preview (Index) & Services Container */
.services-preview {
  background-color: var(--bg-light);
  padding: 4.5rem 2rem;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid-preview {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-preview {
  padding: 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-preview:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-preview h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.card-preview p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.link-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-more:hover {
  text-decoration: underline;
}

/* Servicios page specific */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.service-block {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
}

.service-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-block h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem 0;
}

.service-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: center;
  margin: 1.25rem 0;
}

.service-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  display: block;
  margin: 0 auto;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.25rem;
}

.service-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.quote-box {
  background-color: var(--primary-light);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  margin: 1.5rem 0;
  font-size: 0.925rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Sobre Mí page specific */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-image-container {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  background-color: var(--white);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

.cv-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.cv-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.25rem;
}

.cv-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Contacto page specific */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-item a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.notice-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.notice-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer común */
footer {
  background-color: #231f1e;
  color: var(--white);
  padding: 3.5rem 2rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #36302e;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col p {
  color: #a39894;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.75rem auto 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #786e6a;
}

/* Responsive */
@media (max-width: 900px) {
  .facility-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
 .menu-toggle { display: block; }
  nav ul {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--white);
      padding: 1.5rem;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
      gap: 1.25rem;
      border-bottom: 1px solid var(--border-color);
  }
  nav ul.nav-active { display: flex; }

 .hero {
      display: flex;
      flex-direction: column-reverse;
      padding: 2.5rem 1.25rem;
      gap: 2rem;
 }

 .about-container, .contact-container {
      grid-template-columns: 1fr;
      padding: 2.5rem 1.25rem;
      gap: 2rem;
 }
 .hero-text h1, .page-header h1 { font-size: 1.75rem; }
 .hero-buttons { flex-direction: column; }
 .btn-primary, .btn-secondary { text-align: center; }
 .hero-img-container { height: 260px; }
 .about-image-container { height: 340px; }
 .grid-preview { grid-template-columns: 1fr; }
 .services-container { padding: 2.5rem 1.25rem; }
 .service-block { padding: 1.75rem; }
 .service-content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
 .contact-card { padding: 1.75rem; }
 .map-section { padding: 0 1.25rem; margin-bottom: 3rem; }
 .map-container { height: 300px; }
 .footer-content { flex-direction: column; gap: 1.75rem; }
}