/* ============================================================
   La Casa de Spanish — Custom UI layer ("Indigo & Amber")
   Loaded AFTER styles.css to override the Stylish Portfolio theme.
   Deep indigo + warm amber: vibrant yet easy on the eyes.
   ============================================================ */

:root {
  --primary: #4338ca;        /* deep indigo */
  --primary-dark: #362aa0;
  --primary-soft: #6d63e6;
  --accent: #f59e0b;         /* warm amber */
  --accent-soft: #fbbf52;
  --ink: #1e2235;            /* indigo-navy text */
  --muted: #5d6377;
  --bg: #f7f7fb;             /* cool off-white */
  --bg-2: #eef0f9;           /* soft indigo-tinted section bg */
  --surface: #ffffff;
  --line: #e4e6f1;
  --shadow-sm: 0 4px 14px rgba(30, 34, 53, 0.07);
  --shadow-md: 0 12px 28px rgba(30, 34, 53, 0.11);
  --shadow-lg: 0 22px 50px rgba(30, 34, 53, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Re-map Bootstrap theme tokens so .btn-primary, .bg-primary etc. follow the brand */
  --bs-primary: #4338ca;
  --bs-primary-rgb: 67, 56, 202;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5,
.display-1, .display-2, .display-3, .display-4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Section rhythm & shared bits ---------- */
.content-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }

.section-eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-eyebrow.on-dark { color: var(--accent-soft); }

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.title-underline { position: relative; }
.title-underline::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  border-radius: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.lead-muted { color: var(--muted); font-size: 1.06rem; max-width: 720px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { font-family: "Poppins", sans-serif; font-weight: 600; border-radius: 999px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s; }
.btn-xl { padding: 0.95rem 2.4rem; font-size: 1.05rem; }

.btn-brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(67, 56, 202, 0.30);
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(67, 56, 202, 0.40); }

.btn-gold {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #5a3c08;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}
.btn-gold:hover, .btn-gold:focus { color: #5a3c08; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(245, 158, 11, 0.42); }

.btn-outline-light-2 {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}
.btn-outline-light-2:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }

.btn-ghost-dark { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
  background: rgba(247, 247, 251, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  box-shadow: none;
  transition: box-shadow 0.3s, background 0.3s, padding 0.3s;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-navbar.scrolled { box-shadow: var(--shadow-sm); background: rgba(247, 247, 251, 0.96); }

.navbar-brand-text { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.4rem; color: var(--ink) !important; }
.navbar-brand-text .accent { color: var(--primary); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; margin-right: 0.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.1rem;
}

.site-navbar .nav-link {
  font-family: "Poppins", sans-serif; font-weight: 500; color: var(--ink) !important;
  margin: 0 0.15rem; padding: 0.4rem 0.85rem !important; border-radius: 999px;
  position: relative; transition: color 0.2s, background 0.2s;
}
.site-navbar .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--primary); transition: width 0.25s var(--ease);
}
.site-navbar .nav-link:hover::after, .site-navbar .nav-link.active::after { width: 22px; }
.site-navbar .nav-link.active { color: var(--primary) !important; }

.navbar-toggler { border: 0; padding: 0.35rem 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  /* extra top padding clears the fixed navbar; bottom keeps stats off the edge */
  padding-top: 130px;
  padding-bottom: 90px;
  background: linear-gradient(120deg, rgba(20, 22, 45, 0.90) 0%, rgba(45, 38, 120, 0.82) 52%, rgba(67, 56, 202, 0.66) 100%),
              url("../assets/img/bg-masthead.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 0 rgba(251,191,82,.7); animation: pulse 2.4s infinite; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.04;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}
.hero h1 .script { color: var(--accent-soft); font-style: italic; }
.hero .hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; max-width: 640px; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.75rem; }

.hero-stats {
  display: flex; gap: 2.25rem; justify-content: center; flex-wrap: wrap; align-items: center;
  background: rgba(15, 16, 38, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.25rem 1.75rem;
  max-width: 760px; margin: 0 auto;
  backdrop-filter: blur(3px);
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-family: "Playfair Display", serif; font-weight: 800; font-size: 2rem; color: var(--accent-soft); line-height: 1; }
.hero-stats .stat .label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; opacity: 0.95; margin-top: 0.35rem; }
.hero-stats .divider { width: 1px; height: 38px; background: rgba(255,255,255,.28); }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.85); font-size: 1.4rem; animation: bob 1.8s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,191,82,.6);} 70%{ box-shadow: 0 0 0 10px rgba(251,191,82,0);} 100%{ box-shadow:0 0 0 0 rgba(251,191,82,0);} }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ============================================================
   WHY SPANISH — feature cards
   ============================================================ */
