/* =========================
  PORTFOLIO (Digital Card)
  Colors:
    --p-primary: #EA4F49
    --p-navy:    #222B54
    --p-light:   #EAEAEA
========================= */

:root {
  --p-primary: #EA4F49;
  --p-navy: #222B54;
  --p-light: #EAEAEA;

  --p-bg: #0b1020;
  --p-surface: rgba(34, 43, 84, 0.55);
  --p-surface-2: rgba(34, 43, 84, 0.35);
  --p-stroke: rgba(234, 234, 234, 0.14);
  --p-stroke-2: rgba(234, 234, 234, 0.09);

  --p-shadow: 0 24px 80px rgba(0,0,0,0.55);
  --p-radius-xl: 26px;
  --p-radius-lg: 18px;
  --p-radius-md: 14px;

  --p-max: 1100px;
}

.portfolio-body {
  background: radial-gradient(900px 600px at 20% 12%, rgba(234,79,73,0.22), transparent 58%),
              radial-gradient(900px 600px at 85% 20%, rgba(34,43,84,0.55), transparent 60%),
              linear-gradient(180deg, #070a14, #0b1020 55%, #070a14);
  color: var(--p-light);
  min-height: 100vh;
}

/* TOP BAR */
.p-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;         
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 30, 0.55);
  border-bottom: 1px solid var(--p-stroke-2);
}

.p-topbar-inner{
  width: min(var(--p-max), 92vw); 
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.p-topbar-spacer{
  justify-self: end; /* solo ocupa espacio, invisible */
}


.p-back{
  justify-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--p-stroke);
  background: rgba(34, 43, 84, 0.22);
  color: var(--p-light);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.p-back:hover{
  transform: translateY(-1px);
  border-color: rgba(234,79,73,0.35);
  background: rgba(34,43,84,0.26);
}
.p-back-icon {
  color: var(--p-primary);
  font-weight: 900;
}

.p-brand{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

.p-brand-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--p-primary);
  box-shadow: 0 0 0 6px rgba(234,79,73,0.12);
}

@media (max-width: 520px){
  .p-brand span:last-child{ display:none; }  /* oculta “H SOLUTECH” */
  .p-back span:last-child{ display:none; }   /* oculta “Back” */
  .p-back{ padding: 8px 10px; }
}

/* WRAP */
.p-wrap {
  width: min(var(--p-max), 92vw);
  margin: 0 auto;
  padding: 22px 0 60px;
}

/* HERO */
.p-hero {
  position: relative;
  margin-top: 14px;
}

.p-hero-bg {
  position: absolute;
  inset: -40px -10px auto -10px;
  height: 260px;
  border-radius: var(--p-radius-xl);
  background: radial-gradient(700px 260px at 15% 30%, rgba(234,79,73,0.26), transparent 60%),
              radial-gradient(700px 260px at 80% 10%, rgba(34,43,84,0.85), transparent 65%);
  filter: blur(0px);
  opacity: 0.85;
  pointer-events: none;
}

.p-card {
  border: 1px solid var(--p-stroke);
  border-radius: var(--p-radius-xl);
  background: linear-gradient(180deg, rgba(34,43,84,0.58), rgba(10,14,30,0.45));
  box-shadow: var(--p-shadow);
  backdrop-filter: blur(14px);
}

.p-hero-card {
  position: relative;
  padding: 28px 18px 18px;
  overflow: hidden;
}
.p-hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(500px 200px at 20% 0%, rgba(234,79,73,0.15), transparent 60%),
              radial-gradient(460px 200px at 90% 0%, rgba(34,43,84,0.55), transparent 65%);
  pointer-events: none;
  opacity: 0.9;
}

