/* ===========================
   ARCOCINA — Estilos principales
   =========================== */

/* Variables */
:root {
  --cream: #FAF8F4;
  --dark: #1A1714;
  --warm: #8B6F47;
  --warm-light: #C4A882;
  --sand: #E8E0D5;
  --text-muted: #6B6358;
  --white: #FFFFFF;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   BOTONES
   =========================== */

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--warm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  padding-bottom: 2px;
}

.btn-ghost:hover {
  border-color: var(--dark);
}

/* ===========================
   NAVEGACIÓN
   =========================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 111, 71, 0.12);
  transition: padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  padding: 14px 48px;
  box-shadow: 0 2px 20px rgba(26, 23, 20, 0.08);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--warm);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--cream);
  padding: 11px 24px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.nav-cta:hover {
  background: var(--warm);
}

.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: 1.5px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 2px;
}

/* ===========================
   HERO
   =========================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s both;
}

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

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s both;
}

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

.hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 48px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.55s both;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-right:hover .hero-img {
  transform: scale(1.04);
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: var(--cream);
  padding: 20px 24px;
  border-left: 3px solid var(--warm);
}

.hero-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}

.hero-badge-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===========================
   STRIP ANIMADO
   =========================== */

.strip {
  background: var(--dark);
  color: var(--cream);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.strip-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
}

.strip-item {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}

.strip-sep {
  opacity: 0.2;
  font-size: 18px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   SECCIONES GENÉRICAS
   =========================== */

.section {
  padding: 100px 48px;
}

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

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
}

.section-eyebrow.light {
  color: var(--warm-light);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
}

.section-title.light {
  color: var(--cream);
}

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

/* ===========================
   SERVICIOS
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--sand);
}

.service-card {
  background: var(--cream);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  background: var(--white);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--sand);
  margin-bottom: 24px;
  line-height: 1;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm);
}

/* ===========================
   POR QUÉ ELEGIRNOS
   =========================== */

.why {
  background: var(--dark);
  color: var(--cream);
  padding: 100px 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.why-left p {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.6;
  font-weight: 300;
  margin-top: 24px;
  max-width: 380px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

.why-point {
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  padding-top: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.why-icon {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-light);
  opacity: 0.8;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 40px;
}

.why-point-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

.why-point-desc {
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.5;
  font-weight: 300;
}

/* ===========================
   GALERÍA
   =========================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 4px;
}

.gal-item {
  overflow: hidden;
  background: var(--sand);
  position: relative;
}

.gal-item.large {
  grid-row: 1 / 3;
}

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

.gal-item:hover img {
  transform: scale(1.06);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-label {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===========================
   CONTACTO
   =========================== */

.contact {
  background: var(--sand);
  padding: 100px 48px;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-item a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--warm);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cream);
}

.contact-item-icon svg {
  width: 16px;
  height: 16px;
}

.contact-item-icon.whatsapp-icon {
  background: #25D366;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(139, 111, 71, 0.2);
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--warm);
}

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

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

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

.form-feedback {
  font-size: 13px;
  color: var(--warm);
  min-height: 20px;
}

.form-feedback.error {
  color: #c0392b;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: var(--dark);
  color: var(--cream);
  padding: 60px 48px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 12px;
  opacity: 0.35;
  margin-top: 8px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 12px;
  opacity: 0.25;
  width: 100%;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
  margin-top: 20px;
}

/* ===========================
   ANIMACIONES
   =========================== */

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

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 55vw; }
  .hero-left { padding: 120px 40px 60px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-left p { max-width: 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  #navbar { padding: 18px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero-left { padding: 100px 24px 48px; }
  .hero-right { height: 70vw; }

  .section { padding: 70px 24px; }
  .why { padding: 70px 24px; }
  .contact { padding: 70px 24px; }
  footer { padding: 48px 24px 24px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .gal-item.large { grid-row: auto; grid-column: 1 / 3; }

  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gal-item.large { grid-column: auto; }
  .gal-item { height: 260px; }
}
