/* =================================
   CONFIGURACIÓN GENERAL
================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #F7F4F7;
    color: #555;
}

/* =================================
   CABECERA Y MENÚ
================================= */

.cabecera {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 85px;
    padding: 15px 35px;
    background: #FFF;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    color: #555;
    font-size: 17px;
    font-weight: bold;
    white-space: nowrap;
}

.logo span {
    font-weight: normal;
}

.menu {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    background: transparent;
    transform: translateX(-50%);
}

.opcion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 25px;
    color: #555;
    background: transparent;
    text-decoration: none;
    transition: 0.3s ease;
}

.opcion span {
    font-size: 14px;
}

.opcion .icono {
    color: #DDA0DD;
    font-size: 15px;
}

.opcion:hover {
    background: #F4E5F4;
    transform: translateY(-2px);
}

.opcion.inicio {
    color: #FFF;
    background: #DDA0DD;
}

.opcion.inicio .icono {
    color: #FFF;
}


.idiomas {
    position: absolute;
    top: 8px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 12px;
}

.idioma {
    padding: 0;
    border: none;
    outline: none;
    background: none;
    color: #777;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.idioma:hover,
.idioma.activo {
    color: #A477B2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}


/* =================================
   PORTADA
================================= */

.portada {
    position: relative;
    overflow: hidden;
    padding: 110px 8% 40px;
    background: #F7F4F7;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    width: 100%;
    max-width: 1150px;
    margin: auto;
}

.hero-foto {
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 380px;
}

/* Marco blanco y destello animado: ambos efectos se mantienen en un único bloque. */

@property --angulo {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.foto-marco {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    border-radius: 35px;
    background: #FFF;
    box-shadow: none;
}

.foto-marco::after {
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 35px;
    background: conic-gradient(
        from var(--angulo),
        transparent 0deg,
        transparent 300deg,
        #D9B8E8 325deg,
        #FFF 345deg,
        #A477B2 355deg,
        transparent 360deg
    );
    content: "";
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: recorrerBorde 7s linear infinite;
}

.foto-marco img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 23px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2);
}

@keyframes recorrerBorde {
    to {
        --angulo: 360deg;
    }
}

.decoracion-foto {
    position: absolute;
    top: -55px;
    left: -55px;
    z-index: 1;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #EBDCF0;
}

/* =================================
   TEXTO DE PORTADA
================================= */

.hero-texto {
    position: relative;
    z-index: 3;
    flex: 1;
    max-width: 550px;
}

.hero-logo {
    margin-bottom: 25px;
}

.hero-logo img {
    width: auto;
    height: auto;
    max-width: 125px;
    max-height: 75px;
    object-fit: contain;
}

.saludo {
    display: block;
    margin-bottom: 15px;
    color: #B17CBF;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero-texto h1 {
    margin: 0;
    color: #514956;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.08;
}

.linea-decorativa {
    width: 75px;
    height: 3px;
    margin: 25px 0;
    background: #DDA0DD;
}

.descripcion {
    max-width: 420px;
    margin-bottom: 30px;
    color: #77717A;
    font-size: 16px;
    line-height: 1.8;
}

.hero-texto .boton {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    border: 1px solid #DDA0DD;
    border-radius: 30px;
    color: #FFF;
    background: #DDA0DD;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-texto .boton:hover {
    border-color: #B77CBF;
    background: #B77CBF;
    transform: translateY(-3px);
}

.texto-fondo {
    position: absolute;
    bottom: -45px;
    left: 5%;
    z-index: 1;
    color: rgba(221, 160, 221, 0.08);
    font-size: clamp(90px, 15vw, 200px);
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
}

/* =================================
   ESTILOS COMPARTIDOS DE SECCIONES
================================= */

.section:not(.portada) {
    padding: 110px 8% 60px;
    background: #F7F4F7;
}

.section:not(.portada) h1 {
    color: #514956;
    font-size: 40px;
    font-weight: 300;
}

.section:not(.portada) p {
    color: #77717A;
    line-height: 1.8;
}

.etiqueta-seccion {
    color: #B17CBF;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

/* =================================
   SOBRE MÍ
================================= */

.sobre-mi {
    overflow: hidden;
}

.perfil-contenido {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.perfil-encabezado {
    margin-bottom: 30px;
}

.perfil-encabezado h1 {
    margin: 10px 0;
    color: #514956;
    font-size: 40px;
    font-weight: 300;
}

.perfil-encabezado .linea-decorativa {
    margin: 15px 0;
}

.datos-perfil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 35px;
    padding: 25px;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 8px 30px rgba(130, 90, 140, 0.06);
}

.dato {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dato > i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #B17CBF;
    background: #F4E8F5;
    font-size: 17px;
}

.dato span {
    color: #B17CBF;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dato p {
    margin: 5px 0 0;
    color: #514956;
    font-size: 14px;
}

.presentacion-perfil {
    margin-top: 25px;
    padding: 25px 30px;
    border-radius: 20px;
    background: #EBDCF0;
}

.presentacion-perfil h2 {
    margin: 0 0 12px;
    color: #514956;
    font-size: 24px;
    font-weight: 400;
}

.presentacion-perfil p {
    margin: 0;
    color: #6F6672;
    font-size: 14px;
    line-height: 1.9;
}

/* =================================
   EXPERIENCIA
================================= */

#fullpage .experiencia {
    height: 100vh !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.experiencia-scroll {
    width: 100%;
    height: 100vh;
    padding: 110px 30px 70px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-color: #C5A3D0 #F7F4F7;
    scrollbar-width: thin;
}

.experiencia-scroll::-webkit-scrollbar,
.huella-scroll::-webkit-scrollbar {
    width: 8px;
}

.experiencia-scroll::-webkit-scrollbar-track,
.huella-scroll::-webkit-scrollbar-track {
    background: #F7F4F7;
}

.experiencia-scroll::-webkit-scrollbar-thumb,
.huella-scroll::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #C5A3D0;
}

.experiencia-scroll::-webkit-scrollbar-thumb:hover,
.huella-scroll::-webkit-scrollbar-thumb:hover {
    background: #A477B2;
}

.experiencia-contenido {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.experiencia-encabezado {
    margin-bottom: 40px;
    text-align: center;
}

.experiencia-encabezado h1 {
    margin: 10px 0;
    color: #514956;
    font-size: 40px;
    font-weight: 300;
}

.experiencia-encabezado p {
    color: #6F6672;
    font-size: 14px;
    line-height: 1.7;
}

.experiencia-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 65px;
}

.experiencia-timeline::before {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 21px;
    width: 2px;
    background: #DCC5E3;
    content: "";
}

.experiencia-item {
    position: relative;
}

.experiencia-icono {
    position: absolute;
    top: 20px;
    left: -65px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #A477B2;
    background: #EBDCF0;
    font-size: 18px;
}

.experiencia-card {
    position: relative;
    padding: 25px 30px;
    border-radius: 18px;
    background: #FFF;
    box-shadow: 0 8px 30px rgba(130, 90, 140, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experiencia-card:hover {
    box-shadow: 0 12px 30px rgba(130, 90, 140, 0.12);
    transform: translateX(5px);
}

.experiencia-numero {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #EBDCF0;
    font-size: 30px;
    font-weight: bold;
}

.experiencia-tipo {
    color: #B17CBF;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.experiencia-card h2 {
    margin: 10px 0;
    color: #514956;
    font-size: 21px;
    font-weight: 500;
}

.experiencia-duracion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #A477B2;
    font-size: 12px;
}

.experiencia-card p {
    margin: 0;
    color: #6F6672;
    font-size: 13px;
    line-height: 1.8;
}

/* =================================
   PROYECTOS Y TARJETAS GIRATORIAS
================================= */

.proyectos {
    overflow: hidden;
}

.proyectos-contenido {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.proyectos-encabezado {
    margin-bottom: 35px;
    text-align: center;
}

.proyectos-encabezado h1 {
    margin: 10px 0;
    color: #514956;
    font-size: 40px;
    font-weight: 300;
}

.proyectos-encabezado p {
    color: #6F6672;
    font-size: 14px;
    line-height: 1.7;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    perspective: 1200px;
}

.proyecto-card {
    width: 100%;
    height: 490px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    perspective: 1200px;
}

.proyecto-card-interior {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.proyecto-card.volteada .proyecto-card-interior {
    transform: rotateY(180deg);
}

.proyecto-cara {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 8px 30px rgba(130, 90, 140, 0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.proyecto-detras {
    justify-content: center;
    padding: 30px;
    background: linear-gradient(145deg, #F5EDF7, #EBDCF0);
    transform: rotateY(180deg);
}

.proyecto-card:focus-visible {
    outline: 3px solid #B17CBF;
    outline-offset: 5px;
}

.proyecto-card:not(.volteada):hover .proyecto-cara {
    box-shadow: 0 12px 35px rgba(130, 90, 140, 0.16);
}

.proyecto-imagen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
}

.proyecto-imagen i {
    color: #FFF;
    font-size: 65px;
}

.proyecto-imagen span {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #FFF;
    font-size: 20px;
    opacity: 0.8;
}

.portfolio-imagen {
    background: linear-gradient(135deg, #C9A6D4, #8F6AA6);
}

.marketing-imagen {
    background: linear-gradient(135deg, #E5C9E9, #B17CBF);
}

.proyecto-info {
    padding: 25px;
}

.proyecto-estado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: #56845C;
    background: #E8F3E9;
    font-size: 11px;
    font-weight: bold;
}

.proyecto-estado.proximo {
    color: #A477B2;
    background: #F4E8F5;
}

.proyecto-info h2 {
    margin: 15px 0 10px;
    color: #514956;
    font-size: 21px;
    font-weight: 500;
}

.proyecto-info p {
    min-height: 70px;
    color: #6F6672;
    font-size: 13px;
    line-height: 1.8;
}

.proyecto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.proyecto-tecnologias span {
    padding: 6px 10px;
    border-radius: 8px;
    color: #9874A3;
    background: #F7F1F8;
    font-size: 11px;
}

.proyecto-numero {
    margin-bottom: 15px;
    color: #A477B2;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
}

.proyecto-detras h2 {
    margin: 0 0 25px;
    color: #514956;
    font-size: 23px;
}

.detalle-proyecto {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}

.detalle-proyecto > i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #A477B2;
    background: #FFF;
}

.detalle-proyecto span {
    color: #A477B2;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detalle-proyecto p {
    margin: 3px 0 0;
    color: #514956;
    font-size: 13px;
}

.proyecto-extra {
    margin: 8px 0 15px;
    color: #6F6672;
    font-size: 12px;
    line-height: 1.7;
}

.girar-indicacion {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    color: #A477B2;
    font-size: 11px;
    text-align: center;
}

/* =================================
   TU HUELLA
================================= */

#fullpage .tu-huella {
    height: 100vh !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.tu-huella {
    background: #F7F4F7;
    text-align: center;
}

.huella-scroll {
    width: 100%;
    height: 100vh;
    padding: 110px 30px 80px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #C5A3D0 #F7F4F7;
    scrollbar-width: thin;
}

.huella-contenido {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.huella-contenido h1 {
    color: #654477;
}

.huella-contenido p {
    max-width: 650px;
    margin: 20px auto;
    line-height: 1.7;
}

.huella-icono {
    margin: 25px 0;
    color: #A477B2;
    font-size: 75px;
}

#analizar-huella {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    margin: 20px auto 0;
    padding: 12px 23px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    color: #FFF;
    background: linear-gradient(135deg, #A987BA, #806092);
    box-shadow: 0 5px 14px rgba(128, 96, 146, 0.18);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#analizar-huella::before {
    content: "\f577";
    font-family: "Font Awesome 6 Free";
    font-size: 15px;
    font-weight: 900;
    margin-right: 8px;
}

#analizar-huella:hover {
    background: linear-gradient(135deg, #B99BC8, #906FA2);
    box-shadow: 0 8px 20px rgba(128, 96, 146, 0.28);
    transform: translateY(-3px);
}

#analizar-huella:active {
    transform: scale(0.97);
}

#analizar-huella:focus-visible {
    outline: 3px solid #C5A3D0;
    outline-offset: 4px;
}

#resultado-huella {
    max-width: 600px;
    margin: 25px auto 0;
}

.resultado-tarjeta {
    margin: 25px auto;
    padding: 30px;
    border-radius: 20px;
    color: #654477;
    background: #FFF;
    box-shadow: 0 8px 25px rgba(100, 68, 119, 0.12);
    animation: aparecerHuella 0.5s ease;
}

.resultado-tarjeta h2 {
    margin-bottom: 15px;
    color: #654477;
}

.resultado-estadistica {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 125px;
    margin: 8px;
    padding: 15px;
    border-radius: 14px;
    background: #F7F0FA;
}

.resultado-estadistica strong {
    color: #A477B2;
    font-size: 25px;
}

.resultado-estadistica span {
    font-size: 13px;
}

.resultado-tarjeta ul {
    padding: 0;
    list-style: none;
    line-height: 2;
}

@keyframes aparecerHuella {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   PIE DE PÁGINA
================================= */

footer {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 900;
    color: #777;
    font-size: 10px;
    pointer-events: none;
}

/* =================================
   TABLETS
================================= */

@media (max-width: 1050px) {
    .cabecera {
        height: auto;
        min-height: 100px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 25px 10px 10px;
    }

    .logo {
        display: none;
    }

    .menu {
        position: static;
        flex-wrap: wrap;
        gap: 3px;
        width: 100%;
        transform: none;
    }

    .opcion {
        padding: 10px;
    }

    .opcion span {
        font-size: 12px;
    }

    .idiomas {
        top: 5px;
        right: 12px;
    }

    .hero-contenido {
        gap: 40px;
    }

    .hero-foto {
        width: 300px;
        height: 350px;
    }

    .hero-texto h1 {
        font-size: 45px;
    }

    .portada {
        padding: 130px 25px 40px;
    }

    .section:not(.portada) {
        padding: 130px 30px 40px;
    }
}

/* =================================
   MÓVILES
================================= */

@media (max-width: 700px) {
    .cabecera {
        min-height: 100px;
        padding: 25px 5px 10px;
    }

    .menu {
        gap: 0;
    }

    .opcion {
        flex-direction: column;
        gap: 4px;
        padding: 8px 9px;
    }

    .opcion span {
        font-size: 10px;
    }

    .opcion .icono {
        font-size: 16px;
    }

    .portada {
        padding: 140px 20px 50px;
    }

    .hero-contenido {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-foto {
        width: 230px;
        height: 260px;
    }

    .decoracion-foto {
        top: -25px;
        left: -25px;
        width: 120px;
        height: 120px;
    }

    .hero-logo {
        margin-bottom: 15px;
    }

    .hero-logo img {
        max-width: 100px;
        max-height: 60px;
    }

    .hero-texto h1 {
        font-size: 42px;
    }

    .linea-decorativa {
        margin: 20px auto;
    }

    .descripcion {
        margin-right: auto;
        margin-left: auto;
        font-size: 14px;
    }

    .texto-fondo {
        bottom: -10px;
        font-size: 85px;
    }

    .section:not(.portada) {
        padding: 125px 20px 40px;
    }

    .datos-perfil {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .perfil-encabezado h1,
    .proyectos-encabezado h1,
    .experiencia-encabezado h1 {
        font-size: 32px;
    }

    .presentacion-perfil {
        padding: 20px;
    }

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

    .proyecto-card {
        height: 470px;
    }

    .proyecto-detras {
        padding: 22px;
    }

    .proyecto-imagen {
        height: 150px;
    }

    .experiencia-timeline {
        gap: 18px;
        padding-left: 50px;
    }

    .experiencia-timeline::before {
        left: 16px;
    }

    .experiencia-icono {
        left: -50px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .experiencia-card {
        padding: 22px 18px;
    }

    .experiencia-card h2 {
        font-size: 18px;
    }

    .experiencia-numero {
        right: 15px;
        font-size: 24px;
    }

    .experiencia-scroll {
        padding: 110px 20px 45px;
    }

    .huella-scroll {
        padding: 110px 20px 60px;
    }

    .resultado-tarjeta {
        padding: 18px;
    }

    .resultado-estadistica {
        min-width: 100px;
        padding: 12px;
    }

    footer {
        position: static;
        padding: 15px;
        text-align: center;
    }
}

/* =================================
   PREFERENCIAS DE MOVIMIENTO
================================= */

@media (prefers-reduced-motion: reduce) {
    .proyecto-card-interior,
    .experiencia-card,
    #analizar-huella {
        transition: none;
    }

    .foto-marco::after {
        animation: none;
    }

    .resultado-tarjeta {
        animation: none;
    }
}
