/* ============================================================
   FRIGEL — Gel Pexin Ltda.
   Hoja de estilos compartida por todas las páginas
   ============================================================ */

:root {
  --navy-900: #0c2148;
  --navy-800: #10285c;
  --navy-700: #163a7a;
  --ice-500: #39aeea;
  --ice-400: #6cc4f0;
  --ice-100: #e7f6fd;
  --bg: #f6f9fc;
  --paper: #ffffff;
  --text: #16233f;
  --muted: #58698a;
  --line: #dde6f0;
  --amber: #c98a1b;
  --amber-bg: #fdf3e0;

  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 12px 30px -14px rgba(12, 33, 72, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--ice-500);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6em;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ice-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Header / navegación ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.main-nav a.nav-link {
  display: inline-block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-800);
  border-radius: 6px;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link:focus-visible,
.main-nav li.current > a.nav-link {
  color: var(--ice-500);
}

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.93rem;
  color: var(--text);
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--ice-100);
  color: var(--navy-800);
}

.nav-cta {
  background: var(--navy-800);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--ice-500) !important; color: var(--navy-900) !important; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 640px; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    gap: 0;
  }
  .main-nav a.nav-link { padding: 14px 6px; border-bottom: 1px solid var(--line); }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0 12px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { display: inline-block; margin-top: 10px; }
}

/* ---------------- Hero slider (home) ---------------- */

.hero-slider {
  position: relative;
  height: min(78vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,33,72,0.86) 0%, rgba(12,33,72,0.55) 45%, rgba(12,33,72,0.25) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy-inner {
  max-width: 560px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container);
}

.hero-copy h1,
.hero-copy p { color: #fff; }
.hero-copy h1 { max-width: 620px; }
.hero-copy p { max-width: 520px; color: #d9e6f5; font-size: 1.08rem; }

.hero-tag {
  color: var(--ice-400);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ice-500); color: var(--navy-900); }
.btn-primary:hover { background: #fff; }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--ice-500); color: var(--navy-900); }

.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: var(--ice-500); }

/* ---------------- Page hero (páginas internas) ---------------- */

.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0f4; max-width: 640px; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ice-400);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--ice-400); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Secciones generales ---------------- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2 { color: #fff; }
.section-navy p { color: #cfe0f4; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.lead { font-size: 1.12rem; color: var(--muted); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.benefit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ice-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--ice-500);
}
.benefit-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.benefit-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.full-banner {
  display: block;
  width: 100%;
  height: min(46vh, 380px);
  object-fit: cover;
}

/* Product / service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-card-top {
  height: 6px;
  background: linear-gradient(90deg, var(--ice-500), var(--navy-700));
}

.product-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin-bottom: 10px; }
.product-card p { color: var(--muted); flex: 1; }
.product-card .card-link {
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .card-link:hover { color: var(--ice-500); }

/* CTA band */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfe0f4; margin: 0; }

/* Placeholder callout (para páginas por completar) */
.placeholder-note {
  border: 1.5px dashed var(--amber);
  background: var(--amber-bg);
  color: #6d4a0c;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.94rem;
  margin-bottom: 32px;
}
.placeholder-note strong { color: #6d4a0c; }

/* Info list (contacto / empresa) */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-list strong { min-width: 110px; color: var(--navy-800); }

.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin-bottom: 4px;
  display: block;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-900);
  color: #cfe0f4;
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid p { color: #a9bcd8; font-size: 0.94rem; }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfe0f4; font-size: 0.94rem; }
.footer-links a:hover { color: var(--ice-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8ea3c4;
  text-align: center;
}
