/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --terracotta: #C4725A;
  --terracotta-light: #D4917D;
  --terracotta-dark: #A85A45;
  --sand: #F5EDE4;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD2;
  --cream: #FFFDF9;
  --text-dark: #3D2B2B;
  --text-mid: #6B5252;
  --text-light: #9A8282;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(61, 43, 43, 0.06);
  --shadow-md: 0 4px 20px rgba(61, 43, 43, 0.08);
  --shadow-lg: 0 8px 40px rgba(61, 43, 43, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ===== SIDE NAV ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 28px;
  z-index: 1000;
  border-right: 1px solid rgba(196, 114, 90, 0.1);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.nav-logo {
  font-size: 28px;
  line-height: 1;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  transition: all var(--transition);
}

.nav-links li a span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta-light);
  min-width: 20px;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(196, 114, 90, 0.12);
  color: var(--terracotta-dark);
}

.nav-links li a.active {
  font-weight: 500;
}

.nav-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(196, 114, 90, 0.15);
}

.nav-phone {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.nav-address {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 240px;
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 50%, var(--sand) 100%);
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(196, 114, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  padding: 80px 60px 80px 80px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196, 114, 90, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 114, 90, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--sand-dark);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nosotros-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
}

.nosotros-text p:first-child {
  font-size: 17px;
  color: var(--text-dark);
}

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

.nosotros-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FEATURES ===== */
.features {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(196, 114, 90, 0.06);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 114, 90, 0.15);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ===== CARTA ===== */
.carta {
  background: var(--white);
}

.carta-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.carta-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  background: transparent;
  border: 1.5px solid var(--sand-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.carta-tab:hover {
  border-color: var(--terracotta-light);
  color: var(--terracotta);
}

.carta-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.carta-content {
  max-width: 700px;
  margin: 0 auto;
}

.carta-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.carta-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.carta-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--sand-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.carta-item:hover {
  border-color: rgba(196, 114, 90, 0.15);
  background: var(--sand);
}

.carta-item-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.carta-item-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

/* ===== GALERÍA ===== */
.galeria {
  background: var(--cream);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.galeria-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item--large {
  grid-column: span 7;
  grid-row: span 1;
  min-height: 340px;
}

.galeria-item--tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 680px;
}

.galeria-item:not(.galeria-item--large):not(.galeria-item--tall) {
  min-height: 300px;
}

/* ===== HORARIO ===== */
.horario {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.horario-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.horario-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.horario-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

.horario-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--sand);
  transition: background var(--transition);
}

.horario-row:last-child {
  border-bottom: none;
}

.horario-row:hover {
  background: var(--sand-light);
}

.horario-row:last-child:hover {
  background: var(--sand-light);
}

.horario-dia {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

.horario-horas {
  font-size: 13px;
  color: var(--text-mid);
}

.horario-row.cerrado .horario-horas {
  color: var(--terracotta);
  font-weight: 500;
}

.horario-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 500px;
}

.horario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacto-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.contacto-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contacto-item p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.contacto-item a {
  color: var(--terracotta);
}

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

.contacto-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ===== FORM ===== */
.contacto-form-wrapper {
  background: var(--sand-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--sand-dark);
}

.contacto-form h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 114, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(196, 114, 90, 0.08);
  border: 1px solid rgba(196, 114, 90, 0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--terracotta-dark);
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 253, 249, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 253, 249, 0.6);
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--terracotta-light);
}

.footer-contact a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 253, 249, 0.4);
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 43, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .side-nav {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 100px 40px 60px;
  }

  .hero-image {
    height: 50vh;
    min-height: 360px;
  }

  .nosotros-grid,
  .horario-wrapper,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .galeria-item--large {
    grid-column: span 12;
    min-height: 280px;
  }

  .galeria-item--tall {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 280px;
  }

  .galeria-item:not(.galeria-item--large):not(.galeria-item--tall) {
    grid-column: span 3;
    min-height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 90px 24px 48px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

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

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
  }

  .galeria-item--large,
  .galeria-item--tall {
    grid-column: span 2;
    min-height: 220px;
  }

  .galeria-item:not(.galeria-item--large):not(.galeria-item--tall) {
    grid-column: span 1;
    min-height: 180px;
  }

  .contacto-form-wrapper {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .horario-image {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .carta-categories {
    gap: 6px;
  }

  .carta-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .galeria-item--large,
  .galeria-item--tall,
  .galeria-item:not(.galeria-item--large):not(.galeria-item--tall) {
    grid-column: span 1;
    min-height: 200px;
  }
}
