/* =============================================================
   Froya · Greek Ice Cream — Stylesheet maestro
   Paleta y tipografías del Manual de Identidad oficial
   ============================================================= */

:root {
  /* CORE */
  --froya-navy:    #232150;
  --froya-blue:    #4471C4;
  --froya-celeste: #5BB6E2;
  --froya-gold:    #EFC138;
  --froya-green:   #8DC63F;

  /* CREAM & NEUTRALS */
  --froya-cream:   #FEF4E8;
  --froya-vanilla: #F9E5C9;
  --froya-arena:   #EADBC8;
  --froya-pastel:  #D9F1FF;
  --froya-sky:     #A7D8F5;
  --white:         #FFFFFF;

  /* SENSORY */
  --s-fresa:   #FF666B;
  --s-mango:   #FFB84D;
  --s-berry:   #A44CC5;

  /* TEXT */
  --txt-dark:  #1a1840;
  --txt-muted: #6c6a8a;

  /* FONTS */
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* SPACING */
  --section-py-lg: 7rem;
  --section-py-md: 5rem;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--txt-dark); line-height: 1.6; background: var(--white); }
h1, h2, h3, h4, h5, h6, .navbar, .btn { font-family: var(--font-head); letter-spacing: -0.01em; }
h1, h2 { font-weight: 800; line-height: 1.1; }
h3 { font-weight: 700; }
a { text-decoration: none; transition: color .2s; }
.lead { font-size: 1.1rem; line-height: 1.7; }
img { max-width: 100%; height: auto; }

/* ====== NAVBAR ====== */
.navbar-froya { background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(35,33,80,0.08); padding: 0.65rem 0; }
.navbar-froya .navbar-brand { display: inline-flex; align-items: center; }
.navbar-froya .navbar-brand img { display: block; max-height: 150px; width: auto; }
.navbar-froya .nav-link { color: var(--froya-navy); font-weight: 500; font-family: var(--font-head); padding: 0.5rem 1rem !important; font-size: 0.95rem; }
.navbar-froya .nav-link:hover, .navbar-froya .nav-link.active { color: var(--froya-blue); }
.navbar-froya .nav-link.active { font-weight: 700; }
.navbar-toggler:focus { box-shadow: none; }

/* ====== BUTTONS ====== */
.btn { font-weight: 600; border-radius: 100px; padding: 0.75rem 1.75rem; transition: all 0.3s; font-family: var(--font-head); border-width: 2px; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn-froya-primary { background: var(--froya-navy); color: white; border: 2px solid var(--froya-navy); }
.btn-froya-primary:hover { background: var(--froya-blue); border-color: var(--froya-blue); color: white; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(35,33,80,0.25); }
.btn-froya-gold { background: var(--froya-gold); color: var(--froya-navy); border: 2px solid var(--froya-gold); font-weight: 700; }
.btn-froya-gold:hover { background: #d9ac24; border-color: #d9ac24; color: var(--froya-navy); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,193,56,0.4); }
.btn-froya-outline { background: transparent; color: var(--froya-navy); border: 2px solid var(--froya-navy); }
.btn-froya-outline:hover { background: var(--froya-navy); color: white; }
.btn-light-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-light-outline:hover { background: white; color: var(--froya-navy); border-color: white; }

/* ====== SECTIONS ====== */
.section { padding: var(--section-py-lg) 0; }
.section-sm { padding: var(--section-py-md) 0; }
.section-eyebrow { color: var(--froya-gold); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.75rem; display: block; }
.section-title { color: var(--froya-navy); font-size: clamp(1.85rem, 3.5vw, 2.85rem); font-weight: 800; margin-bottom: 1.25rem; line-height: 1.15; }
.section-subtitle { color: var(--txt-muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 3rem; line-height: 1.6; }

/* ====== HERO ====== */
.hero { background: linear-gradient(135deg, var(--froya-navy) 0%, var(--froya-blue) 55%, var(--froya-celeste) 100%); color: white; padding: var(--section-py-lg) 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(239,193,56,0.18) 0%, transparent 65%); top: -250px; right: -250px; border-radius: 50%; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(91,182,226,0.35) 0%, transparent 65%); bottom: -200px; left: -200px; border-radius: 50%; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); font-weight: 900; margin-bottom: 1.5rem; color: white; }
.hero h1 .gold { color: var(--froya-gold); font-style: italic; font-weight: 800; }
.hero .tagline { font-size: 1.15rem; opacity: 0.92; max-width: 520px; margin-bottom: 2rem; line-height: 1.6; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); padding: 0.45rem 1.1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 500; margin-bottom: 1.75rem; color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stats .stat-num { font-family: var(--font-head); font-weight: 900; font-size: 1.85rem; color: var(--froya-gold); line-height: 1; margin-bottom: 0.25rem; }
.hero-stats .stat-lbl { font-size: 0.85rem; opacity: 0.85; }
.hero-img-wrap { aspect-ratio: 1; max-width: 480px; margin: 0 auto; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover;}
.hero-img-placeholder { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--froya-cream), var(--froya-vanilla)); border: 3px dashed rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.hero-img-placeholder i { font-size: 8rem; color: var(--froya-navy); opacity: 0.3; }

