/* estilos.css - Selen Design Portfolio - Responsive Fixes */
/* ACTUALIZACION 15/9/2026 */

:root {
    --black-cherry: #6f1417;
    --rosy-taupe: #b5868a;
    --alabaster-grey: #eeeeed;
    --platinum: #f1f1f1;
    --champagne-gold: #bfa47a;
    --coffee-bean: #271818;


    --shadow-soft: 0 4px 20px rgba(226, 155, 155, 0.15);
    --shadow-medium: 0 8px 30px rgba(226, 155, 155, 0.2);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE y Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari y Opera */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    background-color: var(--alabaster-grey);
    color: var(--black-cherry);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--black-cherry);
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--coffee-bean);
    margin: 0;
    font-size: 0.95rem;
}

.logo-text {
    color: var(--black-cherry);
    margin-top: 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--rosy-taupe);
    color: var(--alabaster-grey);
}

.btn-primary:hover {
    background: var(--champagne-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--black-cherry);
    border: 2px solid var(--black-cherry);
}

.btn-secondary:hover {
    background: var(--black-cherry);
    color: var(--alabaster-grey);
}

header {
    background-color: var(--platinum);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: 80px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--alabaster-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Alinea verticalmente todos los elementos al centro */
    padding: 0 20px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    /* Centrado vertical perfecto */
    margin-left: 0;
    cursor: pointer;
    z-index: 100;
    height: auto;
    /* Cambiado de 100% para mejor control */
    display: flex;
    align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--black-cherry);
    height: 3px;
    width: 1.5em;
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 7px;
}

.nav-toggle-label span::after {
    top: 7px;
}

.nav-toggle:checked+.nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked+.nav-toggle-label span::before {
    transform: rotate(45deg);
    bottom: 0;
}

.nav-toggle:checked+.nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

nav {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    width: 100%;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 300ms ease-in-out;
    background: var(--platinum);
}

nav ul {
    margin: 0;
    padding: 20px;
    list-style: none;
}

nav li {
    margin-bottom: 1em;
}

nav a {
    text-decoration: none;
    color: var(--black-cherry);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 150ms ease-in-out, color 0.3s ease;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--champagne-gold);
}

.nav-toggle:checked~nav {
    transform: scaleY(1);
}

.nav-toggle:checked~nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

.hero {
    background-image: url('assets/WebPages/fondo-hero.png');
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    /* OBLIGATORIO: Para que no supere el ancho de la pantalla */
    padding: 0 15px;
    /* Margen interno de seguridad */
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--champagne-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--coffee-bean);
    margin-bottom: 30px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.key {
    font-size: clamp(10rem, 12vw, 8rem);
    display: inline-block;
    letter-spacing: -0.5vw;
    transition: transform 0.2s;
}

@keyframes pressDown1 {

    30%,
    40%,
    100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(10px);
    }
}

@keyframes pressDown2 {

    70%,
    80%,
    100% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(10px);
    }
}

@keyframes pressDown3 {

    30%,
    40%,
    100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(10px);
    }
}

@keyframes pressDown4 {

    40%,
    50%,
    100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(10px);
    }
}

@keyframes pressDown5 {

    20%,
    30%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(10px);
    }
}

@keyframes pressDown6 {

    60%,
    70%,
    100% {
        transform: translateY(0);
    }

    65% {
        transform: translateY(10px);
    }
}

@keyframes pressDown7 {

    10%,
    20%,
    100% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(10px);
    }
}

@keyframes pressDown8 {

    35%,
    45%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }
}

@keyframes pressDown9 {

    50%,
    60%,
    100% {
        transform: translateY(0);
    }

    55% {
        transform: translateY(10px);
    }
}

.key:nth-child(1) {
    animation: pressDown1 2s infinite;
}

.key:nth-child(2) {
    animation: pressDown2 3s infinite;
}

.key:nth-child(3) {
    animation: pressDown3 4s infinite;
}

.key:nth-child(4) {
    animation: pressDown4 2.5s infinite;
}

.key:nth-child(5) {
    animation: pressDown5 2.5s infinite;
}

.key:nth-child(6) {
    animation: pressDown6 3.5s infinite;
}

.key:nth-child(7) {
    animation: pressDown7 2.2s infinite;
}

.key:nth-child(8) {
    animation: pressDown8 3.2s infinite;
}

