/* ============================================================
   CLOUD THEME — Component Styles (per-page)
   ============================================================ */

/* ── ABOUT PAGE ── */
.about-section {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 300px);
    gap: 4rem;
    align-items: start;
    /* Use clip (not hidden): it contains the radar-ring overflow without turning
       the section into a scroll container, so it neither spawns a scrollbar next
       to the photo nor swallows the mouse wheel when hovering that area. */
    overflow-x: clip;
}
.about-content { padding-right: 2rem; }
.about-text { font-size: .95rem; color: var(--text-muted); line-height: 1.85; }
.about-text p { margin-bottom: 1.5rem; }
.about-text strong { color: var(--text-strong); font-weight: 600; }
.about-photo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    /* Hide scrollbars while keeping overflow visible for radar animation */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.about-photo::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Radar rings from avatar */
.avatar-node {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.avatar-node::-webkit-scrollbar { display: none; width: 0; height: 0; }
.profile-img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 2px solid var(--accent);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(59,130,246,.25), 0 10px 40px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
    transition: box-shadow .3s;
}
.profile-img:hover { box-shadow: 0 0 40px rgba(59,130,246,.35), 0 10px 50px rgba(0,0,0,.6); }

.radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1.5px solid rgba(59,130,246,.5);
    pointer-events: none;
    transform-origin: center center;
    transform: scale(.8);
    animation: ring 3s ease-out infinite;
}
.radar-ring:nth-child(3) { animation-delay: 1s; }
.radar-ring:nth-child(4) { animation-delay: 2s; }

/* Knowledge cards grid */
.devops-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.profile-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.profile-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59,130,246,.12);
}
.card-header { margin-bottom: 1.2rem; }
.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-strong); }
.card-content ul { list-style: none; }
.card-content li {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: .3rem 0 .3rem 1.2rem;
    position: relative;
}
.card-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.strengths-list { list-style: none; color: var(--text-muted); font-size: .9rem; }
.strengths-list li {
    margin-bottom: .6rem;
    padding-left: 1.5rem;
    position: relative;
}
.strengths-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Principles */
.principle-item { margin-bottom: 2.5rem; }
.principle-item h3 { font-size: 1rem; font-weight: 600; color: var(--text-strong); margin-bottom: .5rem; }
.principle-item p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* ── EXPERIENCIA PAGE — PIPELINE ── */
.experiencia-page { margin-top: 60px; }

.timeline-wrap {
    padding: 3rem 3rem 5rem;
    position: relative;
}
.pipeline-line {
    position: absolute;
    left: calc(3rem + 1px);
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-cyan));
    opacity: .5;
}
.pipeline-dot {
    position: absolute;
    left: calc(3rem - 3px);
    top: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    animation: pipe 3.2s linear infinite;
    z-index: 2;
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 3.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -7px; top: .25rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 14px rgba(59,130,246,.5);
    z-index: 2;
    animation: pulse 2.4s ease-in-out infinite;
}
.timeline-item:nth-child(2) .timeline-dot { animation-delay: .3s; }
.timeline-item:nth-child(3) .timeline-dot { animation-delay: .6s; }
.timeline-item:nth-child(4) .timeline-dot { animation-delay: .9s; }
.timeline-item:nth-child(5) .timeline-dot { animation-delay: 1.2s; }

.timeline-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: border-color .3s, box-shadow .3s;
}
.timeline-content:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 20px rgba(59,130,246,.1);
}
.timeline-period {
    font-family: var(--font-mono);
    font-size: .69rem; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: .5rem;
}
.timeline-role { font-size: 1.1rem; font-weight: 600; color: var(--text-strong); margin-bottom: .25rem; }
.timeline-company {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-light);
    margin-bottom: .8rem;
}
.timeline-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.timeline-tags span {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--accent-light);
    border: 1px solid var(--border-strong);
    padding: .3rem .7rem;
    border-radius: 7px;
    transition: border-color .2s, background .2s;
}
.timeline-tags span:hover {
    border-color: var(--accent-light);
    background: rgba(96,165,250,.07);
}

/* ── STACK PAGE ── */
.stack-page { margin-top: 60px; }

.stack-hdr {
    padding: 5rem 3rem 3rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}
.stack-intro { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }

.stack-grid { display: grid; grid-template-columns: repeat(4,1fr); }

