/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
  /* Brand Palette - Adium / Creatika */
  --color-brand-primary: #00639d; /* Blue */
  --color-brand-secondary: #df3341; /* Red */

  /* Light/Neutral Tones */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-gray: #f1f5f9;
  --color-border: #e2e8f0;

  --color-text-main: #1e2936;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Glassmorphism Tokens (Light adapted) */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-blur: blur(12px);

  /* Background */
  --bg-gradient: radial-gradient(
    circle at top center,
    rgba(0, 99, 157, 0.05),
    #f8fafc 70%
  );

  /* Typography */
  --font-heading: "Roboto", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg-light);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.items-center {
  align-items: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.justify-center {
  justify-content: center !important;
}
.gap-2 {
  gap: 0.5rem !important;
}
.gap-4 {
  gap: 1rem !important;
}
.gap-8 {
  gap: 2rem !important;
}
.gap-10 {
  gap: 2.5rem !important;
}
.gap-12 {
  gap: 3rem !important;
}

.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.overflow-hidden {
  overflow: hidden !important;
}

/* Colors */
.text-brand-teal {
  color: var(--color-brand-primary);
}
.text-brand-orange {
  color: var(--color-brand-secondary);
}
.text-brand-muted {
  color: var(--color-text-muted);
}
.text-white {
  color: var(--color-text-main);
}

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Header */
.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.header-logo-text span {
  color: var(--color-brand-primary);
}

.header-badge {
  background: rgba(0, 99, 157, 0.05);
  border: 1px solid rgba(0, 99, 157, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--color-brand-primary);
  font-weight: 700;
}

/* Panel Cards Container (Fallback) */
.panel-grid {
  /* Kept for potential recycling, but main layout is now handled by utility classes in HTML */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
}

.panel-card {
  border-radius: 1rem;
  padding: 1.5rem; /* Reduced padding further */
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Default min-height if not overridden inline */
  min-height: 250px;
}

.panel-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-primary);
  background: var(--color-bg-white);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 99, 157, 0.05); /* Blue tint */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent circle distortion */
}

.panel-card:hover .card-icon-wrapper {
  background: rgba(0, 99, 157, 0.1);
  transform: scale(1.1);
}

.card-icon {
  font-size: 2rem;
  color: var(--color-brand-primary);
  transition: color 0.3s ease;
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Variant for Textos (Orange) */
.panel-card.card-orange:hover {
  border-color: var(--color-brand-secondary);
}
.panel-card.card-orange .card-icon-wrapper {
  background: rgba(223, 51, 65, 0.05);
}
.panel-card.card-orange .card-icon {
  color: var(--color-brand-secondary);
}
.panel-card.card-orange:hover .card-icon-wrapper {
  background: rgba(223, 51, 65, 0.1);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brand-text);
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--color-brand-gray-light);
  line-height: 1.4;
}

/* Premium Gradient Text */
.premium-gradient-text {
  background: linear-gradient(
    to right,
    var(--color-brand-primary),
    var(--color-brand-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin-top: calc(var(--header-height) + 2rem);
  }
}

/* Secondary Grid */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 4rem; /* Adjusted for desktop default */
  padding: 0 1rem;
}

.secondary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
  cursor: pointer;
  background: var(--glass-bg); /* Ensure background is set */
  border: 1px solid var(--glass-border);
}

.secondary-card:hover {
  transform: translateY(-2px);
  background: var(--color-bg-white);
  border-color: var(--color-brand-primary);
}

.secondary-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 99, 157, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secondary-icon {
  font-size: 1.5rem;
  color: var(--color-brand-primary);
}

.secondary-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--color-text-main);
}

.secondary-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-top: calc(var(--header-height) + 2rem);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .container {
    padding: 0 1.25rem; /* Symmetry fix: Ensure equal padding on container */
  }

  .site-header {
    position: fixed; /* Keep fixed to ensure it stays on top, but we must clear it */
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95); /* More opaque on mobile */
  }

  .site-header .container {
    flex-direction: row; /* Keep row */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between;
    gap: 0.5rem;
  }

  /* Hide the NexWEB badge on mobile as requested */
  .header-badge {
    display: none;
  }

  /* Ensure specific top margin to clear the fixed header on mobile */
  .hero-section {
    margin-top: 140px; /* Concrete value to clear the wrapped or taller header */
    padding: 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    padding: 0; /* Let container handle padding for symmetry */
    margin-top: 2rem !important;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  /* Header text adjustments */
  .header-logo-text {
    font-size: 1.3rem;
  }
}
