:root {
    --brand-pink: #e010a8;
    --deep-blue: #073B4C;
    --sky-blue: #118AB2;
    --sky-blue2: #ffffff;
    --ice-blue: #F0FFFF;
    --bg-light: #f7f7f7;
    --text-light: #222222;
    --card-light: #ffffff;
    --sombra-light: rgb(135, 237, 245);
    --sombra-dark: rgb(254, 5, 217);
    --fuente-principal: 'Arial', sans-serif;
    --fuente-secundaria: 'Courier New', monospace;
}
html.dark-mode {
    --brand-pink: #ff69b4;
    --deep-blue: #3480e4;
    --sky-blue: #4fc3f7;
    --sky-blue2: #4fc3f7;
    --ice-blue: #1a1f25;
    --bg-light: #0e0e0e;
    --text-light: #f4f4f4;
    --card-light: #141414;
    --sombra-light: rgb(254, 5, 217);
    --sombra-dark: rgb(135, 237, 245);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*::selection {
    background-color: var(--sombra-light);
    color: var(--sombra-dark);
}
details {
    color: var(--brand-pink);
}
details:hover {
    color: var(--text-light);
}
.tituloSection {
    display: inline;
}
.tituloSection:hover {
    color: var(--brand-pink);
}
html,
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}
body {
    font-family: var(--fuente-principal);
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.5;
    font-family: var(--fuente-principal);
    max-width: 100vw;
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    grid-template-rows: 0.1fr auto auto 0.1fr;
    grid-template-areas:
        "header header header"
        "nav nav nav"
        "main main aside"
        "footer footer footer";
}
.layout {
    gap: 5px;
    width: 100%;
}
header {
    grid-area: header;
}
.nav {
    grid-area: nav;
}
main {
    grid-area: main;
    padding: 10px;
}
footer {
    grid-area: footer;
    padding: 1px;
}
aside {
    grid-area: aside;
}
.iframe {
    width: 100%;
    min-height: 50vw;
    border: none;
}
.header__inner {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 1px;
    margin: 1%;
}
.header__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--brand-pink);
    background: var(--card-light);
    justify-content: center;
    align-items: center;
}
.imgfoto {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.header__info {
    text-align: left;
    color: var(--deep-blue);
    padding: 1rem;
}
.header__name {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 6px;
    background: var(--deep-blue) url('fondoNegro.jpg');
    background-clip: text;
    -webkit-background-clip: text;    
    -webkit-text-stroke: 1px var(--deep-blue);
    color: transparent;
}
.header__role {
    width: 120vh;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-pink);
    display: inline-block;
    white-space: nowrap;
}
.role-item {
    display: none;
    font-family: monospace;
    opacity: 1;
}
.role-item.active {
    display: inline-block;
    overflow: hidden;
    width: 0;
    max-width: 25ch;
    height: 8ch;
    align-content: center;
    animation: blink-caret .75s step-end infinite;
}
@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: currentColor;
    }
}
.header__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}
.header__contact span {
    opacity: 0.4;
    user-select: none;
}
.contact-icon {
    text-decoration: none;
    color: var(--deep-blue);
    font-size: 1.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.contact-icon:hover {
    color: var(--sky-blue);
    transform: scale(1.15);
}
@keyframes pulse-grow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 var(--sombra-light);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px var(--sombra-dark);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 var(--sombra-light);
    }
}
.header__photo {
    animation-name: pulse-grow;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    display: block;
}
.hamburger {
    display: none;
}
.nav-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    background: var(--ice-blue);
    color: var(--deep-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    background: var(--deep-blue);
    color: var(--brand-pink);
    transition: background 0.9s ease;
}
.sidebar {
    background: var(--ice-blue);
    border: 2px dashed var(--deep-blue);
    border-radius: 5px;
    padding: 5px;
}
.sidebar h3 {
    color: var(--deep-blue);
    margin-bottom: 0.2rem;
}
.sidebar ul {
    margin-left: 1rem;
    list-style: square;
}
.section,
.card {
    width: 100%;
    background: var(--card-light);
    border-radius: 10px;
    padding: 26px;
}
.repaso {
    background: var(--card-light);
    border-radius: 10px;
    padding: 5px;
}
.section {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}
.section h2,
h2.repaso {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}
.repaso {
    margin: 1px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--fuente-principal);
}
.repaso,
.repaso-cv {
    text-align: center;
}
.repaso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.card {
    border: 3px groove var(--deep-blue);
    padding: 0.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.card__cabecera {
    color: var(--brand-pink);
    margin-bottom: 0.5rem;
}
.card__contenido {
    color: var(--text-light);
    font-size: 0.95rem;
}
.button,
button[type="submit"] {
    background: var(--brand-pink);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}
button[type="submit"]:hover {
    background: var(--sky-blue);
}
.button_card {
    height: 2.5rem;
    border-top: 1px dashed var(--deep-blue);
    border-bottom: 3px solid var(--deep-blue);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background: linear-gradient(to top,
            var(--sombra-light),
            transparent 65%);
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
    color: var(--brand-pink);
}
.button_card:hover {
    background: linear-gradient(to top,
            var(--brand-pink),
            transparent 65%);
    color: var(--deep-blue);
}
.button_download img {
    width: 2rem;
    background: transparent;
    filter: brightness(0) 
        saturate(100%) 
        invert(30%) 
        sepia(100%) 
        saturate(5000%) 
        hue-rotate(300deg) 
        brightness(100%) 
        contrast(100%);
}
.button_download img:hover {
    transform: scale(1.15);
    mix-blend-mode: normal;
    filter: brightness(0) 
        saturate(100%) 
        invert(30%) 
        sepia(100%) 
        saturate(5000%) 
        hue-rotate(200deg) 
        brightness(100%) 
        contrast(100%); 
}
.fechaflotante {
    position: fixed;
    width: 20%;
    right: 50px;
    color: var(--deep-blue);
    font-weight: 600;
    font-weight: 600;
    text-align: right;
    inset: 1rem 3rem auto auto;
    z-index: 9999;
}
.mode-toggle {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, background 0.3s ease;
    inset: 1rem 1rem auto auto;
}
.mode-toggle:hover {
    transform: scale(1.08);
}
.mode-toggle:active {
    transform: scale(0.96);
}
html.dark-mode .mode-toggle {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}
.mode-toggle .icon {
    transition: transform 0.5s ease, opacity 0.4s ease;
}
html.dark-mode .mode-toggle .icon {
    transform: rotate(180deg);
}
.audio-on {
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
    margin-right: 1px;
    width: 20px;
    height: 20px;
    inset: 3rem 1rem auto auto;
}
.audio-off {
    opacity: 0.5;
}
.floating-social {
    position: fixed;
    inset: 5rem 1rem auto auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.floating-social a {
    display: flex;
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--deep-blue);
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .2s, background .2s;
}
.floating-social a:hover {
    transform: scale(1.2);
    background: var(--bg-light);
    color: var(--sky-blue);
}
.floating-like {
    z-index: 1000;
    position: fixed;
    inset: 9rem 0.7rem auto auto;
}
#likeBtn {
    display: flex;
    align-items: center;
    gap: 0.5px;
    background: var(--deep-blue);
    color: var(--sombra-light);
    border: none;
    border-radius: 50px;
    padding: 1px 3px;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    transition: transform .2s, background .2s;
}
#likeBtn:hover {
    transform: scale(1.1);
    background: var(--sky-blue);
}
#likeBtn.liked {
    background: var(--brand-pink);
}
.heart {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  pointer-events: none;
  z-index: 9999;
  animation: floatHeart 2.5s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes floatHeart {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--x)),
      calc(-50% + var(--y))
    ) scale(1.6);
  }
}
.zona-hover {
    display: block;
    position: absolute;
    cursor: pointer;
    z-index: 1001;
    inset: 11rem 1rem auto auto;
}
#poppup {
    display: none;
    background: rgba(255, 255, 255, 0.01);
    position: fixed;
    bottom: 1%;
    right: 1%;
    width: 33%;
    height: 70%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}
