/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 48px 0;
}

.cta {
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--txt);
    background: #d9d9d9;
    margin-bottom: 16px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
}

.avatar .badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ffd84d;
    border: 2px solid var(--txt);
    color: #000;
    padding: 2px 8px;
    font-weight: 700;
    border-radius: 8px;
    transform: rotate(-8deg);
}

.hero_content h1 {
    margin: 2rem 0 .4rem;
    font-size: clamp(28px, 4vw, 40px);
}

.subtitle {
    color: var(--muted);
    margin: 0 0 8px;
}

.quote {
    margin: 8px 0 12px;
    color: var(--muted);
    font-style: italic;
    border-left: 3px solid #eaeaea;
    padding-left: 10px;
}

.pitch {
    margin: 10px 0 18px;
}

/* Social */
.social {
    display: flex;
    gap: 14px;
    margin: 12px 0 16px;
}

.social img {
    width: 28px;
    height: 28px;
    filter: grayscale(100%) contrast(1.2);
    transition: filter .25s ease;
    transform: scale(1.08);
}

.social a:hover img {
    filter: none;
    transform: scale(1.08);
}

/* ABOUT */
.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about__card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

/* SKILLS (overrides de cards para esta sección) */
/* ===== SKILLS ===== */
.section--skills{
  /* reutiliza el fondo suave */
}

.section__head--skills{
  text-align: center;
  margin-bottom: 26px;
}

.section__head--skills .section__eyebrow{
  margin: 0 0 6px;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.section__head--skills .section__title-main{
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
}

.section__head--skills .section__sub{
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  max-width: 720px;
  margin-inline: auto;
}
/* Grid de skills */
#habilidades .cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

/* Tarjeta de grupo de skills */
#habilidades .cards > .card{
  border-radius: 18px;
  border: 1px solid #e5f0ea;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
  padding: 18px 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#habilidades .cards > .card:hover{
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 22px 50px rgba(34,197,94,.18);
}

/* Título de cada categoría */
#habilidades .cards > .card h4{
  margin: 0 0 14px;
  font-size: .95rem;
  font-weight: 700;
  text-align: left;
}

/* Lista interior */
#habilidades .cards > .card ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ítems: icono + texto */
#habilidades .cards > .card ul li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

/* ===== Ajustes específicos para SKILLS ===== */

/* Quitar el punto verde de las listas de skills */
#habilidades .cards > .card ul li::before {
    content: none;
}

/* Tamaño de los íconos de skills */
#habilidades .cards > .card ul li img {
    width: 22px ;
    height: 22px ;
    max-height: 22px ;
    max-width: 22px ;
    flex: 0 0 22px;
    border-radius: 8px;
    padding: 4px;
    background: #f3f4f6;
    object-fit: contain;
    display: block;
}

/* texto */
#habilidades .cards > .card ul li span{
  display: block;
  line-height: 1.25;
}


/* PROJECTS grid + cards */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.proj-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.proj-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(34, 197, 94, .18);
}

.proj-card .thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #f2f2f2;
    overflow: hidden;
}

.proj-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s, transform .2s;
}

.preview-btn:hover {
    background: rgba(0, 0, 0, .75);
    transform: translateY(-1px);
}

.preview-btn--card {
    position: static !important;
    background: #eee;
    color: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
}

.preview-btn--card:hover {
    background: var(--accent);
    color: #fff;
}

.proj-body {
    padding: 12px 14px;
}

.proj-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.proj-desc {
    margin: 0 0 10px;
    color: var(--muted);
}

.proj-stack {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.proj-stack img {
    width: 40px;
    height: 40px;
}

.proj-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.proj-card .proj-desc {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.6em * 7);
}

/* ===== PROYECTOS ===== */
.section--projects {
    /* opcional: un poco menos de padding que otras secciones */
}

/* Reusa los estilos que ya hicimos para educación */
.section__head--proj {
    text-align: center;
    margin-bottom: 26px;
}

.section__head--proj .section__eyebrow {
    margin: 0 0 6px;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}

.section__head--proj .section__title-main {
    margin: 0 0 8px;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
}

.section__head--proj .section__sub {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
}

/* Grid de proyectos */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Card principal */
.proj-card {
    border: 1px solid #e5f0ea;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.proj-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .14);
}

/* Imagen superior */
.proj-card .thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f2f2f2;
    overflow: hidden;
}

.proj-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cuerpo de la card */
.proj-body {
    padding: 14px 16px 16px;
}

.proj-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.proj-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .9rem;

    /* limitar líneas de texto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stack de tecnologías (usa tus iconos actuales) */
.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.proj-stack img {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 4px;
    object-fit: contain;
}

/* Zona de botones */
.proj-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

/* “Repositorio privado” como chip gris */
.proj-actions .badge {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: .8rem;
    color: #6b7280;
}

/* Botón “Ver más” */
.preview-btn--card {
    flex: 1 1 0;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px 10px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}

.preview-btn--card:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===== EDUCACIÓN ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.edu-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-areas:
        "icon title year top"
        "icon org   year top"
        "icon meta  year top"
        "icon tags  year top";
    gap: 6px 12px;
    min-height: 120px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    align-items: start;
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, .14);
    border-color: var(--accent);
}

.edu-card__icon {
    grid-area: icon;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border);
    font-size: 20px;
}

.edu-card__title {
    grid-area: title;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    font-size: 16px;
}

