/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@300;400;500&display=swap');

/* CSS Variables - Paleta base */
:root {
  --principal: #B8975A;
  --acento: #0E0E0D;
  --texto-oscuro: #0E0E0D;
  --texto-claro: #F7F4EF;
  --fondo: #F7F4EF;
  --borde: #D9D2C5;
  --exito: #059669;
  --alerta: #DC2626;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  line-height: 1.5;
  color: var(--texto-oscuro);
  background-color: var(--fondo);
}

/* Tel links - clickable but look like regular text */
a[href^="tel:"] {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:focus {
  text-decoration: underline;
  color: var(--principal);
}

/* Hidden links - clickable but look like regular text */
.hidden-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hidden-link:hover,
.hidden-link:focus {
  text-decoration: underline;
  color: var(--principal);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--texto-oscuro);
  color: var(--texto-claro);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  height: 64px;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid #D9D2C5;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.site-header .container {
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

/* Language selector */
.language-selector {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--principal);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-oscuro);
  text-decoration: none;
  transition: all 0.2s;
}

.lang-link:hover,
.lang-link:focus {
  background: var(--principal);
  color: var(--texto-claro);
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

.lang-link.active {
  background: var(--principal);
  color: var(--texto-claro);
}

/* Site navigation */
.site-nav {
  display: inline-flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #0E0E0D;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  opacity: 0.5;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .site-nav {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }
  
  .site-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }
  
  .nav-link {
    font-size: 13px;
  }
}

/* Hero */
.hero {
  background: #F7F4EF;
  color: var(--texto-oscuro);
  padding: 0;
  text-align: center;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.05;
  color: #0E0E0D;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 0;
  background: transparent;
  border: 1px solid #B8975A;
  color: #0E0E0D;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  min-height: 48px;
}

.btn:hover,
.btn:focus {
  background: #0E0E0D;
  color: #F7F4EF;
  border-color: #0E0E0D;
}

.btn-primary {
  background: transparent;
  color: #0E0E0D;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0E0E0D;
  color: #F7F4EF;
  border-color: #0E0E0D;
}

.btn-secondary {
  background: transparent;
  color: #0E0E0D;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #0E0E0D;
  color: #F7F4EF;
  border-color: #0E0E0D;
}

.btn-large {
  padding: 16px 40px;
  font-size: 11px;
}

/* Focus visible para accesibilidad */
*:focus {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

/* Secciones */
main [id] {
  scroll-margin-top: 120px;
}

section {
  padding: 120px 0;
}

section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 64px;
  color: var(--texto-oscuro);
  text-align: center;
}

/* Servicios */
.services {
  background: var(--texto-claro);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.service-card {
  background: #F7F4EF;
  padding: 48px 40px;
  border-radius: 0;
  border: 0.5px solid #D9D2C5;
  transition: all 0.5s ease;
}

.service-card:hover {
  border-color: #B8975A;
  transform: none;
  box-shadow: none;
}

.service-icon {
  color: var(--principal);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 28px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--texto-oscuro);
}

.service-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--acento);
  margin-bottom: 16px;
}

.service-card p {
  color: #4B5563;
  line-height: 1.6;
}

.services-note {
  text-align: center;
  font-style: italic;
  color: #6B7280;
  padding: 16px;
  background: transparent;
  border: 0.5px solid var(--borde);
  border-radius: 0;
}

/* Sobre mí */
.about {
  background: var(--fondo);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.about-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--principal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.about-text {
  max-width: 700px;
}

.about-text p {
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 17px;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  padding: 24px;
  background: var(--texto-claro);
  border-radius: 8px;
}

.about-badges span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Reseñas */
.reviews {
  background: var(--texto-claro);
  padding: 64px 16px;
  text-align: center;
}

.reviews h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  color: var(--texto-oscuro);
  margin-bottom: 32px;
}

.elfsight-app-1f621f33-e50e-4f27-9a88-9e82ee90b484 {
  max-width: 1200px;
  margin: 0 auto;
}

.about-badges li {
  padding: 8px 0;
  font-size: 16px;
}

/* Reservar */
.booking {
  background: var(--texto-claro);
}

.booking-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.booking-card {
  background: var(--fondo);
  padding: 32px;
  border-radius: 0;
  text-align: center;
  border: 0.5px solid var(--borde);
}

.booking-card h3 {
  font-size: 24px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--principal);
}

.booking-phone {
  font-size: 32px;
  font-weight: 700;
  color: var(--acento);
  margin-bottom: 16px;
}

.booking-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  background: var(--fondo);
  border: 0.5px solid var(--principal);
  border-radius: 0;
  line-height: 1.7;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: #f9fafb;
}

