/* === Variables globales === */
:root {
    --color-bg: #f7f8fa;
    --color-section: #fdf6ee;
    --color-text: #1a2233;
    --color-accent: #e9d8a6;
    --color-link: #6c8cbf;
    --color-shadow: rgba(108, 140, 191, 0.10);
    --color-outline: rgba(233, 216, 166, 0.18);
    --font-title: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
}

/* === Reset suave === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #1a2233;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #344466, #1a2233, #0F1620);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 70px;
    /* Space for fixed nav */
}

/* === Barra de navegación === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 34, 51, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(233, 216, 166, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--color-accent);
    border-bottom: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-links a:hover {
    background-color: rgba(233, 216, 166, 0.2);
    color: white;
    opacity: 1;
}

/* === Contenedor genérico para el cuerpo === */
.container-gn {
    margin: 1rem auto;
    max-width: 1400px;
}

/* === Contenedor genérico === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-shadow: 0 2px 24px var(--color-shadow);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    min-width: 320px;
}

/* === Títulos generales === */
h1,
h2,
h3 {
    font-family: var(--font-title);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 12px var(--color-shadow);
}


h2 {
    font-size: 2rem;
    font-weight: normal;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-link);
}

.hero-text h2 {
    background: linear-gradient(90deg, #3e5ca7 0%, var(--color-link) 50%, #3e5ca7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #3e5ca7 0%, #EBB866 50%, #3e5ca7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* === Párrafos y listas === */
p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.08rem;
    color: var(--color-text);
    opacity: 0.92;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

ul li {
    margin-bottom: 1rem;
    position: relative;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
    font-size: 1.05rem;
    opacity: 0.95;
    transition: all 0.2s;
    border-radius: 6px;
    background: rgba(233, 216, 166, 0.07);
}

ul li:hover {
    background: rgba(233, 216, 166, 0.15);
    transform: translateX(4px);
}

/* === Enlaces === */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s;
    border-bottom: 1px dotted var(--color-link);
}

a:hover {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
}

/* === Secciones === */
section {
    border-top: 1px solid var(--color-outline);
    background-color: var(--color-bg);
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 12px var(--color-shadow);
    border-radius: 14px;
    transition: all 0.4s;
    margin-left: 4rem;
    margin-right: 4rem;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-of-type(even) {
    background-color: var(--color-bg);
    box-shadow: 0 2px 24px var(--color-shadow);
}

section .container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* === Sección: Hero (Inicio) === */
.hero {
    background: linear-gradient(120deg, var(--color-bg) 80%, var(--color-section) 100%);
    border-left: 2px solid var(--color-link);
    box-shadow: 0 2px 24px var(--color-outline);
    border-radius: 20px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero h1 {
    color: var(--color-link);
    text-shadow: 0 2px 16px var(--color-shadow);
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.98;
    margin-bottom: 2rem;
}

/* === Sección: Sobre mí === */
.about {
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 24px var(--color-outline) !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.about h2 {
    color: var(--color-link);
    border-bottom: none;
    letter-spacing: 1.5px;
}

.about p {
    font-size: 1.08rem;
    opacity: 0.93;
    text-align: justify;
}

/* === Sección: Stack técnico === */
#stack-tecnico {
    background: var(--color-bg);
    border-left: 4px solid var(--color-link);
    box-shadow: 0 2px 24px var(--color-outline);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#stack-tecnico h2 {
    color: var(--color-link);
    border-bottom: none;
}

#stack-tecnico h3 {
    color: var(--color-accent);
    margin-top: 1.5rem;
}

#stack-tecnico ul li {
    background: rgba(108, 140, 191, 0.07);
    border-left: 2px solid var(--color-link);
    padding-left: 1.7rem;
}

/* === Sección: Outside === */
.outside {
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 24px var(--color-outline);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.outside h2 {
    color: var(--color-accent);
    border-bottom: none;
}

.outside ul li {
    background: rgba(233, 216, 166, 0.13);
    border-left: 2px solid var(--color-accent);
    padding-left: 1.7rem;
    font-style: italic;
}

/* === Sección: Contacto === */
.contacto {
    background: var(--color-bg);
    border-left: 4px solid var(--color-link);
    box-shadow: 0 2px 24px var(--color-outline);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.contacto h2 {
    color: var(--color-link);
    border-bottom: none;
}

.contacto ul li {
    background: rgba(108, 140, 191, 0.07);
    border-left: 2px solid var(--color-link);
    padding-left: 1.7rem;
}

/* === Botón flotante === */
#to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-accent);
    color: #1a2233;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#to-top.visible {
    opacity: 1;
    visibility: visible;
}

#to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(233, 216, 166, 0.4);
}

/* === Decoración Aurora === */
.aurora {
    position: relative;
    height: 4rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* .aurora__item {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: translate3d(0, 0, 0);
    background: linear-gradient(90deg, #3e5ca7, #EBB866, #3e5ca7);
    background-size: 200% 100%;
    animation: aurora-flow 5s ease infinite;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* .aurora__item h2 {
    color: black;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    border-bottom: none;
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-title);
    text-align: right;
} */

/* @keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
} */

/* Citas */
quote {
    display: block;
    font-style: italic;
    padding: 1rem 2rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(233, 216, 166, 0.1);
    margin-bottom: 2rem;
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
}

/* Iconos */
.badge {
    display: inline-block;
    background: var(--color-accent);
    color: black;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    text-align: center;
    line-height: 2em;
    margin-right: 0.7em;
    font-size: 1.1em;
    box-shadow: 0 2px 8px var(--color-shadow);
    vertical-align: middle;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

li:hover .badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(108, 140, 191, 0.3);
}

/* === Responsive === */
@media (max-width: 700px) {
    .container-gn {
        width: 100%;
        overflow: hidden;
    }

    section {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    ul li {
        font-size: 0.98rem;
        padding-left: 1.2rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .aurora {
        height: 3rem;
    }

    .aurora__item h2 {
        font-size: 1.5rem;
    }

    #to-top {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
    }

    body {
        padding-top: 60px;
    }
}

@media(max-width: 1200px) {
    .container {
        max-width: 650px;
    }
}

/* Tema oscuro para dispositivos */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0a0d14;
        --color-section: #151a24;
        --color-text: #e1e2e6;
        --color-accent: #e9d8a6;
        --color-link: #8ca3d3;
        --color-shadow: rgba(0, 0, 0, 0.3);
        --color-outline: rgba(233, 216, 166, 0.15);
    }

    .container {
        background: rgba(26, 34, 51, 0.85);
    }

    ul li {
        background: rgba(233, 216, 166, 0.05);
    }

    ul li:hover {
        background: rgba(233, 216, 166, 0.1);
    }

    #stack-tecnico ul li {
        background: rgba(108, 140, 191, 0.05);
    }

    .outside ul li {
        background: rgba(233, 216, 166, 0.07);
    }

    .contacto ul li {
        background: rgba(108, 140, 191, 0.05);
    }

    quote {
        background: rgba(233, 216, 166, 0.07);
    }
}

/*Baraja*/
iframe {
    border: none;
    width: 100%;
    height: 100vh;
}

.hidden-iframe {
    display: none;
    /* keep hidden for silent refresh */
    width: 0;
    height: 0;
}

/* :root {
      --color-bg: #f7f8fa;
      --color-section: #fdf6ee;
      --color-text: #1a2233;
      --color-accent: #e9d8a6;
      --color-link: #6c8cbf;
      --color-shadow: rgba(108, 140, 191, 0.10);
      --color-outline: rgba(233, 216, 166, 0.18);
      --font-title: &#039;Libre Baskerville&#039;, serif;
      --font-body: &#039;Inter&#039;, sans-serif;
    } */


/* Carrusel de Proyectos */
.hand-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
}

