/* =========================================================
   JOINTY - Alquiler de Vestidos
   Design system
   ========================================================= */

:root {
  --color-brand: #D44E5C;
  --color-brand-dark: #B73D4A;
  --color-text: #1F2C3D;
  --color-text-soft: #4A5568;
  --color-bg: #FFFFFF;
  --color-bg-soft: #FFF5F6;
  --color-border: #E8E8E8;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --radius: 8px;
  --radius-lg: 16px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

html { scroll-behavior: smooth; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-7) 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-3);
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
}

.lead a, .feature p a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.lead a:hover, .feature p a:hover {
  border-bottom-color: var(--color-brand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
}

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

.brand img {
  height: 28px;
}

.nav {
  display: flex;
  gap: var(--space-4);
}

.nav a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: var(--space-7) 0;
  overflow: hidden;
}

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

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0) 55%);
}

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

.hero__content {
  max-width: 600px;
  margin-left: -3%;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: 1.1rem;
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: 1.15rem;
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.hero__cta-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

/* Store badges */
.store-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.store-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.store-badges a {
  display: inline-block;
  height: 48px;
}

.store-badges img {
  height: 48px !important;
  width: auto !important;
  display: block;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
  text-align: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature__icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--color-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.feature__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.feature p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* Centered phone mockup with side features */
.showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-5);
}

.showcase__phone {
  max-width: 320px;
}

.showcase .feature {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 14px 28px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--color-brand-dark); }
.btn:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn--outline:hover { background: var(--color-brand); color: #fff; }

.cta-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Brand cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.brand-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.brand-item:hover { transform: translateY(-4px); }

.brand-item:hover .brand-item__name { color: var(--color-brand); }

.brand-item__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: var(--space-2) 0 var(--space-1);
  color: var(--color-text);
  transition: color 0.2s;
}

.brand-item__desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.4;
}

.brand-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform 0.3s;
}

.brand-card:hover { transform: translateY(-4px); }

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card__pill {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Catalog grid - just photos */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.catalog-photo {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
}

.catalog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.catalog-photo:hover img {
  transform: scale(1.03);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.review {
  background: #fff;
  padding: var(--space-3);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review__stars {
  color: #FFB400;
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.review__meta {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

.review__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.review__body {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Steps (Cómo funciona) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.step {
  text-align: center;
}

.step__num {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Contact block */
.contact-paula {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
}

.contact-paula .eyebrow {
  margin-bottom: 8px;
}

.contact-paula h2 {
  text-align: center;
  margin-bottom: var(--space-3);
}

.contact-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  align-items: center;
  max-width: 800px;
  margin: var(--space-4) auto 0;
  background: #fff;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.contact-block img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.contact-block__body p {
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
}

.contact-block .cta-row {
  justify-content: flex-start;
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* Instagram button */
.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.btn--instagram:hover { opacity: 0.9; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* FAQ accordion - white cards */
.faq {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 0 var(--space-3);
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-text-soft);
  border-bottom: 2px solid var(--color-text-soft);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item__body {
  padding: 0 0 var(--space-3);
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.faq-item__body p {
  margin-bottom: var(--space-1);
}

.faq-item__body ul {
  list-style: disc;
  padding-left: var(--space-3);
  margin: var(--space-1) 0;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.9rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

/* Price comparison block (high-conversion visual) */
.price-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: stretch;
  max-width: 720px;
  margin: var(--space-4) auto 0;
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(135deg, #FFF5F6 0%, #FFE8EC 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.price-compare::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(212,78,92,0.05), transparent 60%);
  pointer-events: none;
}

.price-compare__col {
  text-align: center;
  position: relative;
  z-index: 1;
}

.price-compare__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 8px;
  font-weight: 600;
}

.price-compare__col--rent .price-compare__label {
  color: var(--color-brand);
}

.price-compare__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1;
  color: var(--color-text);
}

.price-compare__amount--strike {
  text-decoration: line-through;
  text-decoration-color: rgba(212,78,92,0.6);
  text-decoration-thickness: 3px;
  color: var(--color-text-soft);
}

.price-compare__amount--brand {
  color: var(--color-brand);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.price-compare__sub {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-top: 6px;
}

.price-compare__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.price-compare__savings {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(212,78,92,0.25);
  position: relative;
  z-index: 1;
}

.price-compare__savings-text {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  padding: 8px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(212,78,92,0.15);
}

.price-compare__savings-text span {
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .price-compare {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .price-compare__arrow { display: none; }
}

/* Press section */
.press {
  padding: var(--space-5) 0;
  background: #fff;
}

.press-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.press-logos img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.press-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* WhatsApp button */
.btn--whatsapp {
  background: #25D366;
}
.btn--whatsapp:hover {
  background: #1DA851;
}

.btn img {
  width: 18px !important;
  height: 18px !important;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Brand cards on home use proper aspect for portrait images */
.brand-card {
  aspect-ratio: 4 / 5;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-2);
  color: #fff;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom__legal {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom__sponsors {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.85;
}

.footer-bottom__sponsors span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}

.footer-bottom__sponsors img {
  height: 60px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}

.footer-brand {
  margin-bottom: var(--space-2);
}

.footer-brand img {
  height: 24px;
}

/* Brand page specific - match home (left + gradient) */
.brand-hero {
  min-height: 540px;
}

.brand-hero__content {
  max-width: 600px;
  margin-left: -3%;
}

.brand-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  text-align: left;
  margin-bottom: var(--space-3);
}

.brand-hero .hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.brand-hero .store-badges { justify-content: flex-start; }

/* Tablet */
@media (max-width: 900px) {
  .features, .showcase {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .showcase__phone { margin: 0 auto; max-width: 280px; }
  .brand-grid, .catalog-grid, .reviews-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .press-logos { gap: var(--space-4); }
  .press-logos img { height: 32px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: var(--space-3);
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  .nav-toggle { display: block; }
  .hero { min-height: 480px; padding: var(--space-5) 0; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.3) 100%);
  }
  .hero__content { max-width: 100%; }
  .brand-hero__content, .brand-hero h1 { text-align: left; }
  .brand-hero .store-badges { justify-content: flex-start; }
  .contact-block {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-3);
    max-width: 95%;
  }
  .contact-block img { margin: 0 auto; }
  .contact-block .cta-row { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --space-7: 56px; }
  .container { padding: 0 var(--space-2); }
  .brand-grid, .reviews-grid, .steps { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .section { padding: var(--space-5) 0; }
  h1 { font-size: 1.8rem !important; line-height: 1.15; }
  h2 { font-size: 1.4rem; }
  .hero { min-height: 420px; background-position: center top; }
  .hero h1 { font-size: 1.85rem !important; }
  .hero__subtitle { font-size: 1rem; }
  .hero__cta-label { font-size: 1.1rem; }
  .store-badges a, .store-badges img { height: 40px !important; }
  .feature__icon-wrap { width: 56px; height: 56px; }
  .feature__icon { width: 32px; height: 32px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .lead { font-size: 1rem; padding: 0 var(--space-1); }
  .press-logos { gap: var(--space-3); }
  .press-logos img { height: 28px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 0.95rem; padding: var(--space-2) 0; }
  .footer-bottom__sponsors img { height: 50px; }
}