.p-avatar {
  width: 200px;
  height: 200px;
  border-radius: 26px;
  margin: 0 auto 14px;
  position: relative;
  border: 1px solid rgba(234,79,73,0.35);
  background: rgba(34,43,84,0.35);
  box-shadow: 0 0 0 8px rgba(234,79,73,0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.p-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-avatar-fallback-content {
  display: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--p-primary);
  font-size: 2rem;
}
.p-avatar.p-avatar-fallback .p-avatar-fallback-content {
  display: block;
}

.p-name {
  text-align: center;
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.p-title {
  text-align: center;
  margin: 6px auto 14px;
  max-width: 720px;
  opacity: 0.9;
}

.p-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--p-stroke-2);
  background: rgba(34,43,84,0.28);
  font-size: 0.92rem;
  opacity: 0.95;
}
.p-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--p-primary);
  box-shadow: 0 0 0 6px rgba(234,79,73,0.12);
}

.p-intro {
  text-align: center;
  margin: 30px auto 30px;
  max-width: 820px;
  line-height: 1.65;
  color: rgba(234,234,234,0.9);
}
.p-intro strong { color: var(--p-light); }

/* ACTIONS */
.p-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 auto 16px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .p-actions { grid-template-columns: repeat(5, 1fr); }
}

.p-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--p-light);
  padding: 12px 12px;
  border-radius: 999px;
  border: 1px solid var(--p-stroke);
  background: rgba(34,43,84,0.25);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.p-action:hover {
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
  background: rgba(34,43,84,0.35);
}
.p-action-ic {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.p-action-ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  filter: none; 
}

.p-action-primary {
  border-color: rgba(234,79,73,0.45);
  background: rgba(234,79,73,0.16);
}
.p-action-primary:hover {
  border-color: rgba(234,79,73,0.8);
  background: rgba(234,79,73,0.22);
}

/* PILLS */
.p-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 6px;
  position: relative;
  z-index: 1;
}

.p-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234,234,234,0.14);
  background: rgba(10,14,30,0.24);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform .15s ease, border-color .15s ease;
}
.p-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
}

/* GRID */
.p-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 960px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .p-wide { grid-column: span 2; }
}

.p-section {
  padding: 18px;
}
.p-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.p-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.p-section-sub {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* KEY VALUE */
.p-kv {
  border: 1px solid var(--p-stroke-2);
  border-radius: var(--p-radius-lg);
  background: rgba(34,43,84,0.22);
  padding: 12px 12px;
}
.p-kv-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px 6px;
  border-top: 1px solid rgba(234,234,234,0.06);
}
.p-kv-row:first-child { border-top: 0; }
.p-kv-key { opacity: 0.7; }
.p-kv-val { font-weight: 650; }

.p-text {
  margin: 14px 0 0;
  line-height: 1.65;
  color: rgba(234,234,234,0.88);
  text-align: justify;
  padding-top: 20px;
  
}

/* SKILLS */
.p-skillgrid {
  display: grid;
  gap: 12px;
}
.p-skill {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-stroke-2);
  background: rgba(10,14,30,0.18);
  transition: transform .15s ease, border-color .15s ease;
}
.p-skill:hover {
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
}
.p-skill-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(234, 78, 73, 0.134);
  border: 1px solid rgba(234,234,234,0.10);
}
.p-skill-ic img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.p-skill h3 {
  margin: 0;
  font-size: 1rem;
}
.p-skill p {
  margin: 4px 0 0;
  opacity: 0.85;
  line-height: 1.45;
}

/* TAGS */
.p-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 15px;
}

/* Cada tag */
.p-tag{
  position: relative; /* necesario para ::after */
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255, 255, 255, 0);
  font-size: .95rem;
  color: rgba(255,255,255,0.85);
  cursor: default;

  /* Animación “uno por uno” */
  opacity: 0;
  transform: translateY(10px);
  animation: tagIn 650ms ease forwards;
  animation-delay: calc(var(--i, 0) * 90ms);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    color .2s ease;
}

/* Hover elegante */
.p-tag:hover{
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.6);
  color: #fff;
  box-shadow:
    0 8px 30px rgba(234,79,73,0.25),
    0 0 0 6px rgba(234,79,73,0.08);
}

/* Glow/pulse overlay */
.p-tag::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  opacity:0;
  transition: opacity .25s ease;
  box-shadow: 0 0 0 0 rgba(234,79,73,.4);
  pointer-events: none;
}

.p-tag:hover::after{
  opacity:1;
  animation: pulse 1s ease-out infinite;
}