/* Responsive fixes for About page to prevent horizontal overflow */
@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-content { padding-right: 0; }
    .about-photo { justify-content: center; }
    .about-photo, .avatar-node { overflow: visible; scrollbar-width: none; -ms-overflow-style: none; }
    .about-photo::-webkit-scrollbar, .avatar-node::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .profile-img { max-width: 220px; }
    /* Make profile cards stack and be narrower to avoid horizontal scroll */
    .devops-profile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .profile-card { padding: 1rem; }
    .strengths-grid { grid-template-columns: 1fr; }
}
.stack-cat {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
    position: relative;
    overflow: hidden;
}
.stack-cat:nth-child(4n) { border-right: none; }
.stack-cat:nth-last-child(-n+4) { border-bottom: none; }
.stack-cat:hover { background: rgba(59,130,246,.03); }

/* Animated left-border sweep on hover */
.stack-cat::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--grad);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s ease;
}
.stack-cat:hover::before { transform: scaleY(1); }

.stack-cat-hdr {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.2rem;
}
.stack-cat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}
.stack-cat:hover .stack-cat-dot { animation: pulse .8s ease-in-out; }

.stack-cat-lbl {
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-light);
}

.stack-items { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.stack-items li {
    font-size: .88rem;
    font-weight: 400;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.stack-items li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    opacity: .5;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── PROYECTOS PAGE ── */
.proyectos-page { margin-top: 60px; }
.proj-hdr { padding: 5rem 3rem 3rem; border-bottom: 1px solid var(--border); }

.proj-list { padding: 0 3rem 4rem; }

.proj-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    align-items: start;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: background .2s;
}
/* Sweep-light bottom border on hover */
.proj-row::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.proj-row:hover::after { transform: scaleX(1); }

.proj-num {
    font-family: var(--font-mono);
    font-size: 2.4rem; font-weight: 700;
    color: var(--border-strong);
    line-height: 1.1;
    transition: color .3s, text-shadow .3s;
    user-select: none;
}
.proj-row:hover .proj-num {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(59,130,246,.5);
}
.proj-info h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-strong); margin-bottom: .3rem; }
.proj-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .8rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.proj-tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--accent-light);
    border: 1px solid var(--border-strong);
    padding: .3rem .8rem;
    border-radius: 7px;
    transition: border-color .2s, background .2s;
}
.proj-tag:hover { border-color: var(--accent-light); background: rgba(96,165,250,.07); }
.proj-link {
    font-family: var(--font-mono);
    font-size: .85rem; font-weight: 500;
    text-decoration: none;
    color: var(--accent-light);
    white-space: nowrap;
    align-self: center;
    position: relative;
    transition: color .2s;
}
.proj-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--accent-light);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.proj-row:hover .proj-link::after { transform: scaleX(1); }

/* ── FORMACIÓN PAGE ── */
.formacion-page { margin-top: 60px; }

.tl-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 2rem;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }
.tl-period {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-faint);
    padding-top: .15rem;
    line-height: 1.5;
}
.tl-role { font-size: 1rem; font-weight: 600; color: var(--text-strong); margin-bottom: .2rem; }
.tl-co { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-light); margin-bottom: .5rem; }
.tl-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* Cert rows */
.cert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .2s;
    border-radius: 4px;
}
.cert-row:hover { background: rgba(59,130,246,.03); }
.cert-row:hover .cert-dot { animation: pulse .8s ease-in-out; }

.cert-row-content { display: flex; align-items: flex-start; gap: 1.2rem; flex: 1; }
.cert-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: .35rem;
    background: var(--grad);
}
.cert-row-period {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--accent-cyan);
    white-space: nowrap;
    padding-top: .1rem;
    min-width: 3rem;
}
.cert-row-info { flex: 1; }
.cert-row-role { font-size: .95rem; font-weight: 600; color: var(--text-strong); margin-bottom: .15rem; }
.cert-row-co { font-family: var(--font-mono); font-size: .75rem; color: var(--accent-light); margin-bottom: .3rem; }
.cert-row-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }

.cert-btn {
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 500;
    letter-spacing: .06em;
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--accent-light);
    padding: .6rem 1rem;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    flex-shrink: 0;
}
.cert-btn:hover { border-color: var(--accent-light); background: rgba(96,165,250,.08); }

