/* ===== css/estilo.css ===== */
/* Personalización sobre Picnic CSS + estilos propios para diseño moderno innovador */

:root {
  /* Paleta de colores */
  --logo-dark: #1d2226;
  --logo-red: #b32c29;
  --accent-blue: #093a62;
  --accent-green: #124228;
  --bg-light: #d2d2d0;
  --text-main: #040605;
  --text-regular: #000000;
  --white: #ffffff;
  --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 25px 30px -8px rgba(0, 0, 0, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.12);
  --border-radius-card: 28px;
  --border-radius-img: 24px;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-width: 270px;
}

/* Reset suave y tipografía base */
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  color: var(--text-regular);
  line-height: 1.7;
  font-weight: 400;
}

/* Layout principal: navegación lateral + contenido */
.landing-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Navegación lateral fija ===== */
.side-nav {
  width: var(--nav-width);
  background: linear-gradient(175deg, #1d2226 0%, #0e1215 100%);
  color: #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.2rem 1.8rem;
  box-shadow: 8px 0 24px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow-y: auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.nav-logo {
  width: 90px;
  height: auto;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  border-radius: 16px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--logo-red);
  padding-bottom: 0.7rem;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  transition: all 0.25s ease;
  background: transparent;
}

.nav-link i {
  font-size: 1.2rem;
  width: 22px;
  color: var(--logo-red);
  transition: color 0.2s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  transform: translateX(4px);
}

.nav-link.active {
  background: rgba(179,44,41,0.2);
  color: white;
  border-left: 4px solid var(--logo-red);
  border-radius: 10px;
}

.nav-footer {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.social-btn {
  color: #ccc;
  font-size: 1.4rem;
  transition: 0.2s;
  background: rgba(255,255,255,0.05);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-btn:hover {
  color: var(--logo-red);
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Contenido principal */
.main-content {
  margin-left: var(--nav-width);
  width: calc(100% - var(--nav-width));
  background-color: var(--bg-light);
}

/* Banda CTA superior */
.top-cta-band {
  background: linear-gradient(105deg, #0a1f2e 0%, #093a62 100%);
  color: #f0f4f8;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-accent {
  color: var(--logo-red);
  font-size: 1.2rem;
}

.cta-link {
  color: #f2c94c;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
  border-bottom: 1px dotted #f2c94c;
}

.cta-link:hover {
  color: white;
}

/* Secciones generales */
.content-section {
  padding: 3.5rem 2.5rem;
  max-width: 1300px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-card);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Tarjeta con relieve 3D */
.card-3d {
  background: #fafbfc;
  border: 1px solid rgba(9,58,98,0.08);
  box-shadow: var(--shadow-3d);
  transition: transform 0.25s ease, box-shadow 0.3s;
  border-radius: var(--border-radius-card);
}

.card-3d:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Grid flexible para secciones con imagen */
.section-grid {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.section-grid.reverse {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1 1 55%;
}

.section-image {
  flex: 1 1 38%;
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-img);
  box-shadow: 0 18px 28px -10px rgba(0,0,0,0.25);
  transition: transform 0.3s;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.img-rounded-3d {
  border-radius: var(--border-radius-img) !important;
  box-shadow: 0 15px 25px -8px rgba(0,0,0,0.2);
}

.img-rounded-3d:hover {
  transform: scale(1.01);
}

/* Títulos de sección */
.section-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 6px solid var(--logo-red);
  padding-left: 1.2rem;
}

.title-icon {
  color: var(--accent-blue);
  font-size: 2rem;
}

.centered-title {
  justify-content: center;
  border-left: none;
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 0.7rem;
  margin-bottom: 2.2rem;
}

/* Grid de cards (usado en "Qué encontrará") */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -10px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  border: 1px solid #e9edf2;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(1deg);
  box-shadow: 0 30px 35px -12px rgba(9,58,98,0.25);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius-img);
  border-top-right-radius: var(--border-radius-img);
}

.card-body {
  padding: 1.5rem 1.2rem;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-main);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body h3 i {
  color: var(--logo-red);
}

.card-body p {
  color: #1e1e1e;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sección de conexión destacada */
.highlight-connect {
  background: linear-gradient(145deg, #f6f9fc 0%, #eef2f7 100%);
  border-left: 8px solid var(--accent-green);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.8rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 8px 16px rgba(9,58,98,0.3);
}

.btn-primary:hover {
  background: #0b4a72;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: white;
}

.motto-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--logo-red);
  margin-top: 1.4rem;
}

/* Footer */
.footer-band {
  background: #1d2226;
  color: #dddddd;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-link {
  color: #f0c45a;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.small-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.8rem;
}

/* Responsive: apilar navegación en móvil o tablet */
@media (max-width: 900px) {
  .landing-layout {
    flex-direction: column;
  }

  .side-nav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .section-grid {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 2rem 1.2rem;
  }
}