/* ==========================================================================
   EDUCAYSOFT - Hoja de Estilos Corporativa Moderna
   Educación, Creación y Mantenimiento de Software
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --primary-subtle: #f0f9ff;
  --secondary: #0f766e;
  --secondary-light: #14b8a6;
  --accent: #6366f1;
  --dark-bg: #0b1329;
  --dark-surface: #111e38;
  --dark-card: #172648;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Top Notification Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #0b1329 0%, #1e293b 100%);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
  margin-right: 6px;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Sticky Navbar */
.navbar-educaysoft {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  padding: 14px 0;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.brand-text-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: block;
}

.brand-text-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.nav-link-custom {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link-custom:hover {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: #090e17 url('../img/hero_educaysoft.jpg') no-repeat center center / cover;
  color: #ffffff;
  padding: 100px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 14, 23, 0.92) 0%,
    rgba(15, 23, 42, 0.85) 45%,
    rgba(2, 132, 199, 0.65) 100%
  );
  backdrop-filter: blur(2px);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 650px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Custom Buttons */
.btn-tech-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.5);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-tech-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.65);
  color: #ffffff;
}

.btn-tech-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-tech-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-tech-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-tech-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Common Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-subtle);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Feature & Culture Cards */
.culture-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.culture-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(2, 132, 199, 0.35);
}

.culture-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.culture-card:hover .culture-icon-wrapper {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.06);
}

/* Image with Floating Badges */
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-frame:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #ffffff;
}

/* Strategic Pillars */
.pillar-row {
  margin-bottom: 80px;
  align-items: center;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.pillar-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.badge-edu {
  background: #fef3c7;
  color: #b45309;
}

.badge-dev {
  background: #e0e7ff;
  color: #4338ca;
}

.badge-ops {
  background: #ccfbf1;
  color: #0f766e;
}

.pillar-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 0.98rem;
}

.pillar-list li i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* Ecosystem / Ribbon Modern Cards */
.ecosystem-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  position: relative;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.platform-thumb-container {
  height: 170px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.platform-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.platform-card:hover .platform-thumb-container img {
  transform: scale(1.08);
}

.platform-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.platform-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.platform-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits Section */
.benefit-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(20, 184, 166, 0.12) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.benefit-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Donation & Solidarity Fund Box */
.support-box {
  background: linear-gradient(135deg, #0b1329 0%, #172648 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(11, 19, 41, 0.4);
}

.support-box::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.bank-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.account-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(56, 189, 248, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: monospace;
  font-size: 1.15rem;
  color: #38bdf8;
  font-weight: 700;
}

.btn-copy-account {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-copy-account:hover {
  background: #38bdf8;
  color: #0b1329;
}

/* FAQ Accordion */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}

.accordion-custom .accordion-button {
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  padding: 18px 24px;
  font-size: 1.05rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background-color: var(--primary-subtle);
  box-shadow: none;
}

.accordion-custom .accordion-body {
  color: var(--text-muted);
  line-height: 1.65;
  padding: 20px 24px;
  font-size: 0.96rem;
}

/* Contact Form Card */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.form-control-custom, .form-select-custom {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all var(--transition-fast);
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* Footer */
.footer-educaysoft {
  background-color: #080d1a;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-educaysoft h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Toast alert for copy */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 70px 0 60px;
  }
  .support-box {
    padding: 30px 20px;
  }
  .contact-card {
    padding: 24px;
  }
}
