:root {
  --ink: #12100f;
  --gold: #8f6731;
  --gold-soft: #b08a56;
  --sand: #f2ebe4;
  --paper: #f8f4ef;
  --line: #d6c8b5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #efe4d7 0%, #f8f2ea 42%, #ede0d1 100%);
  background-attachment: fixed;
}

.page-shell {
  width: 100%;
}

/* ========== HEADER ========== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 244, 239, 0.95);
  border-bottom: 1px solid rgba(214, 200, 181, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3.2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.5s ease;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.logo-mark,
.logo-stroke {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.logo-mark {
  color: var(--gold);
  z-index: 1;
}

.logo-stroke {
  color: var(--ink);
  margin-left: -0.35rem;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
}

.nav-menu a {
  text-decoration: none;
  color: #212121;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  position: relative;
  transition: color 220ms ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 220ms ease;
}

.nav-menu a:hover {
  color: var(--gold);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 220ms ease;
}

.nav-icons span:hover {
  transform: scale(1.15);
}

.menu-toggle {
  display: none;
}

/* ========== HERO ========== */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background:
    linear-gradient(
      100deg,
      rgba(248, 244, 239, 0.88),
      rgba(244, 231, 216, 0.85)
    ),
    radial-gradient(circle at 72% 25%, rgba(160, 118, 66, 0.2), transparent 42%);
  position: relative;
  overflow: hidden;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% -20%, rgba(0, 0, 0, 0.08), transparent 45%),
    radial-gradient(
      ellipse at 86% 42%,
      rgba(143, 103, 49, 0.18),
      transparent 42%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 4.8rem) clamp(1.5rem, 6vw, 7rem);
  animation: fadeInLeft 0.8s ease;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #58514a;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6.2vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-weight: 600;
  max-width: 8ch;
  text-wrap: balance;
}

h1 span {
  color: var(--gold);
}

.divider {
  width: 180px;
  height: 14px;
  margin: 1.4rem 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
}

.divider::after {
  content: "✦";
  position: absolute;
  left: 32%;
  top: -6px;
  color: var(--gold);
  font-size: 1rem;
  animation: spin 3s linear infinite;
}

.subtitle {
  margin: 0 0 2rem;
  max-width: 26ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #3c342e;
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: #0f0f0f;
  color: #fff;
  padding: 1rem 2.2rem;
  letter-spacing: 0.11em;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid #0f0f0f;
  box-shadow: 0 14px 28px rgba(15, 15, 15, 0.16);
  transition: all 260ms ease;
  cursor: pointer;
}

.cta:hover {
  background: transparent;
  color: #0f0f0f;
  transform: translateY(-3px);
  box-shadow: 0 20px 35px rgba(15, 15, 15, 0.22);
}

.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 2.4rem;
  animation: fadeInRight 0.8s ease;
}

.floating-device {
  position: relative;
  height: clamp(400px, 70vw, 700px);
  width: clamp(400px, 70vw, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-emoji {
  position: absolute;
  width: clamp(400px, 70vw, 700px);
  height: clamp(400px, 70vw, 700px);
  animation: elegantDeviceCycle 6s ease-in-out infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.emoji-1 {
  animation-delay: 0s;
}

.emoji-2 {
  animation-delay: 2.33s;
}

.emoji-3 {
  animation-delay: 4.66s;
}

.emoji-4 {
  animation-delay: 6.99s;
}

.emoji-5 {
  animation-delay: 9.32s;
}

.emoji-6 {
  animation-delay: 11.65s;
}

/* ========== PRODUCTOS ========== */
.productos {
  padding: 5rem 3.2rem;
  background: var(--white);
  position: relative;
}

.productos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 20%,
    var(--line) 80%,
    transparent
  );
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease;
}

.section-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--ink);
  font-weight: 600;
}

.section-header p {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
  color: #58514a;
  letter-spacing: 0.05em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--paper);
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  transition: all 320ms ease;
  animation: fadeInUp 0.6s ease;
  cursor: pointer;
}

