/* Bride Studio MX – Global Styles */
/* Color system inspired by brand palette */
:root {
  --blush: #F9C1B1;
  --nude: #E4D1CB;
  /* Site background tones - neutral white */
  --offwhite: #ffffff; /* neutral white for general page background */
  --white: #ffffff;    /* pure white surfaces */
  --black: #000000;
  --text: #1e1e1e;
  --muted: #6b6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);

  --container: 1200px;

  --font-sans: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Six Caps', 'Montserrat', sans-serif;
  /* Quentin is premium; allow fallback to a free script for dev */
  --font-script: 'Quentin', 'Great Vibes', 'Qwitcher Grypen', cursive;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--offwhite);
  font-family: var(--font-sans);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; height: auto; }
video { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { 
  .container { padding: 0 16px; } 
}
.section { padding: 64px 0; }

/* Typography */
h1, h2, h3 { margin: 0 0 16px; line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
p { margin: 0 0 16px; font-size: 1.05rem; color: var(--text); }

.eyebrow { font-family: var(--font-display); letter-spacing: 2px; font-size: 20px; }
.script { font-family: var(--font-script); font-size: 1.4em; color: var(--blush); }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .1s ease, background .2s ease, color .2s ease, box-shadow .2s ease; font-family: var(--font-sans); font-size: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blush); color: #3a2a28; box-shadow: var(--shadow); }
.btn-primary:hover { background: #f6b19e; }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.85); backdrop-filter: saturate(120%) blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { height: 36px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: #343434; text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav-links a.active, .nav-links a:hover { background: var(--offwhite); }

.lang-toggle { display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: var(--white); padding: 8px 12px; border-radius: 999px; font-size: 12px; border: none; cursor: pointer; }
.burger { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #222; margin: 5px 0; }

@media (max-width: 880px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; background: var(--white); padding: 16px; flex-direction: column; border-bottom: 1px solid rgba(0,0,0,0.06); transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .header.nav-open .nav-links { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .burger { display: inline-block; }
}

/* Hero */
.hero { position: relative; min-height: calc(100vh - 74px); display: grid; place-items: center; overflow: hidden; background: #000; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.2) 100%); }
.hero-content { position: relative; z-index: 2; color: white; text-align: center; padding: 0 16px; max-width: 900px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }
.hero .cta-row { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .kicker { margin-bottom: 8px; color: #fff; opacity: 0.85; font-size: clamp(26px, 4vw, 40px); letter-spacing: 4px; }

/* Sections */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
/* En desktop, split-reverse pone el texto primero y la imagen después */
.split.split-reverse > :first-child { order: 2; }
/* En móvil, split-reverse pone la imagen primero y el texto después */
@media (max-width: 980px) {
  .split.split-reverse > :first-child { order: 2; }
  .split.split-reverse > :last-child { order: 1; }
}


.card { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 22px; }
.card-actions { margin-top: 16px; }
.pill { display:inline-block; padding: 6px 12px; border-radius: 999px; background: var(--offwhite); color:#333; font-weight:600; letter-spacing:.3px; }

/* Services */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }
.pricing .card { background: var(--white); }
.pricing .card h3 {
  padding: 16px 22px;
  font-size: clamp(24px, 3vw, 32px);
  background: var(--blush);
  color: #3a2a28;
  margin: -22px -22px 16px;
}
.price { font-size: 20px; font-weight: 600; color: var(--text); }
.features { margin: 18px 0 20px; color: #3f3f3f; padding-left: 20px; }
.features li { margin: 8px 0; }
.features .feature-placeholder { list-style: none; }

.service-package .card {
  overflow: visible;
  box-shadow: none;
}
.service-package .card img {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 480px) { .grid { gap: 4px; } }
.grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: zoom-in; box-shadow: var(--shadow); }
.gallery-btn-container { margin-top: 32px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 70; }
.lightbox.open { display: flex; }
.lightbox-content { position: relative; }
.lightbox img, .lightbox video { max-width: 85vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity .2s ease;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }
.lightbox-nav::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-top: 4px solid white;
  border-right: 4px solid white;
}
.lightbox-nav.prev::before {
  transform: translateX(5px) rotate(-135deg);
}
.lightbox-nav.next::before {
  transform: rotate(45deg);
}

/* Ocultar flechas de navegación en móvil */
@media (max-width: 768px) {
  .lightbox-nav {
    display: none;
  }
}

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.quote { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.stars { color: #d4a373; letter-spacing: 2px; }

/* Contact */
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #e7e7e7; border-radius: 12px; font: inherit; background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
form .btn { font-family: var(--font-sans); }

/* Footer */
.footer { background: #FFFFFF; border-top: 1px solid rgba(0,0,0,0.06); padding: 28px 0; color: #555; }
.footer .row { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Floating WhatsApp (removed) */
/* intentionally removed persistent floating button styles */

/* Shopping Cart Icon */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.cart-icon:hover {
  background: var(--offwhite);
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--blush);
  color: #3a2a28;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Checkout Page */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Cart Items */
.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.cart-item-content {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: flex-start;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  .cart-item-content {
    gap: 12px;
  }
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cart-item-details p {
  margin: 4px 0;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--blush);
  margin-top: 8px;
}

.btn-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
  border-radius: 8px;
  margin-left: 8px;
}

.btn-remove:hover {
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
}

.btn-remove:active {
  transform: scale(0.95);
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--offwhite);
}

.summary-row.total {
  border-top: 2px solid var(--text);
  border-bottom: none;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 1.15rem;
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid #e7e7e7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: var(--blush);
  background: var(--offwhite);
}

.payment-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: auto;
}

.payment-option input[type="radio"]:checked + span {
  font-weight: 600;
}

.payment-option span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Alert Info Box */
.alert-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 12px;
  padding: 16px;
  color: #1565c0;
}

.alert-info p {
  margin: 0 0 8px;
  color: #1565c0;
}

.alert-info strong {
  color: #0d47a1;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blush);
  color: #3a2a28;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* Utilities */
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.spacer { height: 8px; }