/* Entrada de tags (se activan uno por uno) */
@keyframes tagIn{
  0%{
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Pulse */
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(234,79,73,.35); }
  100%{ box-shadow: 0 0 0 14px rgba(234,79,73,0); }
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce){
  .p-tag{
    animation: none;
    opacity: 1;
    transform: none;
  }
  .p-tag:hover::after{
    animation: none;
  }
}



/* PROJECTS */
.p-projects {
  display: grid;
  gap: 14px;
}
.p-project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: var(--p-radius-xl);
  border: 1px solid var(--p-stroke-2);
  background: rgba(10,14,30,0.15);
}
@media (min-width: 860px) {
  .p-project { grid-template-columns: 280px 1fr; }
}

.p-project-media {
  border-radius: 18px;
  border: 1px solid rgba(234,234,234,0.12);
  overflow: hidden;
  min-height: 180px;
  background: rgba(34,43,84,0.25);
  display: grid;
  place-items: center;

  background:
    radial-gradient(
      280px 200px at 30% 20%,
      rgba(234,79,73,0.18),
      transparent 60%
    ),
    radial-gradient(
      280px 200px at 70% 80%,
      rgba(34,43,84,0.55),
      transparent 65%
    ),
    rgba(10,14,30,0.35);

}
.p-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: contain;
  padding: 18px;
  display: block;
}
.p-media-fallback-content {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(234,234,234,0.88);
  text-transform: uppercase;
}
.p-media-fallback {
  background:
    radial-gradient(240px 160px at 30% 20%, rgba(234,79,73,0.22), transparent 60%),
    radial-gradient(240px 160px at 70% 80%, rgba(34,43,84,0.55), transparent 65%),
    rgba(10,14,30,0.24);
}

.p-project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.p-project h3 {
  margin: 0;
  font-size: 1.15rem;
}
.p-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234,79,73,0.35);
  background: rgba(234,79,73,0.12);
  color: var(--p-light);
  font-weight: 650;
  font-size: 0.92rem;
}

.p-project-body p {
  margin: 10px 0 0;
  line-height: 1.6;
  opacity: 0.9;
}

.p-project-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.p-link {
  color: var(--p-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(234,79,73,0.5);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.p-link:hover {
  color: var(--p-primary);
  border-color: rgba(234,79,73,0.9);
}

/* TIMELINE */
.p-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.p-t-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
}
.p-t-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--p-primary);
  margin-top: 6px;
  box-shadow: 0 0 0 8px rgba(234,79,73,0.12);
}
.p-t-body h3 {
  margin: 0;
  font-size: 1.02rem;
}
.p-t-body p {
  margin: 6px 0 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* CONTACT */
.p-contact {
  display: grid;
  gap: 12px;
}
.p-contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-stroke-2);
  background: rgba(10,14,30,0.16);
  text-decoration: none;
  color: var(--p-light);
  transition: transform .15s ease, border-color .15s ease;
}
.p-contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
}
.p-ci-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(34,43,84,0.28);
  border: 1px solid rgba(234,234,234,0.10);
  display: grid;
  place-items: center;
}
.p-ci-ic img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.p-contact-item strong { display: block; }
.p-contact-item em {
  display: block;
  opacity: 0.8;
  font-style: normal;
  margin-top: 2px;
}

/* CTA */
.p-cta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234,79,73,0.45);
  background: rgba(234,79,73,0.14);
  color: var(--p-light);
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.p-btn:hover {
  transform: translateY(-2px);
  background: rgba(234,79,73,0.2);
  border-color: rgba(234,79,73,0.8);
}
.p-btn-ghost {
  border: 1px solid var(--p-stroke);
  background: rgba(34,43,84,0.22);
}
.p-btn-ghost:hover {
  border-color: rgba(234,79,73,0.45);
}
.p-btn-ic { color: var(--p-primary); }

/* FOOTER */
.p-footer {
  margin-top: 18px;
  text-align: center;
  opacity: 0.7;
  padding: 16px 0 0;
}