.product-card:nth-child(2n) {
  animation-delay: 0.1s;
}

.product-card:nth-child(3n) {
  animation-delay: 0.2s;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(143, 103, 49, 0.15);
  transform: translateY(-8px);
}

.product-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

.product-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.product-card p {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #58514a;
}

.price {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

/* ========== ABOUT ========== */
.nosotros {
  padding: 5rem 3.2rem;
  background: linear-gradient(
    135deg,
    rgba(248, 244, 239, 0.6),
    rgba(242, 235, 228, 0.8)
  );
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  animation: fadeInLeft 0.8s ease;
}

.founder-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--gold);
}

.about-text {
  animation: fadeInRight 0.8s ease;
}

.about-text h2 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  font-weight: 600;
}

.founder-name {
  margin: 0;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.founder-title {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #58514a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3c342e;
}

.about-description p {
  margin: 0 0 1.2rem;
}

.about-description strong {
  color: var(--gold);
}

/* ========== CONTACTO ========== */
.contacto {
  padding: 5rem 3.2rem;
  background: var(--white);
  position: relative;
}

.contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 20%,
    var(--line) 80%,
    transparent
  );
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: all 320ms ease;
  animation: fadeInUp 0.6s ease;
}

.contact-card:nth-child(2) {
  animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.2s;
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(143, 103, 49, 0.1);
  transform: translateY(-6px);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

.contact-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-card p {
  margin: 0.5rem 0;
  color: #3c342e;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 220ms ease;
}

.contact-card a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.small {
  font-size: 0.85rem;
  color: #58514a;
  margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
  background: #0f0f0f;
  color: #fff;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ========== ANIMACIONES ========== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes elegantDeviceCycle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-20px);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-15px);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1020px) {
  .top-nav {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-text {
    padding: 2rem 1.5rem;
  }

  .hero-art {
    padding: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-photo {
    max-width: 300px;
  }

  .productos,
  .nosotros,
  .contacto {
    padding: 3rem 1.5rem;
  }

  .product-grid {
    gap: 1.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    text-align: center;
    place-items: center;
    padding: 2rem 0;
  }

  .logo-mark,
  .logo-stroke {
    font-size: 1.8rem;
  }

  h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
  }

  .hero-text {
    padding: 1.5rem;
  }

  .hero-art {
    padding: 1rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .cta {
    padding: 0.9rem 2rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .floating-device {
    height: clamp(300px, 50vw, 450px);
    width: clamp(300px, 50vw, 450px);
  }

  .device-emoji {
    width: clamp(300px, 50vw, 450px);
    height: clamp(300px, 50vw, 450px);
  }

  .contact-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .contact-card {
    padding: 1.5rem;
  }

  .about-text h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .founder-photo {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    text-align: center;
    place-items: center;
    padding: 2rem 0;
  }

  .top-nav {
    padding: 0.8rem 1rem;
  }

  .logo-mark,
  .logo-stroke {
    font-size: 1.5rem;
  }

  .nav-icons {
    gap: 0.8rem;
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    line-height: 1;
  }

  .hero-text {
    padding: 1.2rem;
  }

  .hero-art {
    padding: 1rem;
  }

  .floating-device {
    height: clamp(280px, 45vw, 400px);
    width: clamp(280px, 45vw, 400px);
  }

  .device-emoji {
    width: clamp(280px, 45vw, 400px);
    height: clamp(280px, 45vw, 400px);
  }

  .productos,
  .nosotros,
  .contacto {
    padding: 2rem 1rem;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .product-card,
  .contact-card {
    padding: 1.2rem;
  }

  .product-icon {
    font-size: 3rem;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .product-card h3,
  .contact-card h3 {
    font-size: 1rem;
  }

  .footer {
    font-size: 0.75rem;
    padding: 1.5rem;
  }
}
