/* ================================
   MO DIGITAL - GLOBAL STYLES
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --primary-red:    #E63946;
  --dark-red:       #A0001C;
  --accent-red:     #FF4D5A;
  --black:          #0D0D0D;
  --dark-gray:      #1A1A1A;
  --mid-gray:       #2C2C2C;
  --light-gray:     #F0F0F0;
  --white:          #FFFFFF;
  --off-white:      #F5F5F5;

  --gradient-red:   linear-gradient(135deg, #E63946 0%, #A0001C 100%);
  --gradient-dark:  linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
  --gradient-hero:  linear-gradient(135deg, #0D0D0D 60%, #A0001C 100%);

  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Inter', sans-serif;

  --text-hero:      clamp(3rem, 8vw, 7rem);
  --text-h1:        clamp(2rem, 5vw, 4rem);
  --text-h2:        clamp(1.5rem, 3vw, 2.5rem);
  --text-h3:        1.5rem;
  --text-body:      1rem;
  --text-small:     0.875rem;

  --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-sharp:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:       0.2s;
  --dur-base:       0.4s;
  --dur-slow:       0.8s;
  --dur-reveal:     1.2s;

  --container-max:  1280px;
  --section-pad:    100px;
  --border-radius:  12px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); }

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient-red);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- SECTION PADDING ---- */
section { padding: var(--section-pad) 0; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.1; }
h1 { font-size: var(--text-h1); font-weight: 900; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 600; }
p { line-height: 1.7; color: rgba(255,255,255,0.75); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title .red-word { color: var(--primary-red); }

.section-subtitle {
  max-width: 600px;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  line-height: 1.7;
}

.red-underline-wrapper { display: inline-block; position: relative; }
.red-underline-wrapper::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  height: 3px;
  background: var(--gradient-red);
  width: 0%;
  transition: width 0.8s var(--ease-smooth);
  border-radius: 2px;
}
.red-underline-wrapper.is-visible::after { width: 100%; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: none;
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-smooth), height 0.6s var(--ease-smooth);
}
.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230,57,70,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(230,57,70,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-red {
  background: transparent;
  color: var(--primary-red);
  border-color: var(--primary-red);
}
.btn-outline-red:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,0.4);
}

.btn-dark {
  background: var(--dark-gray);
  color: var(--white);
  border-color: var(--mid-gray);
}
.btn-dark:hover {
  background: var(--mid-gray);
  transform: translateY(-2px);
}

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-red { background: var(--primary-red); color: var(--white); }
.badge-dark { background: var(--dark-gray); color: rgba(255,255,255,0.7); border: 1px solid var(--mid-gray); }

/* ---- DUMMY IMAGE PLACEHOLDERS ---- */
.dummy-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.dummy-img-1 {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 50%, #A0001C 100%);
  color: rgba(255,255,255,0.3);
}
.dummy-img-2 {
  background: linear-gradient(135deg, #E63946 0%, #A0001C 100%);
  color: rgba(255,255,255,0.5);
}
.dummy-img-3 {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  color: rgba(255,255,255,0.3);
}

/* ---- HIGHLIGHT TEXT ---- */
.text-red { color: var(--primary-red); }
.text-white { color: var(--white); }
.text-muted { color: rgba(255,255,255,0.55); }

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mid-gray), transparent);
  margin: 60px 0;
}

/* ---- GRID UTILITIES ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E63946' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(160,0,28,0.15));
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.page-hero-eyebrow span { color: var(--primary-red); }
.page-hero-eyebrow .sep { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero p { font-size: 1.1rem; max-width: 540px; }
.hero-red-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-red);
  border-radius: 2px;
  margin: 20px 0;
}

/* ---- CARD BASE ---- */
.card {
  background: var(--dark-gray);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--dur-base) var(--ease-smooth);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(230,57,70,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(230,57,70,0.08);
}

/* ---- STAR RATING ---- */
.stars { display: flex; gap: 3px; }
.star {
  color: var(--primary-red);
  font-size: 1rem;
}

