/* css/styles.css */

:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --border: #e5e7eb;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

/* body */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  height: 80px;
}

/* Nav */
.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.btn.secondary {
  background: transparent;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-light {
  background: #ffffff;
}

.section-gray {
  background: #f8fafc;
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-gray h2 {
  margin-bottom: 24px;
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 20px;
  margin-top: 120px;
  background: #fafafa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 16px;
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

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

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* FOOTER WHATSAPP LINK */

.footer-whatsapp {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-whatsapp:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* GRID BASE (REUTILIZABLE) */
.grid {
  display: grid;
  gap: 24px;
}

/* CARD BASE (REUTILIZABLE) */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  min-height: 240px;
  padding: 20px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;

  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.card h3 {
  font-size: 15px;
  text-align: center;
  line-height: 1.3;
}

/* FIBER WRAPPER (contenedor padre) */

.fiber-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* GRID INTERNO */

.fiber-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* MEGA CONTENEDOR (GLOBAL) */
.mega-container {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  padding: 24px;
  margin-top: 16px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );

  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}

/* active wrapper */
.active-wrapper {
  margin-top: 24px;
}

/* active grid */
.active-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* BANNERS */
.fe-banner-line{
  display: block;
  margin: 12px auto;
  width: min(1200px, calc(100% - 40px));
  border-radius: 12px;
  text-decoration: none;
  color: inherit;

  background: white;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 6px 20px rgba(15,23,42,.05);

  transition: all .2s ease;
}

.fe-banner-line:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.fe-banner-line__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
}

.fe-banner-line__text{
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.fe-banner-line__text strong{
  font-size: 13px;
}

.fe-banner-line__text span{
  font-size: 11px;
  opacity: .7;
}

.fe-banner-line__carousel{
  width: 340px;
  overflow: hidden;
}

.fe-banner-line__track{
  display: flex;
  gap: 10px;
  width: max-content;
  animation: fe-line-scroll 18s linear infinite;
}

.fe-banner-line__track img{
  width: 75px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,.08);
  background: white;
  padding: 6px;
}

/* responsives */
@media (max-width: 900px) {

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .active-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px){
  .fe-banner-line__carousel{
    width: 160px;
  }

  .fe-banner-line__track img{
    width: 45px;
    height: 30px;
  }
}

/* animación */
@keyframes fe-line-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* =========================
   EXPANSIÓN LIMPIA
   ========================= */

.expansion-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.expansion-container.active {
  display: block;
  animation: expansionIn 0.35s ease forwards;
}

.expansion-panel {
  background: white;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

.expansion-panel img {
  width: 100%;
  object-fit: contain;
}

.expansion-content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.expansion-content p {
  color: var(--muted);
}

.expansion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.expansion-back {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.expansion-back:hover {
  transform: translateX(-3px);
}

@keyframes expansionIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* BOTÓN WHATSAPP */

.btn-whatsapp {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;

  background: #25D366;
  color: white;
  font-weight: 600;

  border-radius: 8px;
  text-decoration: none;

  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================
   PATCHCORD CONFIGURADOR
   ========================= */

.pc-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.pc-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pc-form select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.pc-result {
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent);
}

/* botón deshabilitado */

.btn-disabled {
  margin-top: 10px;
  padding: 10px;
  background: #ccc;
  border: none;
  border-radius: 8px;
  cursor: not-allowed;
}

/* =========================
   BOMAKER PAGE
   ========================= */

.bomaker-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.bomaker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bomaker-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bomaker-images img {
  width: 100%;
  border-radius: 12px;
}

.bomaker-content p {
  color: var(--muted);
  line-height: 1.6;
}

.bomaker-highlight {
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .bomaker-grid {
    grid-template-columns: 1fr;
  }
}

.pc-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pc-image {
  max-width: 420px;
  width: 100%;
}

.pc-legend {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

