/* ═══════════════════════════════════════════
   AFLOTE — El estilo del Mar
   Classic & Elegant · Burgundy + Blush
   ═══════════════════════════════════════════ */

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

:root {
  --burgundy:    #7B2D3B;
  --burgundy-deep: #5C1F2B;
  --blush:       #F5E6E0;
  --blush-light: #FBF5F2;
  --cream:       #FDF8F5;
  --sand:        #E8D5CC;
  --charcoal:    #1E1A1A;
  --text:        #2A2222;
  --text-muted:  #6B5E5E;
  --white:       #FFFFFF;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--burgundy); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--burgundy-deep); }

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

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--charcoal); }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 24px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

.accent { color: var(--burgundy); font-style: italic; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(123, 45, 59, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s;
}
.logo:hover { color: var(--burgundy); }

.logo-mark { color: var(--burgundy); }

.logo--light { color: var(--white); }
.logo--light:hover { color: var(--blush); }
.logo--light .logo-mark { color: var(--blush); }

/* ── Nav ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-list a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  position: relative;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--burgundy);
  transition: width 0.3s var(--ease);
}
.nav-list a:hover { color: var(--burgundy); }
.nav-list a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--burgundy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.3s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--burgundy-deep); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(123, 45, 59, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--charcoal);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 36px;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero-meta .divider { color: var(--sand); }

.hero-image { position: relative; }

.hero-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 40%;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float 2.4s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.5; }

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

/* ── Intro ── */
.intro {
  padding: 120px 0;
  background: var(--white);
}

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

.intro-text .section-title { margin-bottom: 28px; }

.intro-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.intro-image {
  border-radius: 4px;
  overflow: hidden;
}
.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Collection ── */
.collection {
  padding: 120px 0;
  background: var(--cream);
}

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

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(123, 45, 59, 0.1);
}

.card-img {
  overflow: hidden;
  aspect-ratio: 4/5;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 28px 24px;
}
.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  background: var(--burgundy);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 32px;
  align-items: center;
  animation: scroll 24s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--blush);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.marquee .sep {
  font-size: 0.6rem;
  color: rgba(245, 230, 224, 0.4);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Store ── */
.store {
  padding: 120px 0;
  background: var(--white);
}

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

.store-info .section-title { margin-bottom: 20px; }

.store-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
}

.store-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  list-style: none;
}

.store-detail dt {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.store-detail dd {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.store-detail a { color: var(--text); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.store-detail a:hover { color: var(--burgundy); text-decoration-color: var(--burgundy); }

.store-map {
  border-radius: 4px;
  overflow: hidden;
}
.store-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Contact ── */
.contact {
  padding: 120px 0;
  background: var(--burgundy);
  color: var(--white);
}

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

.contact-text .section-eyebrow { color: var(--blush); }
.contact-text .section-title { color: var(--white); margin-bottom: 20px; }
.contact-text p { font-size: 1rem; color: rgba(245, 230, 224, 0.7); line-height: 1.85; }

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 40px;
  backdrop-filter: blur(8px);
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 230, 224, 0.35); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blush);
  background: rgba(255, 255, 255, 0.1);
}

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

.form-note {
  font-size: 0.8rem;
  color: rgba(245, 230, 224, 0.5);
  margin-top: 16px;
  text-align: center;
}
.form-note a { color: var(--blush); text-decoration: underline; text-decoration-color: rgba(245, 230, 224, 0.3); }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(245, 230, 224, 0.1);
  border: 1px solid rgba(245, 230, 224, 0.2);
  border-radius: 2px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--blush);
}
.form-success svg { color: var(--blush); flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: var(--blush);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 230, 224, 0.1);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.5);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 20px;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--blush); }

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.5);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.5);
  line-height: 1.7;
}
.footer-contact a { color: rgba(245, 230, 224, 0.5); text-decoration: underline; text-decoration-color: rgba(245, 230, 224, 0.2); }
.footer-contact a:hover { color: var(--blush); text-decoration-color: var(--blush); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 230, 224, 0.3);
  letter-spacing: 0.04em;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mobile ── */
@media (max-width: 960px) {
  .hero-grid,
  .intro-inner,
  .store-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-image { order: -1; }
  .hero-img-wrap { aspect-ratio: 4/3; }
  .hero-img-accent { display: none; }

  .collection-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

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

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { font-size: 1.1rem; color: var(--text); }
  .nav-cta { font-size: 1rem; padding: 12px 24px; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

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

  .contact-form { padding: 28px 20px; }

  .intro, .collection, .store, .contact { padding: 80px 0; }
}