/* ====== VALUE PROPS ====== */
.value-props { background: var(--white); }
.value-card { text-align: center; padding: 2rem 1.25rem; border-radius: var(--radius-lg); transition: all 0.3s; height: 100%; }
.value-card:hover { background: var(--froya-cream); transform: translateY(-4px); }
.value-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.85rem; margin-bottom: 1.25rem; background: var(--froya-pastel); color: var(--froya-blue); }
.value-icon.green { background: #e8f5d8; color: var(--froya-green); }
.value-icon.gold { background: #fff4d1; color: var(--froya-gold); }
.value-icon.fresa { background: #ffe5e6; color: var(--s-fresa); }
.value-icon.berry { background: #f3e5ff; color: var(--s-berry); }
.value-card h3 { color: var(--froya-navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.value-card p { color: var(--txt-muted); font-size: 0.93rem; margin: 0; }

/* ====== SABORES / CATÁLOGO ====== */
.sabores { background: var(--froya-cream); }
.sabores-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }
.sabor-card { background: white; border-radius: var(--radius-lg); padding: 1.25rem; transition: all 0.3s; border: 1px solid transparent; height: 100%; }
.sabor-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(35,33,80,0.1); border-color: var(--froya-celeste); }
.sabor-img { aspect-ratio: 1; margin-bottom: 1rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.sabor-img img { width: 100%; height: 100%; object-fit: cover; }
.sabor-card .cat { color: var(--froya-blue); font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.25rem; }
.sabor-card h4 { color: var(--froya-navy); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.35rem; }
.sabor-card .desc { color: var(--txt-muted); font-size: 0.85rem; margin: 0; line-height: 1.4; }

/* Filtros catálogo */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; }
.filter-chip { background: white; border: 2px solid var(--froya-pastel); color: var(--froya-navy); padding: 0.5rem 1.25rem; border-radius: 100px; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--froya-blue); }
.filter-chip.active { background: var(--froya-navy); color: white; border-color: var(--froya-navy); }

/* ====== HISTORIA ====== */
.historia { background: white; }
.historia-img-wrap { position: relative; }
.historia-img-wrap img, .historia-img-placeholder { aspect-ratio: 4/5; border-radius: var(--radius-lg); width: 100%; object-fit: cover; background: linear-gradient(135deg, var(--froya-blue), var(--froya-navy)); display: block; }
.historia-stat { position: absolute; background: white; padding: 1.25rem 1.5rem; border-radius: 18px; box-shadow: 0 20px 50px rgba(35,33,80,0.12); z-index: 3; }
.historia-stat.s1 { bottom: 1.5rem; left: -1.5rem; }
.historia-stat.s2 { top: 1.5rem; right: -1.5rem; }
.historia-stat .num { color: var(--froya-gold); font-family: var(--font-head); font-weight: 900; font-size: 1.85rem; line-height: 1; }
.historia-stat .lbl { color: var(--froya-navy); font-size: 0.78rem; font-weight: 600; margin-top: 0.35rem; }
@media (max-width: 768px) { .historia-stat.s1 { left: 1rem; } .historia-stat.s2 { right: 1rem; } }

/* ====== SUCURSALES ====== */
.sucursales { background: linear-gradient(180deg, var(--froya-pastel) 0%, white 100%); }
.sucursal-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 40px rgba(35,33,80,0.08); height: 100%; transition: all 0.3s; display: flex; flex-direction: column; }
.sucursal-card:hover { transform: translateY(-6px); box-shadow: 0 25px 60px rgba(35,33,80,0.15); }
.sucursal-img { aspect-ratio: 16/10; position: relative; background: linear-gradient(135deg, var(--froya-celeste), var(--froya-blue)); overflow: hidden; }
.sucursal-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-status { position: absolute; top: 1rem; right: 1rem; padding: 0.35rem 0.9rem; border-radius: 100px; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; z-index: 2; }
.badge-status.open { background: var(--froya-green); color: white; }
.badge-status.soon { background: var(--froya-gold); color: var(--froya-navy); }
.sucursal-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.sucursal-body h4 { color: var(--froya-navy); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.75rem; }
.sucursal-body .meta { color: var(--txt-muted); font-size: 0.9rem; margin-bottom: 0.5rem; display: flex; align-items: start; gap: 0.6rem; }
.sucursal-body .meta i { color: var(--froya-blue); flex-shrink: 0; margin-top: 0.25rem; width: 16px; text-align: center; }
.sucursal-body .btn { margin-top: auto; align-self: flex-start; }

/* ====== FRANQUICIAS ====== */
.franquicias-cta { background: linear-gradient(135deg, var(--froya-navy), var(--froya-blue)); color: white; position: relative; overflow: hidden; }
.franquicias-cta::before { content: ""; position: absolute; width: 900px; height: 900px; background: radial-gradient(circle, rgba(239,193,56,0.13) 0%, transparent 60%); top: -450px; right: -450px; border-radius: 50%; }
.franquicias-cta .container { position: relative; z-index: 2; }
.franquicias-cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; color: white; margin-bottom: 1.25rem; }
.franquicias-cta .gold-text { color: var(--froya-gold); }
.franq-stat { background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.15); height: 100%; }
.franq-stat .num { color: var(--froya-gold); font-family: var(--font-head); font-weight: 900; font-size: 1.85rem; line-height: 1; margin-bottom: 0.5rem; }
.franq-stat .lbl { font-size: 0.85rem; opacity: 0.85; }

