/* Regat Play Hub — Odoo 11 website theme
   Fonts are loaded via <link> in website.layout (not @import):
   Google Fonts CSS2 URLs contain ';' which breaks Odoo asset bundling.
*/

:root {
  --regat-red: #ed1c24;
  --regat-red-dark: #c41219;
  --regat-blue: #0057c8;
  --regat-yellow: #ffd100;
  --regat-green: #00a651;
  --regat-purple: #8b26c9;
  --regat-navy: #1f2d3d;
  --regat-ink: #1a1a1a;
  --regat-muted: #5b6470;
  --regat-soft: #f7f8fb;
  --regat-card: #ffffff;
  --regat-radius: 18px;
  --regat-shadow: 0 12px 40px rgba(31, 45, 61, 0.12);
  --regat-font: "Nunito", "Segoe UI", sans-serif;
  --regat-display: "Fredoka", "Nunito", sans-serif;
}

.regat-hub,
.regat-hub * {
  box-sizing: border-box;
}

.regat-hub {
  font-family: var(--regat-font);
  color: var(--regat-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 209, 0, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0, 87, 200, 0.10), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(237, 28, 36, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fafbff 45%, #ffffff 100%);
  overflow-x: hidden;
}

.regat-hub h1,
.regat-hub h2,
.regat-hub h3,
.regat-hub .regat-display {
  font-family: var(--regat-display);
  letter-spacing: -0.02em;
}

.regat-hub a {
  text-decoration: none;
}

.regat-hub img {
  max-width: 100%;
  height: auto;
}

/* Header */
.regat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 45, 61, 0.06);
  box-shadow: 0 4px 18px rgba(31, 45, 61, 0.05);
}

.regat-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.regat-logo img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.regat-service-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f7f8fb;
}

.regat-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.regat-nav a {
  color: var(--regat-ink);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.regat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.regat-btn:hover {
  transform: translateY(-2px);
}

.regat-btn-primary {
  background: var(--regat-red);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(237, 28, 36, 0.28);
}

.regat-btn-primary:hover {
  background: var(--regat-red-dark);
  color: #fff !important;
}

.regat-btn-secondary {
  background: #fff;
  color: var(--regat-red) !important;
  border-color: var(--regat-red);
}

.regat-btn-secondary:hover {
  background: #fff5f5;
}

/* Tienda — CTA principal del negocio */
.regat-btn-shop {
  flex-direction: column;
  gap: 2px;
  padding: 16px 28px;
  min-width: 220px;
  font-size: 18px;
  background: linear-gradient(135deg, #ffd100 0%, #ffb800 45%, #ed1c24 100%);
  color: #1a1a1a !important;
  border: 3px solid #1a1a1a;
  box-shadow: 0 12px 28px rgba(237, 28, 36, 0.35), 0 0 0 4px rgba(255, 209, 0, 0.35);
  animation: regat-shop-pulse 2.2s ease-in-out infinite;
}

.regat-btn-shop:hover {
  color: #111 !important;
  background: linear-gradient(135deg, #ffe34d 0%, #ffc107 40%, #c41219 100%);
  box-shadow: 0 16px 36px rgba(237, 28, 36, 0.45), 0 0 0 5px rgba(255, 209, 0, 0.5);
}

.regat-btn-shop-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes regat-shop-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}

.regat-nav a.regat-nav-shop {
  background: linear-gradient(135deg, #ffd100, #ed1c24);
  color: #111 !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.25);
}

.regat-nav a.regat-nav-shop:hover {
  color: #000 !important;
  filter: brightness(1.05);
}

.regat-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--regat-navy);
  padding: 4px 8px;
}

/* Sections */
.regat-section {
  padding: 72px 20px;
}

.regat-container {
  max-width: 1180px;
  margin: 0 auto;
}

.regat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.regat-eyebrow-yellow {
  background: rgba(255, 209, 0, 0.28);
  color: #8a6a00;
  border-radius: 999px;
  padding: 8px 14px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.regat-eyebrow-red { color: var(--regat-red); }
.regat-eyebrow-blue { color: var(--regat-blue); }
.regat-eyebrow-yellow-text { color: var(--regat-yellow); }

.regat-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--regat-navy);
}

.regat-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--regat-muted);
  margin: 0;
}

.regat-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.regat-highlight {
  color: var(--regat-blue);
  position: relative;
  display: inline-block;
}

