:root {
  --bg: #0f172a;
  --card: #283750;
  --under: #314f88;
  --primary: #38bdf8;
  --accent: #22c55e;
  --text: #e5e7eb;
  --danger: #f87171;
  --bg0:#0b1220;
  --bg1:#0f172a;
  --stroke: rgba(255,255,255,.12);
  --muted: rgba(229,231,235,.75);
  --accent2: #38bdf8;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --border: rgba(0,0,0,.22);
  --ink: #111;
  --panel: rgba(0,0,0,.03);
  --ball: hsl(0 90% 55%);

  --cardW: 420px;
  --cardH: 220px;

  --showRadius: 4;    
  --navOffset: -22px;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

#madeby{
  margin: 0;
  color: var(--under)
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.about{
  padding: 80px 16px;
  background:
    radial-gradient(900px 420px at 10% 20%, rgba(56,189,248,.18), transparent 10%),
    radial-gradient(850px 420px at 90% 10%, rgba(34,197,94,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}

.about__wrap{
  max-width: 980px;
  margin: 0 auto;
}

.about__card{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: center;

  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: aboutIn 700ms cubic-bezier(.2,.9,.2,1) forwards;
}

.about__media{
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeSlide 650ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 120ms;
}

.about__content{
  opacity: 0;
  transform: translateX(10px);
  animation: fadeSlide 650ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 190ms;
}

.about__photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,.22);

  background:
    radial-gradient(220px 220px at 30% 25%, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(220px 220px at 70% 80%, rgba(34,197,94,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));

  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(229,231,235,.85);
  font-weight: 700;
  letter-spacing: .2px;

  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.about__photo img{
  height: 400px;
  transform: translate(-10%,-10%);
}

.about__card:hover .about__photo{
  transform: translateY(-4px) rotate(-.4deg);
  border-color: rgba(56,189,248,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.about__eyebrow{
  margin: 0 0 6px;
  font-weight: 700;
  color: rgba(56,189,248,.95);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
}

.about__name{
  margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.15;
}

.about__headline{
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 600;
}

.about__roles{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.about__role{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);

  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.about__role:hover{
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.32);
  background: rgba(0,0,0,.24);
}

.role__title{
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.role__stack{
  display: inline-block;
  color: rgba(229,231,235,.78);
}

.about__pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);

  transition: transform 180ms ease, border-color 180ms ease;
}

.pill:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.40);
}

@keyframes aboutIn{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlide{
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px){
  .about__card{
    grid-template-columns: 1fr;
  }
  .about__media{
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce){
  .about__card,
  .about__media,
  .about__content{
    animation: none;
    opacity: 1;
    transform: none;
  }
  .about__photo,
  .about__role,
  .pill{
    transition: none;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 18px 16px;
  color: #e5e7eb;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  transform: translateY(10px) scale(0.985);
  transition: transform 200ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.modal__text {
  margin: 0 0 14px;
  opacity: 0.85;
  line-height: 1.35;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn--primary {
  background: #38bdf8;
  color: #020617;
}

.btn--ghost:hover { filter: brightness(1.1); }
.btn--primary:hover { filter: brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__dialog { transition: none; }
}

.header {
  text-align: center;
  padding: 2rem 1rem;
}

.header h1 {
  margin: 0;
  color: var(--primary);
}

.slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.slides {
  width: 600px;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.nav {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 4rem;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.btn {
  background: var(--primary);
  border: none;
  color: #020617;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--accent);
}



.alert button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.alert-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; 
  gap: 10px;
  z-index: 1000;
}

.alert-item {
  background: #f87171;
  color: #020617;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 260px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.3s ease forwards;
}

.alert-item.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

.alert-item button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.info-section{
  padding: 48px 18px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.info-header{
  margin-bottom: 80px;
  margin-top: 80px;
}

.info-header h2{
  margin: 0 0 6px;
  font-size: 28px;
}

.info-header p{
  margin: 0 0 18px;
  opacity: 0.8;
}

.info-form{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-wide{
  grid-column: 1 / -1;
}

.field label{
  font-size: 12px;
  opacity: 0.8;
}

.field input,
.field textarea{
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(0,0,0,0.35);
}

.add-btn{
  grid-column: 1 / -1;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #111;
  color: #fff;
}

.info-feed{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.info-item{
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}

.info-item.reverse{
  flex-direction: row-reverse;
}

.media{
  width: min(420px, 45vw);
  min-width: 860px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;

  clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.info-item.reverse .media{
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}

.media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content{
  flex: 1;
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content h3{
  margin: 0;
  font-size: 60px;
}

.content p{
  margin: 0;
  line-height: 1.45;
  opacity: 0.8;
}

.content .lines{
  height: 10px;
  width: 65%;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}
.content .lines:nth-child(3){ width: 85%; }
.content .lines:nth-child(4){ width: 55%; }

.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}

.reveal.in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal .media,
.reveal .content{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in .media{
  opacity: 1;
  transform: translateY(0);
  transition-delay: .06s;
}

.reveal.in .content{
  opacity: 1;
  transform: translateY(0);
  transition-delay: .14s;
}

@media (max-width: 820px){
  .info-form{ grid-template-columns: 1fr; }
  .info-item, .info-item.reverse{ flex-direction: column; }
  .media{ width: 100%; min-width: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal *{
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  .reveal{ opacity: 1 !important; }
}

/*Acordeon*/
.accordion-card{
  max-width: 980px;
  margin: 30px auto;
  padding: 38px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.acc-title{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: .2px;
}
.acc-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.acc-group{
  display: grid;
  gap: 10px;
}

.acc-item{
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  overflow: hidden;
}

.acc-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  background: linear-gradient(180deg, rgba(52,192,255,.08), rgba(255,255,255,.02));
  color: var(--text);
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
}

.acc-btn:hover{
  background: linear-gradient(180deg, rgba(52,192,255,.14), rgba(255,255,255,.03));
}

.acc-icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(52,192,255,.55);
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.acc-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  top: -1px;
}

.acc-panel{
  max-height: 0px;      
  overflow: hidden;
  transition: max-height .35s ease;
  background: rgba(0,0,0,.10);
}

.acc-content{
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.acc-content p{ margin: 0 0 10px; }
.acc-content p:last-child{ margin-bottom: 0; }
.acc-content img{
   width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  
  object-fit: contain;     /* NO se recorta, se ajusta dentro */
  object-position: center; /* Centrada */

  display: block;
  margin: 0 auto;

  border: 2px solid #000;  /* Cambia color/grosor aquí */
  border-radius: 12px;     /* Opcional, se ve mejor */
  box-sizing: border-box;
}

.acc-content ul{
  margin: 8px 0 0 18px;
  padding: 0;
}

.acc-item.is-open .acc-btn{
  outline: 2px solid rgba(52,192,255,.30);
  outline-offset: -2px;
}
.acc-item.is-open .acc-icon::before{
  transform: rotate(-135deg);
  top: 2px;
}

.acc-btn:focus-visible{
  outline: 2px solid rgba(52,192,255,.65);
  outline-offset: 2px;
}

/*Ball*/
.wrap{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.controls{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel);
  display: grid;
  gap: 12px;
}

.row{
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.row label{
  font-size: 14px;
  color: var(--muted);
}

.value{
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  text-align: right;
  color: var(--muted);
}

input[type="range"]{
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-top: -4px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

input[type="range"]::-moz-range-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}
input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.color-range::-webkit-slider-runnable-track{
  background: linear-gradient(to right,
    hsl(0 90% 55%),
    hsl(60 90% 55%),
    hsl(120 90% 45%),
    hsl(180 90% 45%),
    hsl(240 90% 60%),
    hsl(300 90% 55%),
    hsl(360 90% 55%)
  );
}
.color-range::-moz-range-track{
  background: linear-gradient(to right,
    hsl(0 90% 55%),
    hsl(60 90% 55%),
    hsl(120 90% 45%),
    hsl(180 90% 45%),
    hsl(240 90% 60%),
    hsl(300 90% 55%),
    hsl(360 90% 55%)
  );
}

.swatch{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  justify-self: end;
  background: var(--ball);
}

.stage-wrap{
  margin: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 12px;
  align-items: start;
}

.hint{
  text-align: center;
  margin: 0;
  color: var(--under);
  font-size: 15px;
}

.stage{
  width: min(520px, 92vw);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(0,0,0,.25);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.02);
  justify-self: center;
}

.ball{
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ball);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.ball:active{
  transform: translate(-50%, -50%) scale(.97);
}

.actions{
  display: flex;
  gap: 10px;
  justify-content: center;
}

button{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  background: #111;
  color: #fff;
  min-width: 120px;
}

.status{
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 620px){
  .row{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .value{ text-align: left; }
  .swatch{ justify-self: start; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}

.cf-wrap{
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: visible;
}

.cf-head{
  margin: 0 0 14px;
  display: grid;
  gap: 4px;
}
.cf-head h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: .2px;
}
.cf-head p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cf-stage{
  position: relative;
  height: calc(var(--cardH, 240px) + 140px);
  min-height: 340px;

  overflow: visible;    
  background: transparent;
  border: 0;

  touch-action: pan-y;
  user-select: none;
}

.cf-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5000;        

  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(52,192,255,.35);
  background: rgba(52,192,255,.10);
  color: var(--accent);
  font-size: 34px;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,.30);
  user-select: none;
  pointer-events: auto;
}

.cf-nav:hover{ background: rgba(52,192,255,.16); }
.cf-nav.left{ left: var(--navOffset); }
.cf-nav.right{ right: var(--navOffset); }

/* Cards */
.cf-card{
  position: absolute;
  left: 50%;
  top: 50%;

  width: min(var(--cardW, 520px), 90vw);
  height: var(--cardH, 240px);
  border-radius: 18px;

  background: linear-gradient(180deg, rgba(52,192,255,.10), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  box-shadow: 0 22px 50px rgba(0,0,0,.45);

  cursor: pointer;
  will-change: transform, opacity, filter;
  transform: translate(-50%, -50%);
}

.cf-card-inner{
  height: 100%;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: rgba(255,255,255,.86);
  letter-spacing: .2px;
  overflow: hidden;
}

.cf-card-inner img{
  height: 25%;
  transform: translate(-2%,-150%);
}

.cf-stage:not(.is-dragging) .cf-card{
  transition: transform .32s ease, opacity .32s ease, filter .32s ease;
}

@media (max-width: 640px){
  :root{
    --cardH: 200px;
    --navOffset: -10px;
    --showRadius: 3;
  }
  .cf-stage{ min-height: 300px; }
}

@media (prefers-reduced-motion: reduce){
  .cf-stage .cf-card{ transition: none !important; }
}