/* ═══════════════════════════════════════════════════
   MaisonNaranja — style.css
   Paleta: Blanco puro + Naranja intenso
   Tipografía: Cormorant Garamond + DM Sans
═══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
  --orange:        #FF6B00;
  --orange-light:  #FF8C33;
  --orange-pale:   #FFF3E8;
  --orange-dark:   #CC5500;
  --white:         #FFFFFF;
  --off-white:     #FAFAF8;
  --charcoal:      #1A1A1A;
  --gray:          #666666;
  --gray-light:    #E8E8E8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:    80px;
  --nav-h-sm: 56px;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  cursor: none;
}

/* Cursor personalizado (simple dot) */
body::after {
  content: '';
  position: fixed;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-smooth);
  top: var(--cy, -20px);
  left: var(--cx, -20px);
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Canvas naranjas ────────────────────────────── */
#orange-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* ═══════════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-orange {
  font-size: 64px;
  animation: spin-orange 1.2s linear infinite;
  transform-origin: center;
}

@keyframes spin-orange {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--orange);
  animation: pulse-text 1.2s ease-in-out infinite alternate;
}

@keyframes pulse-text {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease-smooth),
              box-shadow 0.4s var(--ease-smooth),
              padding 0.4s var(--ease-smooth);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.4s var(--ease-smooth);
}

#navbar.scrolled .nav-container {
  height: var(--nav-h-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.3s;
}

#navbar.scrolled .nav-logo { color: var(--charcoal); }

.logo-naranja { color: var(--orange); }
#navbar.scrolled .logo-naranja { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

#navbar.scrolled .nav-links a { color: var(--charcoal); }

.nav-links a:hover { color: var(--orange); }
#navbar.scrolled .nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s var(--ease-bounce) !important;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

#navbar.scrolled .nav-hamburger span { background: var(--charcoal); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 20px 32px;
  gap: 16px;
  border-top: 1px solid var(--gray-light);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--orange); padding-left: 8px; }
.nav-mobile .nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 12px 22px;
  border-radius: 100px;
  text-align: center;
  border: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 12s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(204,85,0,0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 20px;
  border: 1px solid rgba(255,107,0,0.5);
  padding: 6px 18px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  background: rgba(255,107,0,0.1);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.88);
}

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

/* ── Botones ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 15px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.25s var(--ease-bounce), box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,107,0,0.4);
}

.btn-primary.large { padding: 18px 44px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease-bounce);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

/* ── Scroll hint ─────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════════
   SECCIÓN GENÉRICA — Reveal animation
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-smooth);
}

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

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-tag.light { color: rgba(255,255,255,0.75); }

.section-header h2,
.historia-text-col h2,
.reservas-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════ */
.servicios {
  padding: 110px 0;
  background: var(--off-white);
}

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

.servicio-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(255,107,0,0.15);
}

.servicio-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.servicio-img-wrap img {
  transition: transform 0.5s var(--ease-smooth);
}

.servicio-card:hover .servicio-img-wrap img {
  transform: scale(1.1);
}

.servicio-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,107,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.servicio-card:hover .servicio-img-overlay { opacity: 1; }

.servicio-info {
  padding: 24px;
}

.servicio-hora {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.servicio-info h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.servicio-info p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════
   RESERVAS CTA
═══════════════════════════════════════════════════ */
.reservas-cta {
  padding: 100px 32px;
  background: var(--orange);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reservas-cta::before {
  content: '🍊';
  position: absolute;
  font-size: 300px;
  opacity: 0.06;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.reservas-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.reservas-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.reservas-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.reservas-cta .btn-primary {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.reservas-cta .btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-3px) scale(1.03);
}

/* ═══════════════════════════════════════════════════
   HISTORIA
═══════════════════════════════════════════════════ */
.historia {
  padding: 110px 0;
  background: var(--white);
}

.historia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.historia-img-col {
  position: relative;
}

.historia-img-wrap {
  position: relative;
  height: 560px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.historia-img-deco {
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: -24px;
  right: -24px;
  border: 3px solid var(--orange-light);
  border-radius: 16px;
  z-index: 0;
  opacity: 0.35;
}

.historia-text-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.historia-text-col .section-tag { margin-bottom: 10px; }

.historia-text-col h2 { margin-bottom: 28px; }

.historia-text-col p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.historia-text-col p em {
  font-style: italic;
  color: var(--orange);
}

.historia-firma {
  margin-top: 24px;
  border-top: 1px solid var(--gray-light);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.historia-firma span {
  font-size: 0.85rem;
  color: var(--gray);
}

.historia-firma strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
}

/* ═══════════════════════════════════════════════════
   UBICACIÓN
═══════════════════════════════════════════════════ */
.ubicacion {
  padding: 110px 0;
  background: var(--off-white);
}

.ubicacion-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.mapa-container {
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.info-block strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.info-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.info-block a {
  color: var(--charcoal);
  transition: color 0.2s;
}

.info-block a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-logo strong { color: var(--orange); font-weight: 400; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-bounce);
}

.footer-social a:hover {
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.7);
  transition: stroke 0.2s;
}

.footer-social a:hover svg { stroke: var(--white); }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { color: rgba(255,255,255,0.4); }

.footer-bottom a {
  color: var(--orange);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--orange-light); }

.heart {
  color: #e74c3c;
  display: inline-block;
  animation: heartbeat 1.4s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.25); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.18); }
  70%       { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════
   UTILIDADES
═══════════════════════════════════════════════════ */
.hide-mobile { display: inline; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .historia-inner { gap: 48px; }
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .historia-inner { grid-template-columns: 1fr; }
  .historia-img-col { order: -1; }
  .historia-img-wrap { height: 340px; }
  .historia-img-deco { display: none; }

  .ubicacion-wrap { grid-template-columns: 1fr; }
  .mapa-container { height: 320px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none; }
}

@media (max-width: 560px) {
  .section-inner  { padding: 0 20px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Show mobile nav ─────────────────────────── */
.nav-mobile.open { display: flex; }