.why-section { background: var(--bg); }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card .img-wrap { position: relative; height: 210px; overflow: hidden; }
.feature-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature-card:hover .img-wrap img { transform: scale(1.06); }
.feature-card .img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,34,53,0.28), transparent 55%); }
.feature-card .card-body { padding: 1.6rem 1.5rem 1.8rem; }
.feature-card .card-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.7rem; }
.feature-card .card-text { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }
.feature-card .num-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.92); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-weight: 800; box-shadow: var(--shadow-sm);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #5b50e0 100%);
  color: #fff;
}
.services-section .section-title { color: #fff; }
.services-section .lead-muted { color: rgba(255,255,255,.85); }

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
  backdrop-filter: blur(2px);
}
.service-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.15); border-color: rgba(255,255,255,.4); }
.service-card .svc-icon {
  width: 70px; height: 70px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #5a3c08;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform 0.4s var(--ease);
}
.service-card:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
.service-card h4 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
.service-card p { color: rgba(255, 255, 255, 0.84); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* ============================================================
   LEVELS / accordion
   ============================================================ */
.levels-section { background: var(--bg-2); }
.level-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.level-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-family: "Poppins", sans-serif; font-size: 0.92rem; color: var(--ink);
}
.level-pill .tag { background: var(--primary); color: #fff; border-radius: 6px; padding: 0.05rem 0.5rem; font-size: 0.78rem; }
.level-pill:nth-child(even) .tag { background: var(--accent); color: #5a3c08; }

.accordion { --bs-accordion-border-color: var(--line); max-width: 880px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; margin-bottom: 0.85rem; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.accordion-button {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: 1.15rem 1.3rem; background: #fff;
}
.accordion-button:not(.collapsed) { color: var(--primary); background: #eef0fb; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-button::after { background-size: 1.1rem; }
.accordion-body { color: var(--muted); line-height: 1.7; font-size: 0.97rem; }

.levels-cta {
  max-width: 820px; margin: 3rem auto 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-md);
}
.levels-cta p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.4rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg); }
.testimonial-carousel { max-width: 820px; margin: 0 auto; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.6rem 2.4rem 2.2rem;
  text-align: center;
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: "Playfair Display", serif; font-size: 5rem; line-height: 0.6;
  color: var(--accent); opacity: 0.5; height: 2.2rem;
}
.testimonial-avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--shadow-md); margin: 0 auto 1rem;
}
.testimonial-card .quote-text { color: #3a4050; font-size: 1.02rem; line-height: 1.8; max-width: 640px; margin: 0 auto 1.4rem; }
.testimonial-card .stars { color: var(--accent); font-size: 0.95rem; margin-bottom: 0.6rem; letter-spacing: 2px; }
.testimonial-card .name { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.1rem; }
.testimonial-card .role { color: var(--primary); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next { width: 46px; height: 46px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 50%; box-shadow: var(--shadow-md); opacity: 1; }
.testimonial-carousel .carousel-control-prev { left: -10px; }
.testimonial-carousel .carousel-control-next { right: -10px; }
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon { filter: invert(1); width: 18px; height: 18px; }
.testimonial-carousel .carousel-indicators { bottom: -52px; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 0; opacity: 0.3; }
.testimonial-carousel .carousel-indicators .active { opacity: 1; width: 26px; border-radius: 6px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #2c2a66 55%, var(--primary-dark) 100%);
  color: #fff; border-radius: 0; position: relative; overflow: hidden;
}
.cta-band h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1b1f33; color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; }
.site-footer h5 { color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-brand { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.5rem; color: #fff; }
.footer-contact-item { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.9rem; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: transform 0.25s var(--ease), background 0.25s;
}
.footer-social a:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; }

/* ============================================================
   Floating WhatsApp + scroll-to-top
   ============================================================ */
.whatsapp-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.40);
  transition: transform 0.25s var(--ease); animation: pulse-green 2.6s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse-green { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.45);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

.scroll-to-top { background: var(--primary) !important; border-radius: 14px !important; right: 24px !important; bottom: 24px !important; }
.scroll-to-top:hover { background: var(--primary-dark) !important; }

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-badge .dot, .whatsapp-float, .scroll-hint { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
  .site-navbar { background: rgba(247,247,251,0.97); }
  .navbar-collapse { background: #fff; border-radius: var(--radius); margin-top: 0.8rem; padding: 0.8rem; box-shadow: var(--shadow-md); }
  .site-navbar .nav-link { padding: 0.6rem 0.85rem !important; }
  .hero { padding-top: 120px; }
  .hero-stats { gap: 1.25rem; padding: 1.1rem 1.25rem; }
  .hero-stats .divider { display: none; }
}
@media (max-width: 575.98px) {
  .content-section { padding-top: 4rem; padding-bottom: 4rem; }
  .hero-stats .stat { flex: 0 0 40%; }
  .hero-stats .stat .num { font-size: 1.7rem; }
  .testimonial-carousel .carousel-control-prev { left: -4px; }
  .testimonial-carousel .carousel-control-next { right: -4px; }
  .testimonial-card { padding: 2rem 1.3rem; }
}