.key:nth-child(9) {
    animation: pressDown9 2.8s infinite;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--rosy-taupe);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 500;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--rosy-taupe);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-intro strong {
    color: var(--rosy-taupe);
}

.container {
    margin-bottom: 60px;
}

.content {
    width: 100%;
}

.content-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--champagne-gold);
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--platinum);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(226, 155, 155, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.card-body {
    flex: 1;
}

.card-body h3 {
    margin-bottom: 8px;
    color: var(--rosy-taupe);
}

.card-body p {
    font-size: 0.85rem;
    color: var(--rosy-taupe);
    opacity: 0.8;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-study {
    padding: 20px;
}

#repositorios .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}


/* TIMELINE NUEVO */
/* =========================================================
   EXPERIENCIA - SELEN DESIGN
   Recorrido animado
   ========================================================= */

.experience-tour {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px 80px;
    overflow: hidden;
    background: var(--alabaster-grey);
}

/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.experience-header {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-bottom: 70px;
}

.experience-tag {
    display: inline-block;
    color: var(--rosy-taupe);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.experience-header .content-title {
    margin: 0;
    color: var(--black-cherry);
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
}

.experience-line {
    width: 60px;
    height: 3px;
    margin: 15px auto 0;
    background: var(--champagne-gold);
    border-radius: 2px;
}


/* ---------------------------------------------------------
   DECORACIONES
   --------------------------------------------------------- */

.experience-deco {
    position: absolute;
    z-index: 1;
    color: var(--champagne-gold);
    font-family: "Bebas Neue", sans-serif;
    pointer-events: none;
    opacity: 0.55;
}

.deco-1 {
    top: 18%;
    right: 8%;
    font-size: 2.5rem;
    transform: rotate(15deg);
}

.deco-2 {
    top: 48%;
    left: 8%;
    font-size: 3rem;
    transform: rotate(-20deg);
}

.deco-3 {
    bottom: 15%;
    right: 15%;
    font-size: 2rem;
}


/* ---------------------------------------------------------
   RECORRIDO SVG
   --------------------------------------------------------- */

.experience-path {
    position: absolute;
    z-index: 1;
    top: 170px;
    left: 0;
    width: 100%;
    height: calc(100% - 170px);
    pointer-events: none;
    overflow: visible;
}

/* Línea de fondo */

.experience-path-bg {
    fill: none;
    stroke: rgba(191, 164, 122, 0.25);
    stroke-width: 14;
    stroke-linecap: round;
}

/* Línea que avanza con el scroll */

.experience-path-active {
    fill: none;
    stroke: var(--champagne-gold);
    stroke-width: 14;
    stroke-linecap: round;
}


/* ---------------------------------------------------------
   ITEMS
   --------------------------------------------------------- */

.experience-item {
    position: relative;
    z-index: 3;

    width: 100%;
    min-height: 270px;

    display: flex;
    align-items: center;

    margin-bottom: 80px;

    opacity: 0;
    transform: translateY(60px);

    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Posiciones */

.experience-left {
    justify-content: flex-start;
    padding-right: 50%;
}

.experience-right {
    justify-content: flex-end;
    padding-left: 50%;
}


/* ---------------------------------------------------------
   TARJETA
   --------------------------------------------------------- */

.experience-card {
    width: 100%;
    max-width: 500px;

    display: flex;
    flex-direction: column;

    background: var(--platinum);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-soft);

    border: 1px solid rgba(181, 134, 138, 0.15);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}


.experience-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.experience-placeholder {
    text-align: center;
    color: var(--platinum);
}

.experience-placeholder span {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);

    letter-spacing: 2px;
}

.experience-placeholder small {
    display: block;

    margin-top: 4px;

    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--alabaster-grey);
}


.experience-info {
    padding: 25px 28px 28px;
}

.experience-date {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--champagne-gold);
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.experience-info h3 {
    margin: 0 0 10px;

    color: var(--black-cherry);

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 400;

    line-height: 1.1;
}

.experience-info p {
    margin: 0;

    color: var(--coffee-bean);

    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;

    line-height: 1.6;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 18px;
}

.experience-tags span {
    display: inline-block;

    padding: 5px 12px;

    background: rgba(191, 164, 122, 0.15);

    color: var(--rosy-taupe);

    border: 1px solid rgba(191, 164, 122, 0.35);

    border-radius: 20px;
}


@media (max-width: 900px) {

    .experience-left,
    .experience-right {
        padding-left: 0;
        padding-right: 0;
    }

    .experience-card {
        max-width: 600px;
    }

    .experience-item {
        justify-content: center;
    }
}


@media (max-width: 768px) {

    .experience-tour {
        padding: 70px 18px 60px;
    }

    .experience-header {
        margin-bottom: 50px;
    }

    /* En celular quitamos el recorrido para
       evitar que interfiera con las tarjetas */

    .experience-path {
        display: none;
    }

    .experience-deco {
        display: none;
    }

    .experience-item {
        min-height: auto;
        margin-bottom: 35px;

        opacity: 1;
        transform: none;
    }

    .experience-card {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .experience-image {
        height: 0px;
        opacity: 0;
    }

    .experience-info {
        padding: 22px;
    }

    .experience-info h3 {
        font-size: 1.4rem;
    }

    .experience-info p {
        font-size: 0.82rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .experience-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .experience-card {
        transition: none;
    }
}

/* TIME LINE ANTIGUO  */
/* .timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--champagne-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--champagne-gold);
    border-radius: 50%;
}

.timeline-content {
    background: var(--platinum);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--champagne-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin: 8px 0;
    color: var(--black-cherry);
}

.timeline-content p {
    font-size: 0.85rem;
    opacity: 0.8;
} */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.skill-item {
    background: var(--platinum);
    padding: 25px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rosy-taupe);
}

.carousel-container {
    padding-top: 60px;
}

.left {
    border-bottom: var(--champagne-gold) 3px double;
    text-align: end;
}

.right {
    text-align: start;
}

.carousel-title {
    margin: 20px 10px;
    font-size: clamp(2rem, 8vw, 5rem);
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    color: var(--black-cherry);
}

.carousel {
    display: inline-block;
    position: relative;
    height: 2.2em;
    line-height: 2.2em;
    width: 100%;
    overflow: hidden;
    vertical-align: middle;
}

.carousel-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    animation: carousel 5s ease-in-out 1.5s infinite alternate;
}

.carousel-item {
    display: block;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    /* Se ajusta el tamaño del texto dinámicamente */
    -webkit-text-fill-color: var(--champagne-gold);
    white-space: nowrap;
    /* Evita saltos de línea innecesarios */
}

@keyframes carousel {

    0%,
    10% {
        transform: translateY(0);
    }

    20%,
    30% {
        transform: translateY(-3.5em);
    }

    40%,
    50% {
        transform: translateY(-7em);
    }

    60%,
    70% {
        transform: translateY(-10.6em);
    }

    80%,
    90% {
        transform: translateY(-14em);
    }

    95%,
    100% {
        transform: translateY(-17.3em);
    }
}

.web-section {
    padding: 80px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.diseñosWeb {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 60px;
}

.carousel-web {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.carousel-web::-webkit-scrollbar {
    display: none;
}

.slide {
    min-width: calc(100% - 40px);
    width: 100vw;
    max-width: 100%;
    background: var(--platinum);
    padding: 20px;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-medium);
    scroll-snap-align: center;
}

.slide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
}

.slide-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-text {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--black-cherry);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.slide-text h2 {
    font-size: 1.5rem;
    color: var(--black-cherry);
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 0.85rem;
    color: var(--coffee-bean);
    opacity: 0.8;
    margin-bottom: 15px;
}

.slide-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slide-tech span {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: var(--champagne-gold);
    color: var(--platinum);
    border-radius: 20px;
    font-weight: 500;
}

/* Navegación del carrusel - PUBLICIDADES */
.flyers-section {
    text-align: center;
    padding: 40px 20px;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--champagne-gold);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--champagne-gold);
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    padding: 10px 5px;
}

