/*generales*/
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Pirata+One&display=swap');

html{
  scroll-padding-top: var(--nav-offset);
  scroll-behavior: smooth; /* opcional */
}

body {
    color: white;
    text-align: center;
    background-color: #121E33;
}

p {
    font-family: "Inter", sans-serif;
}

.text-highlight {
    font-weight: 700;
    color: #CEB5D3;
    font-style: italic;
}

h1 {
    color: #CEB5D3;
    font-size: 60px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: weight;
    font-style: normal;
}

h2 {
    color: #CEB5D3;
    padding-bottom: 30px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: weight;
    font-style: normal;
}

h4 {
    color: #CEB5D3;
    padding-bottom: 20px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: weight;
    font-style: normal;
}

h5 {
    color: #4F7AB1;
    font-weight: bold;
}

.empresa {
    color: #CEB5D3;
}

body {
	background: linear-gradient(-45deg, #562862, #3A3E6C, #1B2D52, #a377c7);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	height: 400vh;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}


/*secciones*/


nav a {
    transition: all .5s ease;
}

nav a:hover {
    background-color: #4F7AB1;
    transform: scale(1.1);
}

.navbar {
  padding: 0;
  background-color: #102C54;
  position: sticky;
  top: 0;
  z-index: 9999;

}

.navbar-brand img {
  max-height: 40px;   /* ← ajusta entre 32–44 según gusto */
  width: auto;
}

.navbar .nav-link {
    display: flex;
    /* o block */
    align-items: center;
    padding: 20px 20px;
    /* aquí va el padding */
    height: 100%;
}

/* ===== Scroll offset para navbar sticky ===== */
:root {
    --nav-offset: 90px;
    /* valor base */
}

#portfolio,
#tutoriales{
scroll-margin-top: var(--nav-offset);
}

#portfolio > h2,
#tutoriales > h2{
  margin-top: 0;
}

header {
    padding-top: 70px;
    padding-bottom: 80px;
}

.myself {
    padding-bottom: 70px;
}

.myself img {
    padding-left: 50px;
    padding-bottom: 10px;
    width: 250px;
}

.aboutme {
    text-align: left;
}

.programs {
    text-align: right;
}

.xp {
    padding-bottom: 70px;
}

.skills {
    padding: 60px 0;
    padding-bottom: 60px;
}

.cando {
    text-align: left;
}

.cando p {
    padding-right: 90px;
}



.timeline {
    padding: 60px 0;
}

.timeline-grid {
    position: relative;
    display: grid;
    row-gap: 60px;
}

/* Línea central REAL (animable) */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    /* inicia vacía */
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: height 0.12s linear;
    z-index: 0;
}

/* Asegura capas correctas */
.t-event {
    position: relative;
    z-index: 1;
}

.t-dot,
.t-card {
    position: relative;
    z-index: 2;
}

/* Cada evento es un grid de 3 columnas: izquierda | centro | derecha */
.t-event {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    position: relative;
}

/* Tarjeta */
.t-card {
    padding: 10px 14px;
    max-width: 440px;
}

/* IZQ / DER */
.t-event.left .t-card {
    grid-column: 1;
    justify-self: end;
    text-align: right;
}

.t-event.right .t-card {
    grid-column: 3;
    justify-self: start;
    text-align: left;
}

/* Punto (se alinea al inicio del bloque, puedes moverlo con top) */
.t-dot {
    grid-column: 2;
    justify-self: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ceb5da;
    /* tu rosa */
    box-shadow: 0 0 0 6px rgba(206, 181, 218, 0.25);
    margin-top: 6px;
    /* ajusta altura respecto al título */
}

.language {
    text-align: right;
}

.language p {
    padding-left: 90px;
}

#portafolio {
    scroll-margin-top: 200px;
    /* ajusta al alto de tu navbar */
    padding-top: 140px;
    margin-top: -140px;
}

.portafolio {
    padding-bottom: 70px;
}

.card-portfolio {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
}

.card-portfolio::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(206, 181, 218, 0.7);
    /* rosa */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #102c54;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.card-portfolio:hover::after {
    opacity: 1;
}

.card-portfolio:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.tutorials {
    padding-bottom: 70px;
}

.card-tutorials {
    position: relative;
    /* CLAVE */
    overflow: hidden;
    /* para que el overlay no se salga */
    display: inline-block;
    /* opcional */
}

.card-tutorials img {
    display: block;
    /* elimina espacios fantasma */
}

/* overlay rosa */
.card-tutorials::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(206, 181, 218, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    /*  importante */
}

/* texto */
.card-info-tutorials {
    position: absolute;
    inset: 0;
    z-index: 2;
    /*  encima del overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #102c54;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* hover */
.card-tutorials:hover::after {
    opacity: 1;
}

.card-tutorials:hover .card-info-tutorials {
    opacity: 1;
    transform: translateY(0);
}


footer {
    background-color: #4F7AB1;
    padding-bottom: 40px;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

footer h2 {
    color: white;
    padding-bottom: 0px;
    padding-top: 40px;
}

footer img {
    width: 12%;
    padding-left: 10px;
    padding-right: 10px;
}


/* pagina de foto documental */

.documentary img {
    max-width: 100%;
    height: auto;
    padding-bottom: 50px;
}

.intro {
    text-align: right;
}

.intro h4 {
    text-align: right;
}

.river p {
    text-align: left;
    padding-bottom: 50px;
}

.river h2,
h4 {
    text-align: left;
}

.river-img {
    padding-top: 70px;
}

.path p {
    text-align: right;
    margin-bottom: 60px;
}

.path-images {
    padding-top: 80px;
}

/* pagina de diseño editorial y de foto de producto */

.editorial img {
    max-width: 100%;
    height: auto;
}

/* pagina de foto de producto*/

.herramientas p {
    text-align: left;
}

.herramientas img {
    padding-bottom: 40px;
}

/*pagina de tutoriales*/

.guide img{
    max-width: 100%;
    height: auto;
}

/* contenedor con borde redondeado y margen blanco opcional */


/* contenedor real del comparador */
.img-compare{
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 800px; /* fija una altura estable (evita “saltos”) */
}

/* ambas imágenes siempre del mismo tamaño */
.img-compare-base,
.img-compare-top{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* lo único que cambia */
.img-compare-reveal{
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

/* manija */
.img-compare-handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.95);
}

.img-compare-handle::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.img-compare-handle::after{
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 18px;
  color: #111;
  font-weight: 700;
}

/* media queries */
@media (max-width: 576px) {

    h1 {
        font-size: 50px;
    }

    .aboutme {
        padding-bottom: 20px;
    }

    .programs {
        text-align: left;
    }

    .programs img {
        padding-left: 0px;
        padding-right: 50px;
        padding-bottom: 10px;
        width: 250px;
    }


    .cando {
        padding-bottom: 20px;
    }


    .language {
        text-align: left;
    }

    .language p {
        padding-left: 0px;
    }

    .estudios {
        text-align: left;
    }

    .footer-right {
        text-align: left;
    }

}

@media (max-width: 768px) {

    /* subpaginas */
    .intro {
        text-align: center;
    }
}