.regat-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 10px;
  background: rgba(255, 209, 0, 0.75);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* Hero */
.regat-hero {
  padding: 48px 20px 28px;
}

.regat-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.regat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.regat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
}

.regat-stat strong {
  display: block;
  font-family: var(--regat-display);
  font-size: 34px;
  color: var(--regat-blue);
  line-height: 1;
}

.regat-stat span {
  display: block;
  margin-top: 6px;
  color: var(--regat-muted);
  font-weight: 700;
  font-size: 14px;
}

.regat-hero-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  /* Fallback si el <img> falla: la foto sigue visible */
  background:
    url("/website_regat_play_hub/static/src/img/hero/hero-ninos-regalos.jpg?v=14")
    center center / cover no-repeat #e8eef5;
  box-shadow: var(--regat-shadow);
  overflow: hidden;
}

.regat-hero-visual img,
.regat-hero-img {
  width: 100%;
  height: auto;
  min-height: 340px;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
}

.regat-float {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--regat-display);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: regat-bob 3.6s ease-in-out infinite;
}

.regat-float-r {
  background: var(--regat-red);
  left: -10px;
  top: 42%;
}

.regat-float-g {
  background: var(--regat-green);
  right: 18px;
  top: 12px;
  animation-delay: 0.4s;
}

.regat-float-star {
  background: var(--regat-yellow);
  color: var(--regat-navy);
  left: 18px;
  bottom: 24px;
  animation-delay: 0.8s;
  font-size: 22px;
}

@keyframes regat-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Clients */
.regat-clients {
  padding: 28px 20px 56px;
}

.regat-clients-label {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--regat-muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.regat-logo-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.regat-logo-row {
  display: flex;
  gap: 42px;
  align-items: center;
  width: max-content;
  animation: regat-marquee 28s linear infinite;
}

.regat-logo-row img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.78;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.regat-logo-row img:hover {
  filter: none;
  opacity: 1;
}

@keyframes regat-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Method */
.regat-method {
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.9), rgba(255, 255, 255, 0.95));
}

.regat-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.regat-step-card {
  position: relative;
  background: var(--regat-card);
  border-radius: var(--regat-radius);
  padding: 28px 24px 24px;
  box-shadow: var(--regat-shadow);
  overflow: hidden;
  min-height: 260px;
  transition: transform 0.25s ease;
}

.regat-step-card:hover {
  transform: translateY(-6px);
}

.regat-step-num {
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--regat-display);
  font-size: 64px;
  color: rgba(31, 45, 61, 0.07);
  line-height: 1;
}

.regat-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}

.regat-bg-blue { background: var(--regat-blue); }
.regat-bg-yellow { background: var(--regat-yellow); color: var(--regat-navy) !important; }
.regat-bg-red { background: var(--regat-red); }
.regat-bg-green { background: var(--regat-green); }
.regat-bg-purple { background: var(--regat-purple); }

.regat-step-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--regat-navy);
}

.regat-step-card p {
  margin: 0;
  color: var(--regat-muted);
  line-height: 1.55;
}

.regat-method-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.regat-method-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.1);
}

/* Catalog */
.regat-age-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--regat-shadow);
  transition: transform 0.25s ease;
  display: block;
  color: inherit;
}

.regat-age-card:hover {
  transform: translateY(-6px);
  color: inherit;
}

.regat-age-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.regat-age-body {
  padding: 0 0 22px;
}

.regat-age-banner {
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.regat-age-body h3 {
  margin: 16px 18px 8px;
  font-size: 24px;
  color: var(--regat-navy);
}

.regat-age-body p {
  margin: 0 18px;
  color: var(--regat-muted);
  line-height: 1.55;
}

/* Included */
.regat-included {
  background: var(--regat-soft);
}

.regat-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.regat-feature-card {
  background: #fff;
  border-radius: var(--regat-radius);
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.08);
  min-height: 180px;
}

.regat-badge {
  display: inline-block;
  color: var(--regat-blue);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.regat-feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--regat-navy);
}

.regat-feature-card p {
  margin: 0;
  color: var(--regat-muted);
  line-height: 1.55;
}

/* Team strip */
.regat-team-strip {
  padding: 0 20px 10px;
}

.regat-team-banner {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 28px 32px;
  background:
    linear-gradient(120deg, rgba(0, 87, 200, 0.95), rgba(139, 38, 201, 0.88) 55%, rgba(237, 28, 36, 0.9));
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--regat-shadow);
}