/* Cert modal */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7,11,24,.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}
.cert-modal-overlay.open { display: flex; }
.cert-modal {
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 90%; max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(59,130,246,.15);
}
.cert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cert-modal-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-strong); }
.cert-modal-actions { display: flex; align-items: center; gap: 1rem; }
.cert-modal-download {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent-light);
    text-decoration: none;
    padding: .5rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    transition: border-color .2s, background .2s;
}
.cert-modal-download:hover { border-color: var(--accent-light); background: rgba(96,165,250,.08); }
.cert-modal-close {
    background: none; border: none;
    color: var(--text-faint); cursor: pointer;
    font-size: 1.2rem; padding: .3rem .5rem;
    transition: color .2s;
    line-height: 1;
}
.cert-modal-close:hover { color: var(--text); }
.cert-modal-body { flex: 1; overflow: hidden; }
.cert-modal-body iframe { width: 100%; height: 100%; min-height: 500px; border: none; }

/* Formación pipeline decoration */
.certs-pipeline {
    position: relative;
}
.certs-pipeline::before {
    content: '';
    position: absolute;
    left: .4rem; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-cyan));
    opacity: .3;
}

/* ── CONTACTO PAGE ── */
.contact-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}
.contact-col-left {
    padding: 5rem 3rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.contact-left-inner { flex: 1; }
.contact-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: .69rem; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent-light);
}
.contact-label-line { display: inline-block; width: 2rem; height: 1px; background: var(--accent); opacity: .4; }
.contact-title {
    font-size: clamp(2rem,3.5vw,3rem);
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 3rem;
}
.contact-links { display: flex; flex-direction: column; gap: 1.2rem; }

/* Contact node connecting lines (decorative) */
.contact-col-left .contact-links {
    position: relative;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    transition: border-color .3s, box-shadow .3s;
}
.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(59,130,246,.1);
}
.contact-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(59,130,246,.12);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}
.contact-card-info { flex: 1; min-width: 0; }
.contact-card-label {
    font-family: var(--font-mono);
    font-size: .69rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .1em;
    display: block;
    margin-bottom: .3rem;
}
.contact-card-value {
    font-size: .95rem;
    color: var(--text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-email-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}
.contact-email-btn:hover { border-color: var(--accent-light); background: rgba(96,165,250,.08); }

.contact-col-right { padding: 5rem 3rem; overflow-y: auto; }
.contact-form-inner { max-width: 520px; }
.contact-form-header { margin-bottom: 2rem; }
.contact-form-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-strong); margin-bottom: .5rem; }
.contact-form-header p { color: var(--text-muted); font-size: .9rem; }

/* Form */
.cf { display: flex; flex-direction: column; gap: 1.2rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cf-group { display: flex; flex-direction: column; gap: .5rem; }
.cf-label {
    font-family: var(--font-mono);
    font-size: .69rem; font-weight: 500;
    letter-spacing: .08em;
    color: var(--text-faint);
}
.cf-input, .cf-textarea {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.cf-input:focus, .cf-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--text-faint); }
.cf-textarea { min-height: 140px; resize: vertical; }

.cf-consent-label {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: pointer;
}
.cf-checkbox {
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: .15rem;
    accent-color: var(--accent);
    cursor: pointer;
}
.consent-link { color: var(--accent-light); text-decoration: none; }
.consent-link:hover { text-decoration: underline; }

.cf-submit {
    background: var(--grad);
    color: #04122e;
    font-family: var(--font-mono);
    font-size: .85rem; font-weight: 700;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    width: 100%;
    margin-top: .5rem;
}
.cf-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.cf-input-error { border-color: rgba(239,68,68,.6) !important; }
.cf-field-error {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: rgba(239,68,68,.9);
    margin-top: .2rem;
}
.cf-status {
    font-family: var(--font-mono);
    font-size: .78rem;
    padding: .8rem 1rem;
    border-radius: 7px;
    margin-top: .5rem;
}
.cf-status.ok { background: rgba(34,211,238,.1); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }
.cf-status.err { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.4); color: rgba(239,68,68,.9); }

