/* ===== GARRIPACHECO - PORTAFOLIO v4 ===== */
/* Estructura: hero → trayectoria (reseña + formación + logros) → prensa → modales */

:root {
    --gp-primary: #c70039;
    --gp-secondary: #ff1744;
    --gp-accent: #ff6b9d;
    --gp-bg-dark: #0a0a0a;
    --gp-bg-card: #141414;
    --gp-text: #ffffff;
    --gp-text-muted: #a0a0a0;
    --gp-border: #2a2a2a;
    --gp-gradient: linear-gradient(135deg, #c70039, #ff1744);
    --gp-glow: 0 0 40px rgba(199, 0, 57, 0.25);
    --gp-transition: all 0.35s ease;
    --gp-radius: 12px;
    --gp-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gp-bg-dark);
    color: var(--gp-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAV ===== */
.gp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.875rem 1.5rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gp-border);
}

.gp-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gp-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: var(--gp-transition);
}

.gp-nav-back:hover {
    color: var(--gp-primary);
}

/* ===== HERO PORTAFOLIO ===== */
/* Imagen en marco contenido (nunca desbordada), texto al lado / debajo */
.gp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 3rem) 1.5rem 3rem;
}

.gp-hero-inner {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* Marco de la foto: proporción controlada, sin desborde */
.gp-hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.gp-hero-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--gp-radius-lg);
    overflow: hidden;
    background: var(--gp-bg-card);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--gp-border),
        0 0 60px rgba(199, 0, 57, 0.12);
    position: relative;
}

.gp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Línea decorativa opcional junto a la foto */
.gp-hero-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40%;
    height: 4px;
    background: var(--gp-gradient);
    border-radius: 2px;
    z-index: 1;
}

/* Bloque de texto */
.gp-hero-text {
    text-align: left;
}

.gp-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gp-primary);
    margin-bottom: 1rem;
}

.gp-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.gp-hero-title span {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gp-hero-credential {
    font-size: 1.1rem;
    color: var(--gp-text-muted);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.gp-hero-desc {
    font-size: 1rem;
    color: var(--gp-text-muted);
    line-height: 1.65;
    max-width: 420px;
    margin-bottom: 2rem;
}

.gp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    background: var(--gp-gradient);
    color: white;
    border: none;
    border-radius: var(--gp-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gp-transition);
    box-shadow: 0 4px 20px rgba(199, 0, 57, 0.35);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.gp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 0, 57, 0.4);
}