.faq h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  color: var(--texto-oscuro);
  margin-bottom: 8px;
}

.faq-subtitle {
  text-align: center;
  color: var(--texto-gris);
  font-size: 18px;
  margin-bottom: 48px;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category h3 {
  font-size: 24px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  color: var(--principal);
  margin-bottom: 24px;
  border-bottom: 3px solid var(--principal);
  padding-bottom: 8px;
}

.faq-item {
  background: var(--texto-claro);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--texto-oscuro);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: bold;
  color: var(--principal);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: #f0f0f0;
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--texto-gris);
  line-height: 1.6;
  margin: 0;
}

/* Ubicación */
.location {
  background: var(--fondo);
}

.location iframe {
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.location-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.location-info > div {
  background: var(--texto-claro);
  padding: 24px;
  border-radius: 0;
  border: 0.5px solid var(--borde);
}

.location-info h3 {
  font-size: 20px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: var(--principal);
}

.location-info p {
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--texto-oscuro);
  color: var(--texto-claro);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-content h3 {
  font-size: 20px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--texto-claro);
}

.footer-content p {
  line-height: 1.8;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid #374151;
}

.footer-legal a {
  color: var(--texto-claro);
  text-decoration: none;
  font-size: 18px;
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--principal);
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  font-size: 14px;
  color: #9CA3AF;
}

/* Sticky call button (mobile only) */
.sticky-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--acento);
  color: var(--texto-claro);
  padding: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.sticky-call-btn:hover,
.sticky-call-btn:focus {
  background: var(--principal);
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 24px;
  }
  
  .hero-info {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .about-photo {
    flex-shrink: 0;
  }
  
  .booking-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .location-info {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-legal {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  
  .hero-subtitle {
    font-size: 26px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .location iframe {
    height: 400px;
  }
  
  /* Ocultar sticky button en desktop */
  .sticky-call-btn {
    display: none;
  }
}

/* Mobile landscape adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 40px 16px;
    min-height: auto;
  }
  
  section {
    padding: 40px 0;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--texto-oscuro);
  color: var(--texto-claro);
  padding: 24px 16px;
  z-index: 2000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner h3 {
  font-size: 20px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: var(--acento);
}

.cookie-banner p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cookie-banner .btn {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 44px;
}

.cookie-settings-panel {
  background: rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cookie-settings-panel h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--acento);
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-option span {
  font-size: 14px;
}

.cookie-links {
  font-size: 13px;
  margin-bottom: 0;
}

.cookie-links a {
  color: var(--acento);
  text-decoration: underline;
}

.cookie-links a:hover,
.cookie-links a:focus {
  color: #d68a35;
}

/* Hide cookie banner when consent given */
.cookie-banner.hidden {
  display: none;
}

/* Cookie banner responsive */
@media (min-width: 768px) {
  .cookie-banner {
    padding: 24px 32px;
  }
  
  .cookie-banner h3 {
    font-size: 22px;
  }
  
  .cookie-banner p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .cookie-buttons {
    flex-wrap: nowrap;
  }
  
  .cookie-banner .btn {
    flex: 0 0 auto;
  }
}

/* Legal Pages */
.legal-section {
  background: var(--fondo);
  padding: 64px 0;
  min-height: calc(100vh - 200px);
}

.legal-section h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--texto-oscuro);
}

.legal-date {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 32px;
  font-style: italic;
}

.legal-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--principal);
}

.legal-section h3 {
  font-size: 20px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--texto-oscuro);
}

.legal-section p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: #374151;
}

.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
  line-height: 1.8;
  color: #374151;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section strong {
  color: var(--texto-oscuro);
  font-weight: 600;
}

.legal-section a {
  color: var(--principal);
  text-decoration: underline;
}

.legal-section a:hover,
.legal-section a:focus {
  color: var(--acento);
}

.legal-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--borde);
}

.legal-section .legal-list {
  list-style: none;
  padding-left: 0;
}

.legal-section .legal-list li {
  padding: 8px 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--texto-claro);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cookie-table thead {
  background: var(--principal);
  color: var(--texto-claro);
}

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--borde);
}

.cookie-table th {
  font-weight: 600;
  font-size: 14px;
}

.cookie-table td {
  font-size: 14px;
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

.cookie-table tbody tr:hover {
  background: #f9fafb;
}

/* Cookie table responsive */
@media (max-width: 768px) {
  .cookie-table {
    font-size: 12px;
  }
  
  .cookie-table th,
  .cookie-table td {
    padding: 8px 12px;
  }
}

/* Legal pages responsive */
@media (min-width: 768px) {
  .legal-section h3 {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}