.card {
    position: absolute;
    width: 280px;
    height: 400px;
    background: rgba(26, 34, 51, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 0.5s ease-in-out;
    opacity: 0.7;
    transform: scale(0.8) translateY(40px) rotate(-10deg);
    overflow: hidden;
    border-left: 3px solid var(--color-link);
    border-bottom: 1px solid var(--color-accent);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.card.active {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(108, 140, 191, 0.3);
    border-left: 4px solid var(--color-accent);
    border-bottom: 2px solid var(--color-link);
    height: 430px;
}

.card.prev {
    z-index: 5;
    transform: scale(0.85) translateX(-120%) translateY(20px) rotate(-10deg);
    opacity: 0.85;
}

.card.next {
    z-index: 5;
    transform: scale(0.85) translateX(120%) translateY(20px) rotate(10deg);
    opacity: 0.85;
}

.card.hidden {
    transform: scale(0.7) translateY(60px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Add project summary styling */
.project-summary {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 30px;
    background: rgba(26, 34, 51, 0.85);
    border-radius: 15px;
    border-left: 4px solid var(--color-accent);
    border-bottom: 2px solid var(--color-link);
    color: #e1e2e6;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.project-summary h2 {
    font-family: var(--font-title);
    margin-bottom: 10px;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    background: linear-gradient(90deg, #3e5ca7 0%, #EBB866 50%, #3e5ca7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.project-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hand-container {
        padding: 30px 10px;
    }

    .hand {
        height: 450px;
    }

    .project-summary {
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .project-summary h2 {
        font-size: 1.5rem;
    }

    .project-summary p {
        font-size: 0.95rem;
    }

    .card {
        width: 240px;
        height: 380px;
    }

    .card.active {
        height: 400px;
    }

    .card.prev {
        transform: scale(0.75) translateX(-90%) translateY(20px);
    }

    .card.next {
        transform: scale(0.75) translateX(90%) translateY(20px);
    }
}

@media (max-width: 480px) {
    .card {
        width: 220px;
    }

    .hand {
        height: 420px;
    }

    .card.prev,
    .card.next {
        opacity: 0.4;
    }
}

.projects {
    background: var(--color-bg);
    border-left: 4px solid var(--color-link);
    box-shadow: 0 2px 24px var(--color-outline) !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    color: #f4f4f4;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.hand button {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
    color: #f4f4f4;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);

    /*que siempre se vea*/
    position: absolute;
    margin-bottom: 4px;
    /* bottom: 20px; */
}

@media (max-width: 768px) {
    .card {
        backdrop-filter: none;
    }

    section {
        backdrop-filter: none;
    }

    .project-summary {
        backdrop-filter: none;
    }

    /* .carousel-controls {

    } */
}

/* estilos para los proyectos: */
/* root {
    --color-bg: #f7f8fa;
    --color-section: #fdf6ee;
    --color-text: #1a2233;
    --color-accent: #e9d8a6;
    --color-link: #6c8cbf;
    --color-shadow: rgba(108, 140, 191, 0.10);
    --color-outline: rgba(233, 216, 166, 0.18);
} */

/* === Reset suave === */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */
/* 
html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #1a2233;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
} */
/* 
body {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #344466, #1a2233, #0F1620);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 70px;
} */

/* === Barra de navegación === */
/* .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 34, 51, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(233, 216, 166, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
} */

/* .nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--color-accent);
    border-bottom: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-links a:hover {
    background-color: rgba(233, 216, 166, 0.2);
    color: white;
    opacity: 1;
} */

/* === Contenedor genérico para el cuerpo === */
/* .container-gn {
    margin: 1rem auto;
    max-width: 1400px;
} */

/* === Contenedor genérico === */
/* .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-shadow: 0 2px 24px var(--color-shadow);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    min-width: 320px;
} */

/* === Títulos generales === */
/* h1,
h2,
h3 {
    font-family: var(--font-title);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
} */

/* h1 {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 12px var(--color-shadow);
}


h2 {
    font-size: 2rem;
    font-weight: normal;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-link);
}

.hero-text h2 {
    background: linear-gradient(90deg, #3e5ca7 0%, var(--color-link) 50%, #3e5ca7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #3e5ca7 0%, #EBB866 50%, #3e5ca7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
} */

/* === Párrafos y listas === */
/* p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.08rem;
    color: var(--color-text);
    opacity: 0.92;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

ul li {
    margin-bottom: 1rem;
    position: relative;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
    font-size: 1.05rem;
    opacity: 0.95;
    transition: all 0.2s;
    border-radius: 6px;
    background: rgba(233, 216, 166, 0.07);
}

ul li:hover {
    background: rgba(233, 216, 166, 0.15);
    transform: translateX(4px);
} */

/* === Enlaces === */
/* a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s;
    border-bottom: 1px dotted var(--color-link);
}

a:hover {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
} */

/* === Secciones === */
/* section {
    border-top: 1px solid var(--color-outline);
    background-color: var(--color-bg);
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 12px var(--color-shadow);
    border-radius: 14px;
    transition: all 0.4s;
    margin-left: 4rem;
    margin-right: 4rem;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
} */

/* section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-of-type(even) {
    background-color: var(--color-bg);
    box-shadow: 0 2px 24px var(--color-shadow);
}

section .container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
} */

/* Citas */
/* quote {
    display: block;
    font-style: italic;
    padding: 1rem 2rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(233, 216, 166, 0.1);
    margin-bottom: 2rem;
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
} */

/* Iconos */
/* .badge {
    display: inline-block;
    background: var(--color-accent);
    color: black;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    text-align: center;
    line-height: 2em;
    margin-right: 0.7em;
    font-size: 1.1em;
    box-shadow: 0 2px 8px var(--color-shadow);
    vertical-align: middle;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
} */
/* 
li:hover .badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(108, 140, 191, 0.3);
} */

/* === Botón flotante === */
#to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-accent);
    color: #1a2233;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#to-top.visible {
    opacity: 1;
    visibility: visible;
}

#to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(233, 216, 166, 0.4);
}

/* Estilos especificos para la página del proyecto */

/* Galería de imágenes */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--color-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Botones de navegación lightbox */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Status del proyecto */
.project-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid;
}

.status-desarrollo {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: #ffc107;
}

.status-terminado {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border-color: #28a745;
}

.status-espera {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border-color: #6c757d;
}

/* Header del proyecto */
.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-link);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5a7cb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 140, 191, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(233, 216, 166, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 216, 166, 0.3);
}

.btn-hurry {
    background: #e74c3c;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-hurry:hover {
    background: #c0392b;
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Sección de detalles */
.project-section {
    margin: 3rem 0;
}

.tools-list li {
    display: flex;
    align-items: center;
}

.tools-list .tool-icon {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.next-steps-list li {
    border-left: 3px solid var(--color-link);
}

/* Estilos responsivos */
@media (max-width: 700px) {
    section {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    ul li {
        font-size: 0.98rem;
        padding-left: 1.2rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    #to-top {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
    }

    .btn-hurry {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-secondary {
        font-size: 0.7rem;
        padding: 0.4rem, 0.8rem;
    }
}