/* REVEAL ANIMATION (life) */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  .p-action, .p-btn, .p-skill, .p-contact-item, .p-pill { transition: none; }
}

/* ------------------ QUICK ACTIONS --------------- */
.p-actions-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.p-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  background: transparent;
  border: none;
  outline: none;
  padding-bottom: 40px;
  padding-top: 40px;

  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.95;
}

.p-action-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  
}

/* Hover elegante */
.p-action-icon:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Tap móvil */
.p-action-icon:active {
  transform: scale(0.95);
}

/* Accesibilidad */
.p-action-icon:focus-visible {
  outline: 2px solid rgba(234, 79, 73, 0.7);
  outline-offset: 6px;
  border-radius: 10px;
}




.p-action-icon {
  position: relative;
}

.p-action-icon::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(234, 79, 73, 0.7),
    transparent 40%
  );
  opacity: 0.45;
  filter: blur(10px);
  z-index: 0;
  transition: opacity 0.25s ease;
}

.p-action-icon img {
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
}

.p-action-icon:hover::before {
  opacity: 0.75;
}


/* =========================
   HERO SPLIT (like template)
========================= */

.p-hero-split .p-hero-card {
  padding: 18px;
}

.p-hero-layout {
  overflow: hidden;
}

/* NAV */
.p-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 14px;
  border: 1px solid var(--p-stroke-2);
  border-radius: 999px;
  background: rgba(10,14,30,0.25);
  backdrop-filter: blur(14px);
}

.p-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--p-light);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.p-nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  flex:1;
}

.p-nav-links a{
  text-decoration:none;
  color: rgba(234,234,234,0.85);
  font-weight: 650;
  font-size: 0.95rem;
  transition: color .15s ease;
}

.p-nav-links a:hover{
  color: var(--p-primary);
}

.p-nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.p-nav-btn{
  text-decoration:none;
  color: var(--p-light);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234,234,234,0.18);
  background: rgba(34,43,84,0.18);
  font-weight: 750;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.p-nav-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(234,79,73,0.45);
  background: rgba(34,43,84,0.28);
}

/* Burger (visible on mobile) */
.p-burger{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(234,234,234,0.18);
  background: rgba(34,43,84,0.18);
  display:none;
  place-items:center;
  gap:5px;
  cursor:pointer;
}
.p-burger span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(234,234,234,0.85);
  border-radius: 2px;
}

/* HERO GRID */
.p-hero-content{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items:center;
  padding: 22px 10px 10px;
}

/* LEFT */
.p-hello{
  margin: 0 0 8px;
  letter-spacing: 0.32em;
  font-weight: 800;
  opacity: 0.75;
  font-size: 0.92rem;
}
.p-hero-name{
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}


.p-type{
  display: inline-block;
  white-space: nowrap;
}

.p-cursor{
  display: inline-block;
  width: 10px;
  height: 0.95em;
  margin-left: 6px;
  transform: translateY(2px);
  border-radius: 6px;
  background: var(--p-primary);
  box-shadow: 0 0 18px rgba(234,79,73,0.35);
  animation: p-blink 0.9s steps(1) infinite;
}

.p-type.is-done + .p-cursor{
  animation: none;
  opacity: 0;
}

@keyframes p-blink{
  50%{ opacity: 0; }
}

/* Reduced motion: no typing, no cursor */
@media (prefers-reduced-motion: reduce){
  .p-cursor{ display:none; }
}


.p-hero-role{
  margin: 10px 0 14px;
  opacity: 0.86;
  line-height: 1.45;
}

.p-hero-mail{
  margin: 0 0 14px;
  color: var(--p-primary);
  font-weight: 850;
  font-size: 1.05rem;
}

.p-hero-text{
  margin: 0;
  max-width: 560px;
  color: rgba(234,234,234,0.88);
  line-height: 1.65;
  text-align: justify;
}

/* SOCIAL */
.p-hero-social{
  display:flex;
  gap: 14px;
  margin-top: 18px;
}
.p-social{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(234,234,234,0.14);
  background: rgba(10,14,30,0.18);
  display:grid;
  place-items:center;
  transition: transform .15s ease, border-color .15s ease;
  text-decoration:none;
}
.p-social:hover{
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
}
.p-social img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* RIGHT */
.p-hero-right{
  position: relative;
  display:grid;
  place-items:center;
  min-height: 320px;
  z-index: 1; 
}

