/* ====================================================
   VISUAL INCUBATION — Main Stylesheet
   Colores reales del sitio original:
     --bg:         #ffffff
     --text:       rgb(65, 65, 65)  →  #414141
     --accent:     rgb(255, 68, 25) →  #ff4419
     --dark:       #000000
   Fuentes reales:
     Headings: "Libre Baskerville"
     Body:     "Avenir" / sans-serif
==================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Avenir', 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #414141;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  width: 90%;
  max-width: 1750px;
  margin: 0 auto;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .logo-fallback {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.3rem;
  color: #414141;
  letter-spacing: 2px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #414141;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #ff4419;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ff4419;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-lang {
  border: 1.5px solid #ff4419;
  padding: 4px 12px;
  border-radius: 2px;
  color: #ff4419;
  font-size: 0.75rem;
}

.nav-lang:hover {
  background: #ff4419;
  color: #fff;
}

.nav-lang::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #414141;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: fadeInUp 0.9s ease forwards;
}

.hero-greeting {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 400;
  color: #414141;
  letter-spacing: 10px;
  line-height: 1;
}

.hero-logo img {
  max-width: 420px;
  width: 90vw;
  height: auto;
}

.hero-logo .logo-fallback {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #414141;
}

.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  animation: bounce 2s infinite;
  color: #414141;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.scroll-arrow:hover { opacity: 1; }

.scroll-arrow img {
  width: 24px;
  height: auto;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-white  { background: #ffffff; }
.section-light  { background: #f8f8f8; }
.section-dark   { background: #ffffff; }
.section-mid    { background: #f4f4f4; }
.section-contact { background: #ffffff; }

/* Alternate backgrounds for visual rhythm */
.section:nth-of-type(even) {
  background: #f8f8f8;
}

.section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-inner.reverse {
  direction: rtl;
}

.section-inner.reverse > * {
  direction: ltr;
}

.section-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: #414141;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title.centered { text-align: center; }

.section-divider {
  width: 40px;
  height: 2px;
  background: #ff4419;
  margin-bottom: 2rem;
}

.section-divider.centered {
  margin: 0 auto 2rem;
}

.section-text p {
  margin-bottom: 1.3rem;
  color: #414141;
  font-size: 1rem;
  line-height: 1.85;
}

.section-text p:last-of-type {
  margin-bottom: 2rem;
}

.section-text strong {
  color: #000;
  font-weight: 600;
}

.section-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
  color: #414141;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Section arrow */
.section-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 2.5rem auto 0;
  color: rgba(65, 65, 65, 0.35);
  transition: color 0.2s ease;
  animation: bounce 2.5s infinite;
}

.section-arrow:hover { color: #ff4419; }

.section-arrow img { width: 22px; height: auto; }
.section-arrow svg { width: 22px; height: 22px; }

/* ---------- SECTION IMAGES ---------- */
.section-image,
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image img,
.about-image img {
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  width: 100%;
  height: auto;
}

/* ---------- RECURSO 3 — Banner decorativo ---------- */
.recurso-banner {
  width: 100%;
  margin: 2rem 0 0;
  overflow: hidden;
}

.recurso-banner img {
  width: 100%;
  height: auto;
}

/* ---------- BRAND LOGOS GRID ---------- */
.section-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.brand-badge {
  background: #ffffff;
  border: 1.5px solid rgba(255, 68, 25, 0.25);
  border-radius: 3px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ff4419;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.brand-badge:hover {
  background: rgba(255, 68, 25, 0.05);
  border-color: #ff4419;
}

/* ---------- BOOKS GRID ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.book-card {
  background: #ffffff;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: #ff4419;
  box-shadow: 0 8px 24px rgba(255, 68, 25, 0.1);
}

.book-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.book-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #414141;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.book-author {
  font-size: 0.8rem;
  color: #ff4419;
  letter-spacing: 0.3px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #ff4419;
  color: #ffffff;
}

.btn-primary:hover {
  background: #e33a12;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 68, 25, 0.3);
}

/* ---------- CONTACT FORM ---------- */
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: none;
}

.form-group input,
.form-group textarea {
  background: #f9f9f9;
  border: 1.5px solid #e0e0e0;
  border-radius: 3px;
  padding: 0.95rem 1.1rem;
  color: #414141;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaaaaa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff4419;
  background: #fff;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53935;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-submit .btn {
  min-width: 160px;
}

.form-success,
.form-error {
  display: none;
  text-align: center;
  padding: 1rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-success {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
}

.form-error {
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: #c62828;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #111111;
  color: #aaaaaa;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-logo .logo-text-footer {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #ff4419; }

.footer-copy {
  font-size: 0.75rem;
  color: #444;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 275px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e8e8e8;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav-menu.open { right: 0; }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-link { font-size: 1rem; }

  .section-inner,
  .section-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row   { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .section    { padding: 70px 0; }

  .footer-nav { gap: 1rem; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: 1fr 1fr; }
  .section    { padding: 55px 0; }
  .hero-greeting { letter-spacing: 5px; }
}