/* Global Styles — peritoeninformatica.com */

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: 860px;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.6rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

strong { font-weight: var(--weight-semibold); color: var(--color-text); }

a:hover { color: var(--color-accent); }

/* ── Section Base ── */
.section {
  padding-block: var(--section-py);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p { color: var(--color-white); }

.section--dark p { opacity: 0.85; }

.section--light { background-color: var(--color-bg-light); }
.section--white { background-color: var(--color-white); }
.section--accent { background-color: var(--color-accent); }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-14);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section--dark .section-header .eyebrow {
  color: var(--color-gold);
  background: rgba(248, 180, 0, 0.12);
  border-color: rgba(248, 180, 0, 0.3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin-inline: auto;
  font-size: var(--text-lg);
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin-block: var(--space-4);
}

.divider--center { margin-inline: auto; }
.divider--gold   { background: var(--color-gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 16, 46, 0.45);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-gold);
  font-weight: var(--weight-bold);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.badge--accent {
  background: rgba(200, 16, 46, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(200, 16, 46, 0.2);
}

.badge--gold {
  background: rgba(248, 180, 0, 0.15);
  color: #A07800;
  border: 1px solid rgba(248, 180, 0, 0.3);
}

.badge--green {
  background: rgba(74, 222, 128, 0.1);
  color: #166534;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ── Credential Icon ── */
.credential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.credential-icon--primary { background: rgba(200, 16, 46, 0.08); }
.credential-icon--gold    { background: rgba(248, 180, 0, 0.12); }

/* ── SVG Icons ── */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

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

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

.animate-fade-up   { animation: fadeInUp   0.7s ease both; }
.animate-fade-left { animation: fadeInLeft 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Utility ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-accent  { color: var(--color-accent) !important; }
.text-gold    { color: var(--color-gold) !important; }
.text-white   { color: var(--color-white) !important; }
.text-muted   { color: var(--color-text-muted); }
.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: var(--weight-bold); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--color-primary);
  padding-block: var(--space-20) var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,16,46,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(26,58,107,0.6) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}

.page-hero .breadcrumb a:hover { color: var(--color-gold); }
.page-hero .breadcrumb span   { color: rgba(255,255,255,0.4); }

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero p.lead {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 680px;
  line-height: var(--leading-relaxed);
}