/* ===== TRAYECTORIA (una sección, estructura clara) ===== */
.gp-trayectoria {
    padding: 4rem 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.gp-trayectoria h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.gp-trayectoria h2 span {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gp-resena {
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-left: 4px solid var(--gp-primary);
    border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}

.gp-resena p {
    color: var(--gp-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

.gp-dos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gp-caja {
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 1.75rem;
}

.gp-caja h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gp-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gp-border);
}

.gp-caja ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-caja li {
    color: var(--gp-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
}

.gp-caja li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: var(--gp-primary);
    border-radius: 50%;
}

.gp-caja.gp-logros li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gp-caja.gp-logros li strong {
    color: var(--gp-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.gp-caja.gp-logros li span {
    font-size: 0.8rem;
    color: var(--gp-text-muted);
}

.gp-leer {
    text-align: center;
    margin-top: 1.5rem;
}

.gp-leer button {
    background: transparent;
    border: none;
    color: var(--gp-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.gp-leer button:hover {
    color: var(--gp-primary);
}

/* ===== PRENSA (franja, un mensaje, un botón) ===== */
.gp-prensa {
    background: linear-gradient(180deg, rgba(199, 0, 57, 0.04) 0%, transparent 50%);
    border-top: 1px solid var(--gp-border);
    padding: 4rem 1.5rem;
    text-align: center;
}

.gp-prensa h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gp-prensa h2 span {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gp-prensa p {
    color: var(--gp-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.gp-prensa .gp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gp-gradient);
    color: white;
    border: none;
    border-radius: var(--gp-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 24px rgba(199, 0, 57, 0.35);
    transition: var(--gp-transition);
}

.gp-prensa .gp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(199, 0, 57, 0.4);
}

/* ===== SECCIÓN CONTENIDO (legacy) ===== */
.gp-section {
    padding: 4.5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.gp-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.gp-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.15rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.gp-section-title span {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gp-section-subtitle {
    text-align: center;
    color: var(--gp-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Bloque Reseña */
.gp-resena-block {
    margin-bottom: 2.5rem;
    padding: 1.75rem;
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
}

.gp-block-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gp-primary);
    margin-bottom: 0.75rem;
}

.gp-resena-text {
    color: var(--gp-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Dos columnas: Formación + Laureles */
.gp-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.gp-block {
    padding: 1.5rem;
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
}

.gp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-list li {
    color: var(--gp-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.gp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--gp-primary);
    border-radius: 50%;
}

.gp-laureles li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gp-laureles li strong {
    color: var(--gp-text);
    font-weight: 600;
}

.gp-laureles li span {
    font-size: 0.85rem;
    color: var(--gp-text-muted);
    opacity: 0.9;
    padding-left: 0.25rem;
}

/* CTAs de sección */
.gp-section-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.gp-cta-story {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: transparent;
    color: var(--gp-text);
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gp-transition);
    font-family: inherit;
}

.gp-cta-story:hover {
    border-color: var(--gp-primary);
    color: var(--gp-primary);
}

.gp-cta-galeria {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--gp-gradient);
    color: white;
    border: none;
    border-radius: var(--gp-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gp-transition);
    box-shadow: 0 6px 24px rgba(199, 0, 57, 0.4);
    font-family: inherit;
    letter-spacing: 0.02em;
}

.gp-cta-galeria:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(199, 0, 57, 0.45);
}

/* Sección Prensa: botón de impacto siempre visible */
.gp-section-prensa {
    background: linear-gradient(180deg, transparent 0%, rgba(199, 0, 57, 0.06) 50%, transparent 100%);
    border-top: 1px solid var(--gp-border);
    border-bottom: 1px solid var(--gp-border);
}

.gp-prensa-cta-wrap {
    text-align: center;
    margin-top: 1rem;
}

.gp-section-prensa .gp-cta-galeria {
    padding: 1.15rem 2.25rem;
    font-size: 1.1rem;
    min-width: 280px;
}

/* Grid de tarjetas */
.gp-cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gp-card {
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 1.75rem;
    transition: var(--gp-transition);
    cursor: pointer;
}

.gp-card:hover {
    border-color: rgba(199, 0, 57, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(199, 0, 57, 0.15);
    transform: translateY(-3px);
}

.gp-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-card-title i {
    color: var(--gp-primary);
    font-size: 1rem;
}

.gp-card p {
    color: var(--gp-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ===== MODALES ===== */
body.gp-modal-open {
    overflow: hidden !important;
}

.gp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gp-modal.active {
    display: flex;
    opacity: 1;
}

.gp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.gp-modal-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-lg);
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(199, 0, 57, 0.2);
    animation: gpModalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gpModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gp-modal-header {
    background: var(--gp-gradient);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gp-modal-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--gp-transition);
}

.gp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08) rotate(90deg);
}

.gp-modal-body {
    padding: 1.5rem;
    color: var(--gp-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gp-primary) var(--gp-bg-dark);
}

.gp-modal-body::-webkit-scrollbar {
    width: 10px;
}

.gp-modal-body::-webkit-scrollbar-track {
    background: var(--gp-bg-dark);
    border-radius: 10px;
    margin: 4px;
}

.gp-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gp-primary), #a4002e);
    border-radius: 10px;
    border: 2px solid var(--gp-bg-card);
}

.gp-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1744, var(--gp-primary));
}

/* Modal ancho para narrativa */
.gp-modal-wide {
    max-width: 640px;
}

.gp-modal-body-narrative {
    max-height: 70vh;
    scrollbar-width: thin;
    scrollbar-color: var(--gp-primary) var(--gp-bg-dark);
}

.gp-modal-body-narrative::-webkit-scrollbar {
    width: 10px;
}

.gp-modal-body-narrative::-webkit-scrollbar-track {
    background: var(--gp-bg-dark);
    border-radius: 10px;
    margin: 4px;
}

.gp-modal-body-narrative::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gp-primary), #a4002e);
    border-radius: 10px;
    border: 2px solid var(--gp-bg-card);
}

.gp-modal-body-narrative::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1744, var(--gp-primary));
}

.gp-narrative p {
    margin: 0 0 1rem;
    color: var(--gp-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.gp-narrative p:last-of-type {
    margin-bottom: 1.5rem;
}

.gp-narrative-highlight {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--gp-primary);
    background: rgba(199, 0, 57, 0.08);
    border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
}

.gp-narrative-highlight p {
    margin: 0 0 0.5rem;
    color: var(--gp-text);
    font-weight: 600;
    font-size: 1.05rem;
}

.gp-narrative-highlight p:last-child {
    margin-bottom: 0;
}

.gp-galeria-placeholder {
    text-align: center;
    color: var(--gp-text-muted);
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .gp-hero-photo-wrap {
        max-width: 280px;
    }

    .gp-hero-photo-wrap::after {
        right: 50%;
        transform: translateX(50%);
        width: 60px;
    }

    .gp-hero-text {
        text-align: center;
    }

    .gp-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .gp-hero-cta {
        margin: 0 auto;
    }

    .gp-trayectoria {
        padding: 3rem 1rem;
    }

    .gp-dos {
        grid-template-columns: 1fr;
    }

    .gp-prensa {
        padding: 3rem 1rem;
    }

    .gp-section {
        padding: 3.5rem 1rem;
    }

    .gp-two-cols {
        grid-template-columns: 1fr;
    }

    .gp-section-ctas {
        flex-direction: column;
    }

    .gp-cta-story {
        width: 100%;
        justify-content: center;
    }

    .gp-section-prensa .gp-cta-galeria {
        width: 100%;
        min-width: unset;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gp-hero {
        padding: calc(60px + 2rem) 1rem 2rem;
    }

    .gp-hero-photo-wrap {
        max-width: 260px;
    }

    .gp-nav {
        padding: 0.75rem 1rem;
    }

    .gp-modal-container {
        max-height: 85vh;
    }
}
