/* Reset & base */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  background-color:#F2F9FE;
  margin:0;
  color:#5E6489;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== Hero: text + image ===== */
.LandingPageContainer{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

/* columns */
.RiskorPresentationText,
.RiskorPresentationImage{
  flex: 1 1 420px;           /* mínimo cómodo; luego crecen */
  display:flex;
  flex-direction:column;
  border-radius:16px;
}

/* left column (text) */
.RiskorPresentationText{ padding: 1.5em; }

.RiskorTitle h1{
  margin:0;
  line-height:1.1;
  font-weight:800;
  font-size: clamp(2.2rem, 6vw, 5rem);  /* “Risk / Organization” grande y fluido */
}
.RiskorTitle h4{
  margin: clamp(1rem, 3vw, 2.2rem) 0 0 0;
  font-weight:500;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color:#5E6489;
}

/* CTAs */
.RowButtonsRiskor{
  display:flex;
  gap: clamp(.75rem, 2.2vw, 1.25rem);
  flex-wrap:wrap;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.btnPrimary, .btnDetalles{
  padding: clamp(12px, 2.2vw, 15px) clamp(20px, 4vw, 35px);
  border-radius:12px;
  border:1px solid #dfe5ff;
  background:#fff;
  color:#6C63FF;
  font-weight:600;
  cursor:pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btnPrimary{ background:#6C63FF; color:#fff; border-color: transparent; }
.btnPrimary:hover{ background:#6C63FF; transform:scale(1.02); box-shadow:0 8px 24px rgba(108,99,255,.25); }
.btnDetalles:hover{ background:#F2F9FE; transform:translateY(-2px) scale(1.01); }

/* right column (image) */
.RiskorPresentationImage{
  justify-content:center;
  align-items:center;
  padding:0;
}
.RiskorPresentationImage img{
  width: 100%;
  max-width: 540px;              /* tope en desktop */
  height:auto;
  display:block;
  margin:0 auto;
}

/* ===== Centered section titles ===== */
.importantText{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top: clamp(1rem, 4vw, 2rem);
}
.importantText h1{
  max-width: 900px;              /* controla “dónde parte” en 2 líneas bonitas */
  text-align:center;
  font-size: clamp(1.4rem, 3.8vw, 2.4rem);
  color:#5E6489;
  margin:0 auto;
  line-height:1.3;
  font-weight:700;
}

/* ===== Cards ===== */
.cards{
  width:100%;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 46vw, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  justify-items: center; /* centra columnas cuando hay espacio */
}

.card{
  color:#6C63FF;
  background: linear-gradient(to bottom, #FFFFFF 0%, #F2F9FE 100%);
  width: 100%;
  max-width: clamp(240px, 90vw, 350px);
  height: clamp(220px, 34vw, 350px);
  padding: clamp(16px, 2.6vw, 30px);
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow: 0px 10px 75px rgba(120,132,237,0.25);
}

.card .icon{
  width: clamp(72px, 12vw, 110px);
  height: clamp(72px, 12vw, 110px);
  display:grid; 
  place-items:center;
  margin-bottom: clamp(12px, 2vw, 22px);
}

.card .icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card > img{
  width: clamp(72px, 12vw, 110px);
  height: clamp(72px, 12vw, 110px);
  object-fit: contain;
  display: block;
  margin: clamp(10px, 2vw, 20px) 0;
}

.card p{
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color:#6C63FF;
  margin: 0;
  min-height: clamp(2.4em, 4vw, 3.2em);
  display:flex; 
  align-items:center; 
  justify-content:center;
}

/* ===== Media queries extras ===== */
@media (max-width: 1024px){ /* tablets y laptops pequeñas */
  .cards{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .card{
    max-width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px){ /* tablets en vertical */
  .cards{
    grid-template-columns: repeat(2, 1fr);
  }
  .card{
    max-width: 260px;
    height: 260px;
    padding: 20px;
  }
  .card .icon{
    width: 90px;
    height: 90px;
  }
  .card p{
    font-size: 1rem;
  }
}

@media (max-width: 480px){ /* móviles */
  .cards{
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card{
    max-width: 100%;
    height: auto; /* deja que crezca según contenido */
    padding: 18px;
  }
  .card .icon{
    width: 72px;
    height: 72px;
  }
  .card p{
    font-size: 0.95rem;
    margin-top: 0.8rem;
  }
}


/* ===== Showcase image ===== */
.ThisIsRiskor{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top: clamp(1rem, 4vw, 2em);
}
.ThisIsRiskor img{
  width: min(100%, 980px);
  height:auto;
  display:block;
  border-radius: 16px;
  box-shadow: 0px 10px 75px rgba(120,132,237,0.25);
}

/* ===== Bottom CTA ===== */
.LandingPageContainer > .btnPrimary{
  margin-top: clamp(1rem, 3.5vw, 2rem);
}

/* ===== Footer ===== */
footer{
  width:100%;
  background-color:#7884ED;
  color:#fff;
  padding: 1.2em;
  text-align:center;
  font-size: .95rem;
}

/* ===== Fine-tuning breakpoints (mínimos y claros) ===== */

/* 900px: pasa hero a columna y centra botones al 100% si hace falta */
/* ===== Responsive re‑layout (swap image/text) ===== */
@media (max-width: 900px){
  /* 1) Imagen primero */
  .RiskorPresentationImage{ 
    order: -1;                 /* sube la imagen arriba */
    margin-bottom: 1.25rem;    /* respirito */
  }

  /* 2) Centrar textos y botones */
  .RiskorPresentationText{ 
    align-items: center; 
    text-align: center; 
  }
  .RiskorTitle h1{ 
    font-size: clamp(1.8rem, 8vw, 2.4rem); 
    line-height: 1.15; 
  }

  /* 3) Quitar el subtítulo (opción A) */
  .RiskorTitle h4{ 
    display: none; 
  }

  /* 4) Botones más cómodos en táctil */
  .RowButtonsRiskor{ 
    justify-content: center; 
    gap: .9rem; 
    width: 100%;
  }
  .RowButtonsRiskor .btnPrimary,
  .RowButtonsRiskor .btnDetalles{
    width: min(100%, 420px);
    padding: 14px 22px;
  }

  /* 5) La imagen se ajusta fluida y centrada */
  .RiskorPresentationImage img{
    width: min(100%, 540px);
    height: auto;
    display: block;
    margin: 0 auto;
  }
}


/* 560px: botones a full width para tacto cómodo */
@media (max-width: 560px){
  .RowButtonsRiskor{ gap:.75rem; }
  .btnPrimary, .btnDetalles{ width:100%; }
}

/* 380px: tipografías un poco más compactas */
@media (max-width: 380px){
  .RiskorTitle h1{ font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .importantText h1{ font-size: clamp(1.2rem, 6vw, 1.6rem); }
}