/* Tarjeta Principal */
.flyer-card {
    flex: 0 0 100%;
    max-width: 600px;
    min-height: 400px;
    scroll-snap-align: center;
    background: var(--platinum);
    border-radius: 30px;
    display: flex;
    align-items: center;
    text-align: left;
    box-shadow: var(--shadow-medium);
    margin: 0 auto;
    box-sizing: border-box;
}

.card-image-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
    /* Ancho del contenedor del flyer */
    width: 100%;
    height: 380px;
    /* Proporción vertical tipo flyer (4:5 aprox) */
    border-radius: 20px;
    overflow: hidden;
}

.inner-image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.inner-image-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.inner-image-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    display: block;
}

.image-badge {
    position: absolute;
    color: var(--platinum);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.card-content {
    flex: 1.1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.card-tag {
    color: var(--rosy-taupe);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.card-title {
    color: var(--black-cherry);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.card-description {
    color: var(--rosy-taupe);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tags-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--champagne-gold);
    color: var(--platinum);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scroll-hint {
    color: var(--champagne-gold);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .flyer-card {
        flex-direction: column;
        height: auto;
    }

    .card-image-wrapper {
        max-width: 100%;
    }
}

.carousel-nav {
    text-align: center;
    margin-top: 20px;
}

.carousel-hint {
    font-size: 0.8rem;
    color: var(--rosy-taupe);
    opacity: 0.7;
}

.proyectos {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.proyecto {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 80px;
    padding: 30px;
    background: var(--platinum);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.proyecto-texto {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-align: center;
}

.proyecto-texto.show {
    opacity: 1;
    transform: translateY(0);
}

.proyecto-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--dark-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
    background: var(--champagne-gold);
    padding: 5px 15px;
    border-radius: 20px;
}

.proyecto-texto h2 {
    font-size: 1.8rem;
    color: var(--black-cherry);
    margin-bottom: 15px;
    line-height: 1.2;
}

.proyecto-texto p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.proyecto-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.proyecto-tech span {
    font-size: 0.75rem;
    padding: 5px 15px;
    background: var(--champagne-gold);
    color: var(--platinum);
    border-radius: 20px;
    font-weight: 500;
}

.proyecto-imagen {
    flex: 1;
    display: flex;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.proyecto-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.proyecto-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.proyecto-imagen:hover img {
    transform: scale(1.02);
}

.flecha-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.9;
    z-index: 10;
}

.flecha-central img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.proyecto-texto.show~.proyecto-imagen .flecha-central {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.contact-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.contact-subtitle {
    color: var(--rosy-taupe);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosy-taupe);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--platinum);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.social-link img {
    width: 24px;
    height: 24px;
}

.contact-card {
    background: var(--rosy-taupe);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.8rem;
    color: var(--platinum);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--platinum);
    opacity: 0.9;
    margin-bottom: 25px;
}

.contact-card .btn-primary {
    background: var(--platinum);
    color: var(--rosy-taupe);
}

.contact-card .btn-primary:hover {

    color: var(--platinum);
    background: var(--champagne-gold);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--rosy-taupe);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.footer-logo span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8rem;
    color: var(--platinum);
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--platinum);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--black-cherry);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.zoom-soft {
    transform: scale(0.95);
}

.fade-left.visible,
.fade-right.visible {
    transform: translateX(0);
}

.zoom-soft.visible {
    transform: scale(1);
}

.rabbit {
    width: 5em;
    height: 3em;
    background: #ffffff;
    border-radius: 70% 90% 60% 50%;
    position: relative;
    box-shadow: -0.2em 1em 0 -0.75em #b78e81;
    transform: rotate(0deg) translate(-2em, 0);
    z-index: 1;

    cursor: pointer;
    pointer-events: auto !important;
    z-index: 999;
    /* Asegura que quede sobre el header */
}

.rabbit:before {
    content: "";
    position: absolute;
    width: 0.3em;
    height: 0.3em;
    background: #3f3334;
    border-radius: 100%;
    top: 1.1em;
    left: 4em;
    z-index: 2;
    overflow: hidden;
}

.rabbit-ears {
    position: absolute;
    width: 0.75em;
    height: 2em;
    background: white;
    border-radius: 50% 100% 0 0;
    transform: rotate(-30deg);
    right: 1.2em;
    top: -1em;
    border-top: 1px solid #f7f5f4;
    border-left: 1px solid #f7f5f4;
    box-shadow: -0.5em 0em 0 -0.1em white;
    transform-origin: bottom center;
    animation: ear-twitch 2s infinite ease-in-out;
}

.rabbit-tail {
    position: absolute;
    width: 0.8em;
    height: 0.8em;
    background: white;
    border-radius: 100%;
    top: 1em;
    left: -0.4em;
    box-shadow: 0.1em 0.1em 0 -0.1em #f7f5f4;
    transform-origin: right center;
    animation: tail-wag 2s infinite ease-in-out;
}

@keyframes eye-blink {

    0%,
    10%,
    90%,
    100% {
        transform: translateY(-100%);
    }

    20%,
    30%,
    40%,
    50%,
    60%,
    70%,
    80% {
        transform: translateY(-40%);
    }

    25%,
    45%,
    65% {
        transform: translateY(-30%);
    }
}

@keyframes foot-scratch {

    0%,
    10%,
    90%,
    100% {
        opacity: 0;
        transform: scale(0.5) translate(1em, 1em);
    }

    15% {
        opacity: 1;
        transform: scale(1) translate(0.3em, 0.5em);
    }

    20%,
    30%,
    40%,
    50%,
    60%,
    70%,
    80% {
        transform: translate(0em, -2.5em);
    }

    25%,
    35%,
    45%,
    55%,
    65%,
    75% {
        transform: translate(-0.2em, -2.7em);
    }
}

@keyframes ear-twitch {

    0%,
    10%,
    90%,
    100% {
        transform: rotate(-30deg);
    }

    15% {
        transform: rotate(-25deg);
    }

    20%,
    30%,
    40%,
    50%,
    60%,
    70%,
    80% {
        transform: rotate(-20deg) skewY(5deg);
    }

    25%,
    45%,
    65% {
        transform: rotate(-23deg) skewY(-3deg);
    }
}

@keyframes tail-wag {

    0%,
    10%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    15%,
    35%,
    55%,
    75% {
        transform: rotate(-10deg);
    }

    25%,
    45%,
    65%,
    85% {
        transform: rotate(10deg);
    }
}

/* --- NUEVO CSS PARA LA RÁFAGA DE CORAZONES --- */
.heart {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    animation: burst 1s ease-out forwards;
}

/* Animación de ráfaga: sube, se dispersa aleatoriamente y desaparece */
@keyframes burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6) translate(0, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4) translate(var(--tx), var(--ty)) rotate(var(--tr));
    }
}