#poppup iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.irtopC {
    display: flex;
    justify-content: right;
    align-items: right;
    position: fixed;
    top: 89%;
    right: 16.5%;
    background: var(--sombra-light);
    font-weight: 600;
    font-size: x-large;
    border: 3px solid var(--sombra-dark);
}
.irtopC {
    animation-name: pulse-grow;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    display: block;
    z-index: 9999;
}
.irtopC a:hover {
    background: var(--sombra-dark);
    color: var(--sombra-light);
}
.irtop {
    color: var(--brand-pink);
}
.blandas {
    width: 100%;
    text-align: center;
}
.habilidades {
    width: 100%;
    columns: 4;
    gap: 1.5rem;
    margin-left: 1rem;
}
table {
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    font-family: Arial, sans-serif;
}
th {
    max-width: 100%;
    background-color: var(--sky-blue);
    color: var(--bg-light);
    padding: 1%;
    text-align: left;
    vertical-align: center;
    border: 1px solid #ddd;
}
td {
    max-width: 100%;
    padding: 1%;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: center;
}
tr:nth-child(even) {
    background-color: var(--bg-light);
}
progress {
    max-width: 100%;
}
h2 {
    font-family: Arial, sans-serif;
    border-bottom: 3px solid #337ab7;
    padding-bottom: 1px;
}
h4 {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    border-bottom: 3px solid #337ab7;
    padding-bottom: 1px;
    color: var(--deep-blue);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-grid .full {
    grid-column: 1 / -1;
}
label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
input,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--ice-blue);
    font: inherit;
    background: var(--bg-light);
}
textarea {
    min-height: 120px;
    resize: vertical;
}
html.dark-mode input,
html.dark-mode textarea {
    border: 1px solid var(--deep-blue);
    background: var(--card-light);
}
footer * {
    position: relative;
    z-index: 1000;
}
footer {
    font-size: 1rem;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    border-top: 5px solid var(--brand-pink);
    color: var(--sombra-light);
    background-image: url('fondoNegro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
footer a {
    color: var(--sky-blue);
    font-weight: 600;
}
footer a:hover {
    color: var(--sombra-light);
    font-weight: 600;
}
footer a:visited {
    color: var(--brand-pink);
}
footer .fecha {
    color: var(--sombra-light);
    font-weight: 600;
    text-align: center;
}
.imagenes,
.gallery img {
    display: block;
    margin: 1rem auto;
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
}
.imagenes {
    max-width: 80%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gallery img {
    height: 180px;
}
.multimedia-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.multimedia-grid>.card {
    flex: 1 1 400px;
    max-width: 420px;
}
.timeline-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 300px;
    padding: 40px;
    width: max-content;
    gap: 80px;
}
.event {
    position: relative;
    text-align: center;
}
.dot {
    width: 20px;
    height: 20px;
    background: var(--sky-blue);
    border-radius: 50%;
    margin: auto;
    cursor: pointer;
}
.label {
    margin-top: 10px;
    font-weight: bold;
}
.info-box {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--card-light);
    padding: 15px;
    width: 260px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    text-align: left;
    z-index: 1000;
}
/* a {
    color: var(--brand-pink);
}
a:hover {
    color: red;
}
a:visited {
    color: var(--brand-pink);
} */
.mapa {
    position: relative;
    bottom: 1px;
}
.no-seleccionar {
    user-select: none;
}
@media (max-width: 768px) {
    body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "nav"
            "main"
            "aside"
            "footer";
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: hidden;
    }
    header,
    nav,
    main,
    aside,
    footer {
        width: 100%;
        max-width: 100%;
    }
    .header__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        margin: 0;
        padding: 1rem;
    }
    .imgfoto {
        margin-top: 15px;
        justify-content: center;
        padding: 0;
    }
    .header__photo {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    .header__info {
        padding: 0;
    }
    .header__name {
        font-size: clamp(2rem, 7vw, 3rem);
        line-height: 1.2;
        text-align: center;
    }
    .header__role {
        font-size: clamp(1rem, 5vw, 3rem);
        width: 100%;
        position: relative;
        white-space: normal;
        justify-content: center;
        text-align: center;
        border-top: 1px solid var(--deep-blue);
        border-bottom: 3px solid var(--deep-blue);
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        background: linear-gradient(to top,
                var(--sombra-light),
                transparent 65%);
    }
    .header__contact {
        width: 100%;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10000;
        top: 12px;
        left: 12px;
        position: fixed;
    }
    .hamburger .bar {
        width: 25px;
        height: 3px;
        background-color: var(--deep-blue);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 3px;
        position: relative;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .nav-menu {
        position: fixed;
        top: 5%;
        left: -20px;
        width: 50%;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }
    .nav-menu ul {
        display: flex;
        width: 80%;
        position: fixed;
        font-size: 1.2rem;
        justify-content: left;
        margin-left: 15%;
        border-left: 3px solid var(--deep-blue);
        border-bottom: 3px solid var(--deep-blue);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 40px;
        background: linear-gradient(to right, var(--sombra-light), transparent);
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .section {
        grid-template-columns: 1fr;
        overflow-x: none;
    }
    .repaso-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .multimedia-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .blandas {   
        max-width: 100%;
        height: auto;
        text-align: center;
        margin: 0 auto;
        white-space: normal;
        justify-content: center;
        text-align: center;
        overflow-x: none;
    }
    .habilidades {  
        max-width: 100%;
        height: auto;
        text-align: center;
        margin: 0 auto;
        white-space: normal;
        justify-content: center;
        columns: 2;
        gap: 0.10rem;
        list-style: none;
        overflow-x: none;
    }
.tableh thead {
  display: none;
}
.tableh {
  display: block;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.tableh tr {
    display: block;
    width: 100%;
    background: var(--card-light);
    border-radius: 10px;
    padding: 15px;
    border: 3px groove var(--deep-blue);
    margin-top: 1rem;
}
.tableh td {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    padding: 1rem 0;
    
}
.tableh td:first-child {
    font-weight: bold;
    padding: 15px;
    background: var(--ice-blue);
    border: 3px groove var(--deep-blue);
    border-radius: 10px;
}
progress {
  width: 100%;
}
    .timeline-container {
        width: 100%;
        overflow-x: auto;
        padding: 1rem;
        gap: 2rem;
    }
    iframe,
    video,
    embed {
        max-width: 100%;
        height: auto;
    }
    .poppup,
    .zona-hover {
        display: none;
    }
    .irtopC {
        right: 1%;
        bottom: 5%;
        top: auto;
    }
    .fechaflotante {
    position: fixed;
    width: 100%;
    color: var(--deep-blue);
    font-weight: 600;
    font-weight: 600;
    text-align: center;
    background-color: var(--ice-blue);
    inset: auto auto;
    z-index: 999;
}
    .mode-toggle,
    .audio-on,
    .floating-social,
    .floating-like {
        right: 2%;        
    }
    .floating-like {
        right: 1%;   
    }

}