/* ====== FORMS ====== */
.form-froya .form-label { color: var(--froya-navy); font-weight: 600; font-family: var(--font-head); font-size: 0.9rem; }
.form-froya .form-control, .form-froya .form-select { border-radius: 12px; padding: 0.75rem 1rem; border: 2px solid #e0deea; font-family: var(--font-body); }
.form-froya .form-control:focus, .form-froya .form-select:focus { border-color: var(--froya-blue); box-shadow: 0 0 0 4px rgba(68,113,196,0.1); }
.form-froya .form-check-input:checked { background-color: var(--froya-navy); border-color: var(--froya-navy); }
.form-card { background: white; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 20px 60px rgba(35,33,80,0.1); }
@media (max-width: 576px) { .form-card { padding: 1.75rem; } }

/* ====== FAQ ====== */
.faq-accordion .accordion-item { border: 1px solid var(--froya-pastel); border-radius: var(--radius-md) !important; margin-bottom: 1rem; overflow: hidden; }
.faq-accordion .accordion-button { font-family: var(--font-head); font-weight: 600; color: var(--froya-navy); padding: 1.25rem 1.5rem; font-size: 1.05rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--froya-cream); color: var(--froya-navy); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--txt-muted); padding: 0 1.5rem 1.5rem; line-height: 1.7; }