.regat-team-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
}

.regat-team-banner p {
  margin: 0;
  opacity: 0.95;
  font-size: 17px;
  line-height: 1.5;
}

.regat-team-pill {
  justify-self: end;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  text-align: center;
}

/* Contact */
.regat-contact {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 209, 0, 0.12), transparent 28%),
    linear-gradient(160deg, #243748 0%, #1f2d3d 55%, #172432 100%);
  color: #fff;
}

.regat-contact .regat-title {
  color: #fff;
}

.regat-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.regat-checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.regat-checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.regat-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--regat-green);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.regat-form-card {
  background: #fff;
  color: var(--regat-ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--regat-shadow);
}

.regat-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.regat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.regat-field-full {
  grid-column: 1 / -1;
}

.regat-field label {
  font-weight: 800;
  font-size: 13px;
  color: var(--regat-navy);
}

.regat-field input,
.regat-field textarea {
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--regat-font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.regat-field input:focus,
.regat-field textarea:focus {
  border-color: var(--regat-blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 200, 0.12);
}

.regat-form-card .regat-btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* Footer */
.regat-footer {
  background: var(--regat-blue);
  color: #fff;
}

.regat-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 48px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.regat-footer-brand img {
  height: 64px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}

.regat-footer h4 {
  margin: 0 0 14px;
  color: var(--regat-yellow);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.regat-footer p,
.regat-footer a,
.regat-footer li {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.regat-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regat-footer li {
  margin-bottom: 8px;
}

.regat-footer a:hover {
  color: var(--regat-yellow);
}

.regat-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* Thanks page */
.regat-thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.regat-thanks-card {
  max-width: 560px;
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--regat-shadow);
}

.regat-thanks-card h1 {
  color: var(--regat-navy);
  margin-top: 0;
}

/* Hide default Odoo website chrome on Regat pages (Odoo 11 markup) */
html.regat-hub-page #wrapwrap > header,
html.regat-hub-page #wrapwrap > footer,
body.regat-hub-page #wrapwrap > header,
body.regat-hub-page #wrapwrap > footer,
body.regat-hub-page #top,
body.regat-hub-page header#top,
body.regat-hub-page .navbar-static-top,
body.regat-hub-page #footer,
body.regat-hub-page div#footer,
body.regat-hub-page .o_footer,
body.regat-hub-page footer.o_footer {
  display: none !important;
}

html.regat-hub-page #wrapwrap,
body.regat-hub-page #wrapwrap {
  background: transparent;
}

/* Keep custom Regat header/footer visible */
body.regat-hub-page .regat-header,
body.regat-hub-page .regat-footer {
  display: block !important;
}

/* Responsive */
@media (max-width: 991px) {
  .regat-menu-toggle {
    display: inline-block;
  }

  .regat-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    padding: 16px 20px 22px;
    box-shadow: 0 16px 30px rgba(31, 45, 61, 0.12);
  }

  .regat-nav-wrap.is-open {
    display: block;
  }

  .regat-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
  }

  .regat-hero-grid,
  .regat-contact-grid,
  .regat-team-banner,
  .regat-footer-main,
  .regat-cards-3,
  .regat-cards-4,
  .regat-method-photos {
    grid-template-columns: 1fr;
  }

  .regat-team-pill {
    justify-self: start;
  }

  .regat-stats {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .regat-form-grid {
    grid-template-columns: 1fr;
  }

  .regat-logo img {
    height: 48px;
  }

  .regat-hero {
    padding-top: 28px;
  }

  .regat-section {
    padding: 56px 16px;
  }

  .regat-float {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
}

/* Entrance motions — visible by default so images never stay hidden */
.regat-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.regat-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure hero/service images always paint */
.regat-hero-visual img,
.regat-method-photos img,
.regat-age-card img,
.regat-service-img,
.regat-logo img,
.regat-footer-brand img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Tutorial video (Vimeo embed) */
.regat-tutorial-video {
  margin-top: 28px;
}

.regat-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--regat-radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--regat-shadow);
  border: 1px solid rgba(31, 45, 61, 0.08);
}

.regat-video-frame iframe,
.regat-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1220;
  object-fit: contain;
}

.regat-video-caption {
  margin: 12px 0 0;
  color: var(--regat-muted);
  font-size: 0.95rem;
}