.edu-card__org,
.edu-card__meta {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.edu-card__tags {
    grid-area: tags;
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.edu-card__top {
    grid-area: top;
    justify-self: end;
    align-self: start;
    display: flex;
    gap: 6px;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: wrap;
}

.edu-card__year {
    grid-area: year;
    justify-self: end;
    align-self: start;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fafafa;
    color: var(--muted);
}

/* Fondo suave sólo para esta sección */
.section--soft {
    background: #ffff;
}

/* Encabezado tipo “FORMACIÓN / Mis estudios” */
.section__head--edu {
    text-align: center;
    margin-bottom: 26px;
}

.section__eyebrow {
    margin: 0 0 6px;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent) !important;
}

.section__title-main {
    margin: 0 0 8px;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
}

.section__sub {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
}

/* Cards estilo prototipo */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

/* base de la card ya la tenías, la ajustamos */
.edu-card {
    border: 1px solid #e5f0ea;
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon title tag"
        "icon org   tag"
        "icon meta  tag"
        "icon line  line";
    row-gap: 4px;
    column-gap: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    align-items: flex-start;
}

/* Icono en cuadrado suave */
.edu-card__icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border: none;
}

.edu-card__icon span {
    font-size: 20px;
}

/* Título / org / meta */
.edu-card__title {
    grid-area: title;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.edu-card__org {
    grid-area: org;
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
}

.edu-card__meta {
    grid-area: meta;
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
}

/* Tag “Finalizado / En curso” arriba a la derecha */
.edu-card__top {
    grid-area: tag;
    justify-self: end;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #166534;
    font-weight: 600;
}

/* Línea separadora + año abajo */
.edu-card__line {
    grid-area: line;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef4f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--muted);
}

.edu-card__ ar {
    font-weight: 500;
}

/* Hover */
.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
    border-color: var(--accent);
}


/* TIMELINE utilitario (si lo usas) */
.timeline {
    border-left: 2px solid var(--accent);
    padding-left: 18px;
    margin: 20px 0;
}

.timeline__item {
    margin-bottom: 18px;
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline__item h3 {
    margin: 0;
    font-size: 1rem;
}

.timeline__item p {
    margin: 4px 0 0;
    font-size: .9rem;
    color: var(--muted);
}

/* ===== Hero versión prototipo ===== */
.hero--v2 {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 56px;
    /* deja aire con la barra */
}

.hero__title {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 8px;
    font-weight: 800;
}

.hero__role {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero__bio {
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 60ch;
}

.hero__divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 18px 0 18px;
}

.hero__quote {
    font-weight: 800;
    font-style: italic;
    margin: 0 0 18px;
}

/* Avatar con halo/blur verde */
.avatar-glow {
    width: min(520px, 78vw);
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(closest-side, rgba(34, 197, 94, .20), rgba(34, 197, 94, .06) 55%, transparent 60%),
        radial-gradient(closest-side, rgba(34, 197, 94, .10), transparent 70%);
    filter: drop-shadow(0 24px 40px rgba(34, 197, 94, .25));
    margin-inline: auto;
}

.avatar-glow img {
    width: 78%;
    height: 78%;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, .65);
    background: #fff;
}

/* ===== Sobre mí ===== */
.about__title {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
    margin: 0 0 10px;
    font-weight: 800;
}

.about__intro {
    max-width: 100%;
    color: var(--muted);
    margin: 0 0 12px;
}

/* Grid de tarjetas */
.about__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 18px;
}

/* Tarjeta */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(34, 197, 94, .14);
    border-color: var(--accent);
}

.feature-card h3 {
    margin: 10px 0 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
}

/* Icono circular con halo */
.feature-card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px auto 6px;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.feature-card__icon img {
    width: 40px;
    height: 40px;
}

/* Bullets con check verde */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.bullet-list--check li {
    position: relative;
    padding-left: 26px;
}

.bullet-list--check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #b8f3d4;
    background: #ecfdf5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) inset;
}

.bullet-list--check li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 9px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ===== FOOTER NUEVO ===== */
.site-footer {
    margin-top: 40px;
    background: #020617;
    color: #e5e7eb;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .3);
    ;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 28px 16px 20px;
}

.footer-col {
    font-size: .9rem;
}

.footer-col--brand .footer-text {
    margin: 8px 0 14px;
    color: #9ca3af;
    max-width: 260px;
}

.footer-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

/* Social */
.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%) brightness(1.1);
    transition: filter .2s ease, transform .1s ease;
}

.footer-social a:hover img {
    filter: none;
    transform: translateY(-1px);
}

/* Encabezados de columna */
.footer-heading {
    margin: 0 0 8px;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* Listas */
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin: 4px 0;
}

.footer-list a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: .9rem;
}

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

/* Contacto rápido */
.footer-meta {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-meta li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 4px 0;
}

.footer-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    color: #9ca3af;
    min-width: 72px;
}

.footer-meta a {
    color: #e5e7eb;
    text-decoration: none;
}

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

/* Línea inferior */
.footer-bottom {
    border-top: 1px solid #111827;
    padding: 10px 16px 16px;
    text-align: center;
    font-size: .8rem;
    color: #9ca3af;
}


@media (max-width: 640px) {}


/* Responsive */
@media (max-width: 980px) {
    .hero--v2 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

    .hero__right {
        order: -1;
    }

    /* foto arriba en móvil si quieres */
    .avatar-glow {
        width: min(380px, 86vw);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section__head--edu {
        text-align: left;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
        gap: 28px;
        padding: 28px 16px 20px;
    }
}


/* Responsive home */
@media (max-width:760px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-col--brand .footer-text {
        max-width: none;
    }
    #skills .cards{
        grid-template-columns: 1fr
    }
}

@media (min-width:900px) {
    .edu-rail {
        grid-auto-columns: 360px;
    }
}