@media screen and (min-width: 768px) {
    .rabbit {
        opacity: 1 !important;
        /* Si estaba en opacity: 0 lo vuelve visible */
        display: block !important;
        transform: scale(0.5);
        margin-left: 10px;
    }

    .nav-toggle-label {
        display: none;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Mantiene exactamente el mismo espacio arriba y abajo */
        padding: 0 40px;
    }

    .logo {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    nav {
        all: unset;
        display: flex;
        align-items: center;
    }

    nav ul {
        display: flex;
        padding: 0;
    }

    nav li {
        margin-left: 2em;
        margin-bottom: 0;
    }

    nav a {
        font-weight: 500;
        font-size: 0.9rem;
        opacity: 1;
        position: relative;
    }

    nav a::before {
        content: '';
        display: block;
        height: 2px;
        background: var(--dark-pink);
        position: absolute;
        bottom: -5px;
        left: 0;
        right: 0;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    nav a:hover::before {
        transform: scaleX(1);
    }

    .slide {
        min-width: 80%;
    }

    .slide-grid {
        grid-template-columns: 60% 40%;
        height: 350px;
    }

    .slide-image {
        height: 100%;
    }

    .proyecto {
        flex-direction: row;
        text-align: left;
    }

    .proyecto-texto {
        text-align: left;
    }

    .proyecto-tech {
        justify-content: flex-start;
    }

    .proyecto-reverse {
        flex-direction: row-reverse;
    }

    .proyecto-reverse .proyecto-texto {
        text-align: right;
    }

    .proyecto-reverse .proyecto-tech {
        justify-content: flex-end;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media screen and (min-width: 1024px) {
    .slide {
        min-width: 70%;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 767px) {


    .carousel-container {
        padding-top: 30px;
    }

    .rabbit {
        opacity: 0;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-greeting {
        font-size: 0.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    header {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    } */

    .section-header h1 {
        font-size: 2.5rem;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        padding-left: 15px;
    }

    .timeline-dot {
        left: -22px;
    }

    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-item {
        font-size: 1.5rem;
    }

    .proyecto {
        padding: 20px;
    }

    .proyecto-texto h2 {
        font-size: 1.5rem;
    }

    .proyecto-texto {
        opacity: 1;
        transform: translateY(0);
    }

    .flecha-central {
        display: none;
    }

    .slide {
        min-width: calc(100vw - 60px);
        max-width: calc(100vw - 60px);
    }

    .contact-card {
        padding: 30px 20px;
    }

    .flecha-central svg {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .contact-item span {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .social-links {
        justify-content: center;
    }
}