/* Privacy modal */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7,11,24,.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}
.privacy-modal-overlay.open { display: flex; }
.privacy-modal {
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 90%; max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(59,130,246,.15);
}
.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.privacy-modal-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-strong); }
.privacy-modal-close {
    background: none; border: none;
    color: var(--text-faint); cursor: pointer;
    font-size: 1.2rem; padding: .3rem .5rem;
    transition: color .2s;
    line-height: 1;
}
.privacy-modal-close:hover { color: var(--text); }
.privacy-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.privacy-modal-body h3 { color: var(--text-strong); font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.privacy-modal-body ul { padding-left: 1.5rem; }
.privacy-modal-body a { color: var(--accent-light); text-decoration: none; }
.privacy-modal-body a:hover { text-decoration: underline; }

/* ── PROYECTO DETALLE ── */
.detalle-page { margin-top: 60px; }
.detalle-tag {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--accent-light);
    background: rgba(96,165,250,.08);
    border: 1px solid var(--border-strong);
    padding: .45rem 1rem;
    border-radius: 7px;
}
.detalle-block {
    margin-bottom: 3rem;
    padding: 1.8rem;
    background: var(--panel);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.detalle-block-results { border-color: var(--accent-cyan); }
.detalle-block h3 {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 1rem;
}
.detalle-block-results h3 { color: var(--accent-cyan); }
.detalle-list { list-style: none; }
.detalle-list li {
    color: var(--text-muted);
    margin-bottom: .8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: .95rem;
    line-height: 1.65;
}
.detalle-list li .li-icon {
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.detalle-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.detalle-feature-item {
    color: var(--text-muted);
    padding: 1rem;
    background: var(--panel);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: .9rem;
    line-height: 1.6;
}
.detalle-tech-block {
    padding: 2rem;
    background: var(--panel);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.detalle-tech-block h3 { font-size: 1rem; font-weight: 600; color: var(--text-strong); margin-bottom: 1rem; }
.detalle-tech-block p { color: var(--text-muted); line-height: 1.8; }

.other-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.other-proj-card {
    padding: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .3s, transform .3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.other-proj-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.other-proj-num {
    font-size: 2rem; font-weight: 700;
    color: var(--accent);
    margin-bottom: .5rem;
    font-family: var(--font-mono);
}
.other-proj-title { font-size: 1rem; font-weight: 600; color: var(--text-strong); margin-bottom: .6rem; }
.other-proj-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.other-proj-link { margin-top: 1rem; color: var(--accent-light); font-weight: 600; font-size: .9rem; }

/* ── LEGAL PAGES ── */
.legal-page { padding: 5rem 3rem; margin-top: 60px; }
.legal-content { max-width: 800px; }
.legal-content h3 {
    color: var(--text-strong);
    font-size: 1rem; font-weight: 600;
    margin-top: 2.5rem; margin-bottom: 1rem;
}
.legal-content p { color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: .8rem; }
.legal-content ul { list-style: none; color: var(--text-muted); font-size: .95rem; line-height: 1.8; }
.legal-content ul li { margin-bottom: .4rem; }
.legal-content a { color: var(--accent-light); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-highlight {
    background: rgba(59,130,246,.07);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    margin-top: 2.5rem;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
}

/* ── SUCCESS ALERT ── */
.alert-success {
    padding: 1rem 1.2rem;
    background: rgba(34,211,238,.08);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-size: .9rem;
}

/* ── RESPONSIVE PAGE-LEVEL ── */
@media (max-width: 900px) {
    .about-section { grid-template-columns: 1fr; }
    .about-content { padding-right: 0; }
    .about-photo { order: -1; margin-top: 0; margin-bottom: 2rem; justify-content: center; }
    .devops-profile { grid-template-columns: 1fr; }
    .strengths-grid { grid-template-columns: 1fr; }

    .timeline-wrap { padding: 3rem 1.5rem 3rem 3rem; }
    .pipeline-line { left: 1.5rem; }
    .pipeline-dot { left: calc(1.5rem - 3px); }
    .timeline-item { padding-left: 2.5rem; }
    .timeline-dot { left: -7px; }

    .stack-hdr { grid-template-columns: 1fr; gap: 1rem; padding: 4rem 1.5rem 2rem; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .stack-cat { padding: 2rem 1.5rem; }
    .stack-cat:nth-child(4n) { border-right: 1px solid var(--border); }
    .stack-cat:nth-child(2n) { border-right: none; }

    .proj-hdr { padding: 4rem 1.5rem 2rem; }
    .proj-list { padding: 0 1.5rem 3rem; }
    .proj-row { padding: 2rem 0; grid-template-columns: 3.5rem 1fr; }
    .proj-link { display: none; }

    .contact-page { grid-template-columns: 1fr; }
    /* Allow the single-column grid items to shrink below their min-content
       (the nowrap LinkedIn URL) so cards/inputs don't overflow off-screen. */
    .contact-col-left, .contact-col-right { min-width: 0; }
    .contact-col-left { border-right: none; border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
    .contact-col-right { padding: 3rem 1.5rem; }

    .legal-page { padding: 3rem 1.5rem; }

    .detalle-features { grid-template-columns: 1fr; }
    .other-proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .stack-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .cert-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cert-row-content { width: 100%; }
    .cert-btn { align-self: flex-end; }
    .proj-num { font-size: 1.8rem; }
    .tl-item { grid-template-columns: 5rem 1fr; gap: 1rem; }
}