.p-hero-photo{
  width: min(340px, 90%);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(234,79,73,0.35);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.45),
    0 0 0 8px rgba(234,79,73,0.06);
}

.p-hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.p-hero-ring{
  position:absolute;
  width: 400px;
  height: 400px;
  border-radius: 999px;
  border: 2px dashed rgba(234,79,73,0.28);
  background: radial-gradient(circle, rgba(234,79,73,0.20), transparent 55%);
  filter: blur(0px);
  right: 0;
  top: 55%;
  transform: translate(10%, -50%);
  z-index: 0;
  opacity: 0.9;
  animation: heroRingSpin 55s linear infinite;
  transform-origin: center;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .p-hero-content{
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .p-hero-right{
    order:-1;
    min-height: 260px;
  }
  .p-hero-ring{
    right: 50%;
    transform: translate(50%, -50%);
    top: 60%;
  }
}

@media (max-width: 820px){
  .p-nav-links{ display:none; }
  .p-burger{ display:grid; }
  .p-nav-btn{ display:none; }
}

@keyframes heroRingSpin {
  from {
    transform: translate(10%, -50%) rotate(0deg);
  }
  to {
    transform: translate(10%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce){
  .p-hero-ring{
    animation: none;
  }
}


/* Floating Home Button */
.p-home-float{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 999;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 12px 16px;
  border-radius: 999px;

  color: var(--p-light);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;

  background: rgba(10, 14, 30, 0.6);
  border: 1px solid var(--p-stroke);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);

  transition:
    transform .22s ease,
    opacity .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.p-home-float:hover{
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.45);
  background: rgba(10, 14, 30, 0.72);
}

.p-home-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--p-primary);
  box-shadow: 0 0 0 7px rgba(234,79,73,0.15);
}

/* oculto cuando bajas */
.p-home-float.is-hidden{
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
}

/* responsive: que no estorbe */
@media (max-width: 520px){
  .p-home-float{
    top: 12px;
    left: 12px;
    padding: 10px 12px;
    gap: 8px;
  }
  .p-home-text{
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }
}

/* Back to top button */
.scroll-top {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-coral);
  background: radial-gradient(circle at top, var(--primary-soft), #0b1027);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.p-home-logo{
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.p-home-text{
  white-space: nowrap;
  font-size: 0.95rem;
  opacity: 0.95;
}

.p-home-text strong{
  font-weight: 900;
}

.p-home-float.is-hidden{
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 520px){
  .p-home-text{
    display: none;
  }

  .p-home-float{
    padding: 12px;
  }
}



/* === CORAL DIVIDERS === */
.p-divider{
  width: 220px;
  height: 2px;
  margin: 18px 0;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(234,79,73,0),
    rgba(234,79,73,0.6),
    rgba(234,79,73,0)
  );
}

/* versión más suave para abajo */
.p-divider-soft{
  width: 280px;
  opacity: 0.55;
  margin-top: 22px;
}

/* Cards: micro-hover pro */
.p-section{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.p-section:hover{
  transform: translateY(-2px);
  border-color: rgba(234,79,73,0.28);
  box-shadow: 0 26px 90px rgba(0,0,0,0.55);
}

/* Header accent line (coral) */
.p-section-head{
  position: relative;
  padding-bottom: 12px;
}
.p-section-head::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(234,79,73,0.75), rgba(234,79,73,0));
  opacity: .9;
}

/* Better readability for About paragraph */
.p-text{
  max-width: 62ch;
  
}

@media (max-width: 520px){
  .p-kv-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .p-kv-key{
    font-size: .92rem;
    opacity: .65;
  }
  .p-kv-val{
    font-size: 1rem;
  }
}
.p-skill:hover .p-skill-ic{
  border-color: rgba(234,79,73,0.35);
  box-shadow: 0 0 0 7px rgba(234,79,73,0.08);
}