/* ==========================================================================
   Suite de Aplicaciones — Telemedellín
   Single stylesheet shared by index.html and respuestas.html.
   Layout: sticky header · hero banner · category sections · app cards.
   Colors come from the tokens below; each category sets its own --accent.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root{
  --green:#75B744;
  --green-dark:#4F8E35;
  --orange:#F19F31;
  --orange-dark:#E46F24;
  --yellow:#F4C430;
  --yellow-dark:#D3A400;

  --ink:#29232d;          /* headings and card names */
  --muted:#69616d;        /* secondary text */
  --accent:var(--green);  /* per-section color, overridden by .cat-* below */
}

/* --- Base ---------------------------------------------------------------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  background:#fff;
  color:var(--ink);
  font-family:"Quicksand","Segoe UI",sans-serif;
}

/* Centered container used by the header, both pages and the footer. */
.wrap{
  width:100%;
  max-width:1580px;
  margin:0 auto;
  padding:0 12px;
}

/* --- Header: logo · Google search · Correo -------------------------------- */
header{
  position:sticky;
  top:0;
  z-index:50;
  padding:10px 0;
  background:#fff;
  border-bottom:1px solid rgba(36,32,43,.06);
  box-shadow:0 5px 18px rgba(77,91,43,.065);
}
.header-inner{display:flex;align-items:center;gap:12px}

.logo-link{display:flex;align-items:center;text-decoration:none}
.logo-img{display:block;width:auto;height:54px}

.search-bar{
  display:flex;
  align-items:center;
  flex:1;
  min-width:180px;
  max-width:640px;
  height:46px;
  margin-left:auto;
  padding:0 5px 0 14px;
  border:1.5px solid #f2dfb9;
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 18px rgba(118,92,44,.07);
  transition:.2s ease;
}
.search-bar:focus-within{
  border-color:rgba(241,159,49,.55);
  box-shadow:0 0 0 4px rgba(244,196,48,.13);
}
.search-bar input{
  flex:1;
  min-width:0;
  padding:0 9px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px;
}
.search-bar input::placeholder{color:#9096a7}
.search-bar button{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,var(--orange),var(--yellow));
  box-shadow:0 7px 16px rgba(241,159,49,.26);
  cursor:pointer;
  transition:.2s ease;
}
.search-bar button:hover{transform:scale(1.05)}

.gmail-link{
  display:flex;
  align-items:center;
  gap:7px;
  padding:11px 17px;
  border:1.5px solid #f6dfc0;
  border-radius:17px;
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  transition:.2s ease;
}
.gmail-link:hover{
  transform:translateY(-1px);
  border-color:rgba(240,90,53,.38);
}
.gmail-link img{display:block;width:36px;height:29px;object-fit:contain}

/* --- Hero banner --------------------------------------------------------- */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  gap:20px;
  min-height:126px;
  margin:14px 0 9px;
  padding:16px 26px;
  border-radius:27px;
  overflow:hidden;
  background:linear-gradient(125deg,#fff6e9 0 34%,#fffbea 34% 67%,#f4f9ee 67%);
  box-shadow:0 10px 28px rgba(89,98,52,.075);
}
.hero-copy{max-width:760px}
.hero-kicker{
  display:inline-flex;
  margin-bottom:5px;
  padding:5px 10px;
  border-radius:999px;
  background:var(--orange);
  color:#fff;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
}
.hero h1{
  margin:0;
  color:#27212c;
  font-size:clamp(30px,3.25vw,46px);
  font-weight:700;
  line-height:.92;
  letter-spacing:-.055em;
}
.hero h1 em{color:var(--green-dark);font-style:normal}
.hero p{
  max-width:630px;
  margin:8px 0 0;
  color:#5d5862;
  font-size:13px;
  font-weight:600;
}

/* Decorative circles floating in the hero. */
.hero-shape{position:absolute;border-radius:999px;opacity:.42}
.shape-a{width:62px;height:62px;right:190px;top:-20px;background:var(--yellow)}
.shape-b{width:38px;height:38px;right:170px;bottom:12px;background:var(--green-dark)}
.shape-c{width:26px;height:62px;right:300px;bottom:-18px;border-radius:20px;background:var(--orange);transform:rotate(35deg)}

