:root {
  --cream: #f7f2ea;
  --cream-2: #eee5d7;
  --brown: #3c2c27;
  --brown-2: #6a5147;
  --pink: #d96b7b;
  --orange: #d9823b;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(60, 44, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--brown); background: var(--white); font-family: "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(60,44,39,.08); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; align-items: center; padding-left: 13px; border-left: 1px solid rgba(60,44,39,.22); line-height: 1; }
.brand-name strong { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 600; letter-spacing: .07em; white-space: nowrap; }
.brand-name small { margin-top: 7px; font-size: 10px; letter-spacing: .42em; padding-left: .42em; opacity: .7; }
nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; }
nav a { opacity: .78; transition: opacity .2s, color .2s; }
nav a:hover { opacity: 1; color: var(--pink); }
.nav-cta { padding: 11px 18px; border: 1px solid var(--brown); border-radius: 999px; font-size: 14px; font-weight: 700; }

.hero { min-height: 680px; display: grid; place-items: center; position: relative; overflow: hidden; background: url("hero-fondo-limpio.jpg") center center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,25,21,.78) 0%, rgba(38,25,21,.52) 38%, rgba(38,25,21,.14) 68%, rgba(38,25,21,.03) 100%); }
.hero-content { position: relative; z-index: 1; color: white; padding: 90px 0; }
.eyebrow { margin: 0 0 14px; letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(48px, 7vw, 84px); line-height: .98; max-width: 780px; margin: 0 0 24px; }
.hero h1 span { color: #ffe2a5; }
.hero-text { max-width: 590px; font-size: 18px; line-height: 1.7; margin: 0 0 34px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 999px; background: var(--brown); color: white; font-weight: 700; transition: transform .2s, opacity .2s; }
.button:hover { transform: translateY(-2px); opacity: .92; }

.section { padding: 100px 0; }
.intro { background: var(--cream); }
h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin: 0 0 22px; }
.intro p:not(.eyebrow), .contact p:not(.eyebrow) { font-size: 18px; line-height: 1.8; color: var(--brown-2); }
.story { max-width: 1320px; }
.story-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: stretch; }
.story-left { min-width: 0; }
.story-heading { max-width: 760px; margin: 0 0 34px; text-align: left; }
.story-heading h2 { font-size: clamp(42px, 4.2vw, 64px); color: var(--brown); }
.story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.story-copy p { margin: 0 0 24px; font-size: 16px !important; line-height: 1.72 !important; }
.story-second { display: flex; flex-direction: column; }
.story-script { margin-top: auto !important; padding-top: 22px; text-align: center; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 27px !important; color: #a97955 !important; }
.story-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; text-align: center; color: #765847; }
.story-values span { font-size: 30px; border-right: 1px solid rgba(90,62,48,.18); padding: 0 8px; }
.story-values span:last-child { border-right: 0; }
.story-values small { display: block; margin-top: 7px; font-size: 9px; line-height: 1.5; letter-spacing: .16em; }
.story-visual { margin: 0; min-height: 650px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.story-visual img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; object-position: 100% center; display: block; }

.products { background: #fffdf9; }
.section-lead { max-width: 650px; margin: -8px auto 0; color: var(--brown-2); line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { overflow: hidden; background: var(--cream); border-radius: 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(60,44,39,.15); }
.product-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-info { padding: 24px 24px 26px; }
.product-info h3 { font-family: "Playfair Display", Georgia, serif; font-size: 25px; margin: 0 0 8px; }
.product-info p { margin: 0 0 20px; color: var(--brown-2); line-height: 1.6; }
.product-info a { display: inline-block; font-size: 14px; font-weight: 700; border-bottom: 1px solid rgba(60,44,39,.35); padding-bottom: 3px; }
.product-info a:hover { color: var(--pink); border-color: var(--pink); }

.qualities { background: var(--white); }
.section-heading { text-align: center; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 38px 30px; background: var(--cream); border-radius: 24px; box-shadow: var(--shadow); }
.icon { font-size: 38px; margin-bottom: 24px; }
.card h3 { font-family: "Playfair Display", Georgia, serif; font-size: 27px; margin: 0 0 12px; }
.card p { color: var(--brown-2); line-height: 1.7; margin: 0; }

.quote { background: var(--brown); color: white; }
.quote-box { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 54px; border: 1px solid rgba(255,255,255,.16); border-radius: 30px; background: linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); }
.quote h2 { max-width: 650px; }
.quote p:not(.eyebrow) { max-width: 650px; color: #eaded7; line-height: 1.7; }
.button-light { background: white; color: var(--brown); white-space: nowrap; }

.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.contact-card { background: var(--white); padding: 34px; border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.contact-card span { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--brown-2); }
.contact-card > a:not(.button) { font-family: "Playfair Display", Georgia, serif; font-size: 34px; margin-bottom: 16px; }

.footer { background: #241b18; color: #d8ccc5; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer img { width: 58px; height: 58px; object-fit: contain; }
.footer p { margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  .nav { min-height: 70px; }
  .brand { gap: 8px; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { padding-left: 8px; }
  .brand-name strong { font-size: 15px; }
  .brand-name small { font-size: 7px; margin-top: 5px; }
  .brand img { width: 60px; height: 60px; }
  nav { display: none; }
  .nav-cta { padding: 9px 14px; }
  .hero { min-height: 610px; }
  .hero-content { padding: 70px 0; }
  .hero h1 { font-size: 49px; }
  .hero-text { font-size: 16px; }
  .section { padding: 70px 0; }
  .cards, .contact-grid, .product-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 22px; }
  .story-layout { grid-template-columns: 1fr; gap: 28px; }
  .story-copy { grid-template-columns: 1fr; gap: 0; }
  .story-visual, .story-visual img { min-height: 440px; }
  .story-heading h2 { font-size: 42px; }
  .story-values { margin-bottom: 8px; }
  .quote-box { flex-direction: column; align-items: flex-start; padding: 35px 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Product cards: entire card opens the product-specific WhatsApp consultation */
.product-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.product-whatsapp { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--brown-2); }
.product-link:hover .product-whatsapp { text-decoration: underline; }
.instagram-link { margin-top: 8px; font-family: "DM Sans", sans-serif !important; font-size: 15px !important; font-weight: 700; color: var(--brown-2); text-decoration: none; }
.instagram-link:hover { text-decoration: underline; }


/* Contact redesign: icon-only social links */
.contact-card { gap: 18px; }
.contact-socials { display:flex; align-items:center; justify-content:center; gap:34px; padding: 8px 0 2px; }
.social-icon { width:112px; height:112px; border-radius:50%; display:grid; place-items:center; transition:transform .2s ease, box-shadow .2s ease; box-shadow:0 10px 22px rgba(60,44,39,.13); }
.social-icon:hover { transform:translateY(-3px) scale(1.03); }
.social-icon svg { width:62px; height:62px; fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.social-icon svg .dot { fill:#fff; stroke:none; }
.whatsapp-icon { background:linear-gradient(145deg,#69dc73,#45c657); }
.whatsapp-icon svg path:first-child { fill:none; }
.instagram-icon { background:radial-gradient(circle at 30% 105%,#ffd36a 0 22%,#f55c52 42%,#d62976 62%,#7b45c5 82%,#5148c8 100%); }
.contact-message { justify-content:center; width:100%; margin-top:4px; }
@media (max-width:760px){ .contact-socials{gap:24px}.social-icon{width:92px;height:92px}.social-icon svg{width:50px;height:50px} }
/* Updated Infinite Wool logo */
.brand img { width: 104px; height: 54px; object-fit: contain; }
.footer img { width: 210px; height: 105px; object-fit: contain; }
/* Clean official-style WhatsApp mark */
.whatsapp-icon { background:#25D366; }
.whatsapp-icon svg { fill:none; stroke:#fff; stroke-width:1.9; }

/* Footer logo contrast on dark background */
.footer img { filter: brightness(0) invert(1); opacity: 1; }
/* WhatsApp icon: clean white outline */
.whatsapp-icon svg { fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Mobile polish */
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .header .nav { gap: 10px; }
  .brand img { width: 82px; height: 44px; }
  .brand-name { display: none; }
  .nav-cta { font-size: 12px; padding: 9px 12px; white-space: nowrap; }
  .hero { min-height: 570px; background-position: 58% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(38,25,21,.82) 0%, rgba(38,25,21,.58) 55%, rgba(38,25,21,.22) 100%); }
  .hero-content { padding: 58px 0; }
  .hero h1 { font-size: clamp(42px, 13vw, 54px); line-height: 1; }
  .hero-text { line-height: 1.55; margin-bottom: 26px; }
  .button { padding: 14px 18px; }
  .section { padding: 60px 0; }
  h2 { font-size: clamp(34px, 10vw, 44px); }
  .story-heading h2 { font-size: clamp(36px, 10vw, 44px); }
  .story-copy p { font-size: 15px !important; }
  .story-visual, .story-visual img { min-height: 360px; }
  .story-values { grid-template-columns: repeat(3, 1fr); }
  .story-values span { font-size: 25px; padding: 0 4px; }
  .product-info { padding: 20px; }
  .quote-box { gap: 26px; }
  .button-light { width: 100%; justify-content: center; }
  .contact-grid { gap: 30px; }
  .contact-card { padding: 26px 20px; }
  .contact-socials { gap: 20px; }
  .social-icon { width: 82px; height: 82px; }
  .social-icon svg { width: 45px; height: 45px; }
  .footer { padding: 24px 0; }
  .footer img { width: 170px; height: 80px; }
  .footer p { line-height: 1.55; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .nav-cta { font-size: 11px; padding: 8px 10px; }
  .social-icon { width: 76px; height: 76px; }
}

/* Mobile fix: the source story photo contains legacy text on its left edge.
   Crop that edge out on phones so only the clean wool photograph is visible. */
@media (max-width: 760px) {
  .story-visual { overflow: hidden; }
  .story-visual img {
    width: 135%;
    max-width: none;
    margin-left: -35%;
    object-fit: cover;
    object-position: right center;
  }
}