/* ====== BLOG ====== */
.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgba(35,33,80,0.08); transition: all 0.3s; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(35,33,80,0.15); }
.blog-img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--froya-cream), var(--froya-vanilla)); }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag { background: var(--froya-pastel); color: var(--froya-blue); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: inline-block; margin-bottom: 0.75rem; }
.blog-body h4 { color: var(--froya-navy); font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.blog-body p { color: var(--txt-muted); font-size: 0.92rem; flex: 1; }
.blog-meta { color: var(--txt-muted); font-size: 0.82rem; margin-top: 0.75rem; }

/* ====== PAGE HEADER ====== */
.page-header { background: linear-gradient(135deg, var(--froya-navy), var(--froya-blue)); color: white; padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(239,193,56,0.15), transparent 60%); top: -300px; right: -300px; border-radius: 50%; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; }
.page-header .lead { opacity: 0.92; max-width: 700px; }
.breadcrumb-froya { background: transparent; padding: 0; margin-bottom: 1rem; }
.breadcrumb-froya .breadcrumb-item, .breadcrumb-froya .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.breadcrumb-froya .breadcrumb-item.active { color: var(--froya-gold); }
.breadcrumb-froya .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ====== LEGAL PAGES ====== */
.legal-content { background: white; padding: var(--section-py-md) 0; }
.legal-content h2 { color: var(--froya-navy); font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { color: var(--froya-blue); font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p, .legal-content li { color: var(--txt-dark); line-height: 1.75; }
.legal-toc { background: var(--froya-cream); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 2rem; }
.legal-toc a { color: var(--froya-navy); display: block; padding: 0.4rem 0; font-size: 0.95rem; }
.legal-toc a:hover { color: var(--froya-blue); }

/* ====== FOOTER ====== */
footer { background: var(--froya-navy); color: rgba(255,255,255,0.7); padding: 4.5rem 0 1.5rem; }
.footer-brand img { display: block; max-width: 140px; margin-bottom: 1rem; }
.footer-tagline { opacity: .75; font-size: .92rem; line-height: 1.6; max-width: 320px; }
footer h5 { color: white; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.25rem; letter-spacing: 0.05em; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--froya-gold); }
.footer-link { display: block; padding: 0.35rem 0; font-size: 0.9rem; }
.footer-social { margin-top: 1.25rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); align-items: center; justify-content: center; margin-right: 0.5rem; font-size: 1rem; }
.footer-social a:hover { background: var(--froya-gold); color: var(--froya-navy); }
.footer-contact { font-size: .88rem; opacity: .8; line-height: 1.8; }
.footer-contact i { width: 18px; margin-right: 0.35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 3rem; font-size: 0.85rem; text-align: center; }

/* ====== COOKIE BANNER ====== */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 1.5rem; max-width: 420px; background: white; border-radius: 18px; box-shadow: 0 30px 80px rgba(35,33,80,0.25); padding: 1.5rem; z-index: 9999; border: 1px solid var(--froya-pastel); display: none; }
.cookie-banner.show { display: block; animation: fadeUp .4s ease-out; }
.cookie-banner h6 { color: var(--froya-navy); font-family: var(--font-head); font-weight: 700; margin-bottom: 0.5rem; }
.cookie-banner p { font-size: 0.85rem; color: var(--txt-muted); margin-bottom: 1rem; line-height: 1.5; }
.cookie-banner .btn { font-size: 0.82rem; padding: 0.5rem 1.1rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-cookie-reject { color: var(--txt-muted); background: transparent; border: 0; }
.btn-cookie-reject:hover { color: var(--froya-navy); }

/* ====== WHATSAPP FLOAT ====== */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 15px 40px rgba(37,211,102,0.4); z-index: 9998; transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.08); color: white; }

/* ====== TOAST ====== */
.froya-toast { position: fixed; top: 90px; right: 1.5rem; background: white; border-left: 4px solid var(--froya-green); padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); z-index: 10000; display: none; max-width: 360px; font-size: 0.9rem; }
.froya-toast.show { display: block; animation: fadeUp .4s ease-out; }
.froya-toast.error { border-left-color: var(--s-fresa); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  :root { --section-py-lg: 5rem; }
  .hero { padding: 4rem 0; }
  .hero-img-wrap { margin-top: 3rem; max-width: 320px; }
  .navbar-froya .navbar-collapse { background: white; padding: 1rem; border-radius: 14px; margin-top: 0.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
  .hero-stats { gap: 1.5rem; }
  .navbar-froya .nav-link { padding: 0.65rem 0 !important; }
}
@media (max-width: 576px) {
  :root { --section-py-lg: 4rem; }
  .cookie-banner { left: 1rem; right: 1rem; max-width: none; }
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.85rem; }
  .wa-float { width: 52px; height: 52px; font-size: 1.5rem; }
}