/* --- Category sections --------------------------------------------------- */
section{
  position:relative;
  overflow:hidden;
  margin-top:10px;
  padding:16px;
  border:1px solid rgba(92,99,61,.055);
  border-radius:22px;
  box-shadow:0 7px 20px rgba(68,76,44,.045);
}
.cat-admin      {--accent:#E98228;background:#fffaf3}
.cat-produccion {--accent:var(--green);background:#f8fbf4}
.cat-formularios{--accent:var(--orange-dark);background:#fff8f2}
.cat-respuestas {--accent:var(--green-dark);background:linear-gradient(135deg,#f7fbf3,#fffaf0)}
/* Sections holding two categories side by side: split background. */
.cat-documental-datos{background:linear-gradient(90deg,#f7faf3 0 49.5%,#fffdf1 50.5% 100%)}
.cat-otros-soporte   {background:linear-gradient(90deg,#fff9f2 0 49.5%,#f7fbf4 50.5% 100%)}
.cat-directorio-dashboards{background:linear-gradient(90deg,#fffdf1 0 49.5%,#f6fbf4 50.5% 100%)}
.cat-ia         {--accent:var(--orange-dark);background:linear-gradient(120deg,#fffaf3,#f9fbf3)}

/* Decorative circles floating at the right edge of every section, tinted with
   the section accent. Purely visual: kept behind the content and click-through. */
.sec-deco{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  border-radius:inherit;
  overflow:hidden;
}
.sec-deco i{position:absolute;display:block;border-radius:999px}
.deco-ring{
  width:300px;
  height:300px;
  right:-92px;
  top:-120px;
  border:30px solid color-mix(in srgb,var(--accent) 13%,transparent);
}
.deco-dot{
  width:104px;
  height:104px;
  right:158px;
  bottom:-56px;
  background:color-mix(in srgb,var(--accent) 9%,transparent);
}
/* Everything except the decoration stacks above it. */
section > *:not(.sec-deco){position:relative;z-index:1}

/* Heading: title + description, with a vertical accent bar on the left. */
.section-head{position:relative;margin:0 0 11px;padding-left:15px}
.section-head:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:6px;
  height:100%;
  border-radius:4px;
  background:var(--accent);
}
.section-title{margin:0;font-size:19px;font-weight:700;line-height:1.1;letter-spacing:-.035em}
.section-why{margin:5px 0 0;color:var(--muted);font-size:12px;font-weight:600;line-height:1.35}

/* Two self-contained categories inside one section. */
.category-pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.category-group{
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:18px;
  background:rgba(255,255,255,.48);
}
.group-documental{--accent:var(--green-dark)}
.group-datos     {--accent:var(--yellow-dark)}
.group-otros     {--accent:var(--orange)}
.group-soporte   {--accent:var(--green)}
.group-directorio{--accent:var(--yellow-dark)}
.group-dashboards{--accent:var(--green)}

/* --- App cards ----------------------------------------------------------- */
.grid4,
.category-cards{display:grid;gap:10px}
.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}
.category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}

.card{
  position:relative;
  display:flex;
  align-items:center;
  gap:13px;
  min-height:112px;
  padding:12px 44px 12px 13px;
  border:2px solid rgba(255,255,255,.92);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 5px 14px rgba(65,74,43,.055);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
/* "open in new tab" badge in the top-right corner */
.card:after{
  content:"↗";
  position:absolute;
  top:10px;
  right:10px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.card img{
  flex:0 0 76px;
  width:76px;
  height:76px;
  object-fit:contain;
  filter:drop-shadow(0 6px 8px rgba(58,62,39,.10));
  transition:transform .2s ease;
}
/* Logos that are meant to be shown as a circle. */
.card.logo-circular img{flex-basis:82px;width:82px;height:82px;object-fit:cover;border-radius:50%}
.card-name{flex:1;font-size:15px;font-weight:700;line-height:1.18;letter-spacing:-.025em}
.card:hover{
  transform:translateY(-4px);
  border-color:#fff;
  background:#fff;
  box-shadow:0 22px 42px color-mix(in srgb,var(--accent) 18%,transparent);
}
.card:hover img{transform:scale(1.06)}
.card:focus-visible{outline:3px solid rgba(240,90,53,.32);outline-offset:2px}

/* "Ver respuestas" pill on the cards of respuestas.html */
.response-tag{
  position:absolute;
  right:13px;
  bottom:10px;
  padding:4px 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 11%,white);
  color:var(--accent);
  font-size:9px;
  font-weight:700;
}

/* --- Buttons and footer -------------------------------------------------- */
.bottom-strip{display:flex;justify-content:center;margin:17px 0 18px}
.prog-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:15px 30px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--orange),var(--yellow));
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  box-shadow:0 13px 25px rgba(241,159,49,.25);
  transition:.2s ease;
}
.prog-btn:hover{transform:translateY(-2px)}

/* Link between the two pages (green going out, orange coming back). */
.responses-fab{
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  margin:2px 22px 20px auto;
  padding:10px 14px 10px 10px;
  border:2px solid rgba(255,255,255,.92);
  border-radius:999px;
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  box-shadow:0 14px 30px rgba(79,142,53,.28);
  transition:transform .2s ease;
}
.responses-fab:hover{transform:translateY(-4px)}
.responses-fab.is-back{background:linear-gradient(135deg,var(--orange-dark),var(--yellow))}
.fab-icon{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#fff;
  color:var(--green-dark);
  font-size:16px;
}
.responses-fab.is-back .fab-icon{color:var(--orange-dark)}

footer{
  padding:14px;
  border-top:1px solid rgba(92,99,61,.10);
  color:var(--muted);
  text-align:center;
  font-size:12px;
  font-weight:600;
}

/* --- Responses page: warmer hero ----------------------------------------- */
.responses-hero{background:linear-gradient(125deg,#f5faef 0 34%,#fff8ee 34% 67%,#fffbed 67%)}
.responses-hero .hero-kicker{background:var(--green-dark)}
.responses-hero h1 em{color:var(--orange-dark)}

/* --- Responsive ---------------------------------------------------------- */
/* Laptops / large tablets (incl. iPad Pro landscape at 1366px):
   4 columns squeeze the long app names, so drop to 2. */
@media (max-width:1400px){
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card img{flex-basis:68px;width:68px;height:68px}
  .card.logo-circular img{flex-basis:74px;width:74px;height:74px}
  .card-name{font-size:14px}
}

/* Tablets (iPad portrait and landscape): one app per row, full width, so
   long names like "Reporte de Daños y/o Pérdidas de Equipos" stay readable.
   Paired categories stack instead of sharing the row. */
@media (max-width:1024px){
  .grid4,
  .category-cards{grid-template-columns:1fr}
  .category-pair-grid{grid-template-columns:1fr;gap:12px}
  .card-name{font-size:15px}
}

@media (max-width:900px){
  .hero{min-height:120px;padding:16px 22px}
  .card{min-height:104px;padding:10px 37px 10px 10px;gap:10px}
  .card img{flex-basis:62px;width:62px;height:62px}
  .card.logo-circular img{flex-basis:68px;width:68px;height:68px}
}

@media (max-width:700px){
  /* Header becomes two rows: logo + Correo on top, search below. */
  .header-inner{display:grid;grid-template-columns:1fr auto;gap:8px 10px}
  .logo-link{grid-area:1/1}
  .gmail-link{grid-area:1/2;justify-self:end;padding:7px 10px;font-size:12px}
  .search-bar{grid-area:2/1/2/-1;width:100%;max-width:none;margin:0}
  .logo-img{height:42px}

  .hero{min-height:108px;margin-top:9px;padding:14px 16px;border-radius:21px}
  .hero h1{font-size:clamp(27px,8vw,34px);line-height:.96}
  .hero p{font-size:12px;line-height:1.35}
  .hero-shape{opacity:.25}

  section{margin-top:8px;padding:13px 10px;border-radius:18px}
  .section-title{font-size:17px;line-height:1.15}
  .section-why{font-size:11.5px}
  .category-group{padding:10px 8px 8px;border-radius:15px}

  .grid4,
  .category-cards{gap:8px}
  .card{min-height:88px;padding:9px 39px 9px 10px;gap:11px;border-radius:16px}
  .card img{flex-basis:58px;width:58px;height:58px}
  .card.logo-circular img{flex-basis:63px;width:63px;height:63px}
  .card-name{font-size:13.5px;line-height:1.2}
  .card:after{top:9px;right:9px;width:23px;height:23px;font-size:11px}

  .prog-btn{padding:11px 18px;font-size:12px;border-radius:14px}
  .responses-fab{margin:2px 10px 14px auto;padding:8px 11px 8px 8px;font-size:12px}
  footer{padding:11px 12px;font-size:10px}
}

@media (max-width:440px){
  .logo-img{height:37px}
  .gmail-link{padding:6px;font-size:0}   /* icon only, label hidden */
  .hero{min-height:100px;padding:13px 15px}
  .hero h1{font-size:26px}
  .hero p{font-size:11px}
  section{padding:13px 9px}
  .card{min-height:82px;padding:9px 32px 9px 8px;gap:8px}
  .card img{flex-basis:51px;width:51px;height:51px}
  .card.logo-circular img{flex-basis:56px;width:56px;height:56px}
  .card-name{font-size:12.3px}
  .response-tag{display:none}
}

/* Respect the OS "reduce motion" setting. */
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important;transform:none!important}
}
