/* Diseno para KidsKoans - Literatura Infantil y Fabulas de Naturaleza */
:root {
  --kid-teal: #028090;
  --kid-coral: #f76c5e;
  --kid-yellow: #f5af19;
  --kid-cream: #fbfbf8;
  --kid-surface: #ffffff;
  --kid-slate: #2d3142;
  --kid-border: #e0e4e8;
}

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

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
  background-color: var(--kid-cream);
  color: var(--kid-slate);
  font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
}

header {
  background: #ffffff;
  border-bottom: 2px solid #eef2f5;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--kid-teal);
  font-size: 22px;
  font-weight: 800;
}

.logo-badge {
  background: var(--kid-coral);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 16px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #4f5d75;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--kid-coral);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--kid-teal);
  color: var(--kid-teal);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.hero-banner {
  background: linear-gradient(rgba(2, 128, 144, 0.9), rgba(2, 128, 144, 0.95)), url('../media/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 85px 20px;
  text-align: center;
}

.hero-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(247, 108, 94, 0.25);
  border: 1px solid var(--kid-coral);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-title {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 800;
}

.hero-desc {
  font-size: 17px;
  color: #e6f8fa;
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--kid-coral);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}

.btn-outline {
  display: inline-block;
  padding: 13px 26px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 25px;
  margin-left: 12px;
}

.content-section {
  padding: 65px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 30px;
  color: var(--kid-teal);
  margin-bottom: 12px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.card-item {
  background: var(--kid-surface);
  border: 1px solid var(--kid-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.card-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 22px;
}

.card-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--kid-teal);
}

.card-content p {
  color: #4f5d75;
  font-size: 14px;
  margin-bottom: 14px;
}

.interactive-box {
  background: #ffffff;
  border: 2px solid var(--kid-yellow);
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 800px;
  margin: 35px auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--kid-slate);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kid-border);
  border-radius: 8px;
  font-size: 16px !important;
  color: var(--kid-slate);
  background: #ffffff;
}

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--kid-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #ffffff;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--kid-border);
  font-size: 14px;
}

th {
  background: #f0f7f8;
  color: var(--kid-teal);
  font-weight: 700;
}

footer {
  background: #1f2d3d;
  color: #b0bec5;
  padding: 55px 20px 24px;
  border-top: 3px solid var(--kid-coral);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 35px;
}

.footer-col h4 {
  color: var(--kid-yellow);
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  color: #cfd8dc;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: #cfd8dc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 13px;
  color: #90a4ae;
}

@media (max-width: 992px) {
  .header-inner, header > div {
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }
  .nav-toggle {
    display: block !important;
  }
  nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    border-top: 1px solid var(--kid-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  nav.active {
    display: block !important;
  }
  nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero-title {
    font-size: 28px;
  }
}