/* ---- SECTION BACKGROUNDS ---- */
.bg-dark { background: var(--dark-gray); }
.bg-off-white { background: var(--off-white); color: var(--black); }
.bg-off-white h2, .bg-off-white h3 { color: var(--black); }
.bg-off-white .section-label { color: var(--dark-red); }
.bg-off-white p { color: rgba(0,0,0,0.6); }
.bg-red { background: var(--gradient-red); }
.bg-mid { background: var(--mid-gray); }
.bg-black { background: var(--black); }

/* ---- SCROLL REVEAL BASE ---- */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth);
}
[data-reveal="fade-up"] { transform: translateY(60px); }
[data-reveal="fade-down"] { transform: translateY(-40px); }
[data-reveal="fade-left"] { transform: translateX(-60px); }
[data-reveal="fade-right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="scale-up"] { transform: scale(0.9) translateY(30px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="0.1"] { transition-delay: 0.1s; }
[data-delay="0.2"] { transition-delay: 0.2s; }
[data-delay="0.3"] { transition-delay: 0.3s; }
[data-delay="0.4"] { transition-delay: 0.4s; }
[data-delay="0.5"] { transition-delay: 0.5s; }
[data-delay="0.6"] { transition-delay: 0.6s; }
[data-delay="0.7"] { transition-delay: 0.7s; }
[data-delay="0.8"] { transition-delay: 0.8s; }

/* ---- BACK TO TOP ---- */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--dur-base) var(--ease-smooth);
  z-index: 900;
  box-shadow: 0 4px 15px rgba(230,57,70,0.4);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px) rotate(360deg); transition: all 0.4s var(--ease-smooth); }
#back-to-top svg { width: 20px; height: 20px; }

/* ---- WHATSAPP BUTTON ---- */
#whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-green 2s infinite;
  transition: transform var(--dur-base) var(--ease-bounce);
}
#whatsapp-btn:hover { transform: scale(1.15); }
#whatsapp-btn svg { width: 28px; height: 28px; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-gray);
  border-top: 1px solid var(--mid-gray);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-smooth);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0; }
#cookie-banner .btn { padding: 10px 22px; font-size: 0.8rem; flex-shrink: 0; }

/* ---- PAGE TRANSITION OVERLAY ---- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#page-transition.active { opacity: 1; pointer-events: all; }

/* ---- FORM STYLES ---- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--mid-gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all var(--dur-base) var(--ease-smooth);
  cursor: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.2);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-select option { background: var(--dark-gray); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: 0.8rem;
  color: var(--primary-red);
  margin-top: 6px;
  display: none;
}
.form-input.error { border-color: var(--primary-red); }
.form-input.success { border-color: #22c55e; }

/* Light forms */
.form-light .form-input,
.form-light .form-select,
.form-light .form-textarea {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: var(--black);
}
.form-light .form-input::placeholder { color: rgba(0,0,0,0.4); }
.form-light .form-label { color: rgba(0,0,0,0.7); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--dark-gray);
  border-radius: 16px;
  border: 1px solid var(--mid-gray);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--dur-base) var(--ease-bounce);
  padding: 48px;
  position: relative;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--mid-gray);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}
.modal-close:hover { background: var(--primary-red); }

/* ---- ACCORDION ---- */
.accordion-item {
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--dur-fast);
}
.accordion-header:hover { background: var(--mid-gray); }
.accordion-header.active { background: var(--mid-gray); color: var(--primary-red); }
.accordion-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.accordion-header.active .accordion-arrow { transform: rotate(180deg); border-color: var(--primary-red); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth), padding 0.3s;
  padding: 0 24px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.accordion-body.open { max-height: 300px; padding: 0 24px 20px; }

/* ---- SUCCESS STATE ---- */
.success-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base);
}
.success-overlay.show { opacity: 1; visibility: visible; }
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  animation: bounceIn 0.6s var(--ease-bounce);
}

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(230,57,70,0.12);
  color: var(--primary-red);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- RESPONSIVE GLOBAL ---- */
@media (max-width: 1024px) {
  .container { padding: 0 30px; }
  :root { --section-pad: 80px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --section-pad: 60px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .modal-box { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
}

@media (hover: none) {
  body { cursor: auto; }
  button, a, input { cursor: pointer; }
  #cursor-outer, #cursor-dot { display: none; }
}
