/* ═══════════════════════════════════════════
   LA TORTUGA — Premium Dark Luxury
   Plum + Amber Color Palette
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0e0a10;
  --bg-secondary: #16101c;
  --bg-card: #1c1525;
  --bg-card-hover: #231a2e;
  --plum-deep: #2d1f3d;
  --plum-mid: #4a2d5e;
  --plum-light: #7b4a8a;
  --amber-gold: #c9a84c;
  --amber-light: #e8cc6e;
  --amber-dim: #9a7d3a;
  --amber-glow: rgba(201, 168, 76, 0.15);
  --plum-glow: rgba(123, 74, 138, 0.2);
  --text-primary: #f5f0eb;
  --text-secondary: #b8a9c2;
  --text-muted: #7a6b82;
  --border-subtle: rgba(201, 168, 76, 0.12);
  --border-plum: rgba(123, 74, 138, 0.3);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --nav-width: 240px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--plum-mid) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amber-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--amber-light);
}

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

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

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-gold);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.5rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--amber-dim);
}

.section-eyebrow::before { left: -8px; }
.section-eyebrow::after { right: -8px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Gold Text ── */
.gold-text {
  color: var(--amber-gold);
  font-style: italic;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-dim));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-light), var(--amber-gold));
  color: var(--bg-primary);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--amber-gold);
  border: 1px solid var(--amber-gold);
}

.btn-outline:hover {
  background: var(--amber-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   SIDE NAVIGATION
   ═══════════════════════════════════════════ */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.nav-logo-icon {
  font-size: 1.8rem;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amber-gold);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--amber-gold);
  border-radius: 2px;
  transition: height var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-gold);
  background: var(--amber-glow);
}

.nav-link:hover::before,
.nav-link.active::before {
  height: 60%;
}

.nav-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-mini-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ── Main Content ── */
.main-content {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

/* ── Section Base ── */
.section {
  padding: 6rem 0;
  position: relative;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://picsum.photos/seed/tortuga-hero/1920/1080') center/cover no-repeat;
  filter: brightness(0.3) saturate(0.8);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(14, 10, 16, 0.85) 0%,
      rgba(45, 31, 61, 0.6) 50%,
      rgba(14, 10, 16, 0.9) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════ */
.nosotros {
  background: var(--bg-secondary);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.nosotros-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 300;
  font-size: 1.02rem;
}

.nosotros-text p:last-child {
  margin-bottom: 0;
}

.nosotros-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.nosotros-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.nosotros-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.nosotros-image:hover img {
  transform: scale(1.03);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CARTA
   ═══════════════════════════════════════════ */
.carta {
  background: var(--bg-primary);
}

.carta-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.carta-tab {
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--border-plum);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carta-tab:hover {
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

.carta-tab.active {
  background: var(--amber-gold);
  border-color: var(--amber-gold);
  color: var(--bg-primary);
}

.carta-panel {
  display: none;
  animation: fadePanel 0.4s ease;
}

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

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

.carta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.carta-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.carta-item:hover {
  transform: translateY(-4px);
  border-color: var(--amber-dim);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--amber-dim);
}

.carta-item-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.carta-item:hover .carta-item-img img {
  transform: scale(1.08);
}

.carta-item-info {
  padding: 1.25rem 1.5rem;
}

.carta-item-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.carta-item-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   AMBIENTE
   ═══════════════════════════════════════════ */
.ambiente {
  background: var(--bg-secondary);
}

.ambiente-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 10, 16, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: 16px;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item--large {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item--tall {
  grid-column: span 5;
  grid-row: span 2;
}

/* ═══════════════════════════════════════════
   VISÍTANOS
   ═══════════════════════════════════════════ */
.visitanos {
  background: var(--bg-primary);
}

.visitanos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.info-card:hover {
  border-color: var(--amber-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-glow);
  color: var(--amber-gold);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.info-card a {
  color: var(--amber-gold);
}

/* ── Contact Form ── */
.contact-section {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-plum);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber-gold);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 1rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  color: #81c784;
  font-size: 0.9rem;
}

.form-success.show {
  display: flex;
}

/* ── Map ── */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-size: 2rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-gold);
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   MOBILE MENU TOGGLE
   ═══════════════════════════════════════════ */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

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

.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);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 10, 16, 0.7);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ambiente-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--large,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item {
    height: 260px;
  }
}

@media (max-width: 900px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .nosotros-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-width: 280px;
  }

  .side-nav {
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
  }

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

  .menu-toggle {
    display: flex;
  }

  .nav-overlay.show {
    display: block;
  }

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

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .stats-row {
    gap: 2rem;
  }

  .carta-tabs {
    gap: 0.4rem;
  }

  .carta-tab {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .ambiente-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

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

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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