*,
::after,
::before {
    box-sizing: border-box;
}

body {
    background-color: #212121;
    color: #fff;
    font-family: monospace, serif;
    letter-spacing: 0.05em;
    padding: 1%;
}

.main-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.form {
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form .control {
    margin: 0 0 24px;
    width: 50%;
    max-width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
}

.form .control input {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: monospace, serif;
    letter-spacing: 0.05em;
    font-size: 2rem;
}

.form .control input:hover,
.form .control input:focus {
    outline: none;
    border: 0;
}

.form .btn {
    width: 50%;
    height: 100px;
    display: block;
    padding: 14px 16px;
    background: transparent;
    outline: none;
    border: 0;
    color: #fff;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-family: monospace;
    font-size: 2rem;
}

.block-cube {
    position: relative;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.block-cube .bg-top {
    position: absolute;
    height: 10px;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(52, 9, 121, 1) 37%, rgba(0, 212, 255, 1) 94%);
    bottom: 100%;
    left: 5px;
    right: -5px;
    transform: skew(-45deg, 0);
    margin: 0;
}

.block-cube .bg-top .bg-inner {
    bottom: 0;
}

.block-cube .bg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(52, 9, 121, 1) 37%, rgba(0, 212, 255, 1) 94%);
}

.block-cube .bg-right {
    position: absolute;
    background: rgba(0, 212, 255, 1);
    top: -5px;
    z-index: 0;
    bottom: 5px;
    width: 10px;
    left: 100%;
    transform: skew(0, -45deg);
}

.block-cube .bg-right .bg-inner {
    left: 0;
}

.block-cube .bg .bg-inner {
    transition: all 0.2s ease-in-out;
}

.block-cube .bg-inner {
    background: #212121;
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
}

.block-cube .text {
    position: relative;
    z-index: 2;
}

.block-cube.block-input input {
    position: relative;
    z-index: 2;
}

.block-cube.block-input input:focus~.bg-right .bg-inner,
.block-cube.block-input input:focus~.bg-top .bg-inner,
.block-cube.block-input input:focus~.bg-inner .bg-inner {
    top: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.block-cube.block-input .bg-top,
.block-cube.block-input .bg-right,
.block-cube.block-input .bg {
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease-in-out;
}

.block-cube.block-input .bg-right .bg-inner,
.block-cube.block-input .bg-top .bg-inner {
    transition: all 0.2s ease-in-out;
}

.block-cube.block-input:hover .bg-top,
.block-cube.block-input:hover .bg-right,
.block-cube.block-input:hover .bg,
.block-cube.block-input:focus .bg-top,
.block-cube.block-input:focus .bg-right,
.block-cube.block-input:focus .bg {
    background: rgba(255, 255, 255, 0.8);
}

.block-cube.block-cube-hover:hover .bg .bg-inner,
.block-cube.block-cube-hover:focus .bg .bg-inner {
    top: 100%;
}

.titulo {
    padding: 0 2%;
}

.all {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 30px;
}

.left {
    width: 100%;
    padding: 1%;
}

.right {
    width: 100%;
    padding: 1%;
}

.login {
    width: auto;
    min-width: 260px;
}

.about,
.skills {
    margin-bottom: 50px;
}

.about, .projects {
    padding: 1%;
}
.skills, .contact {
    padding: 4% 0% 4% 0%;
}

.titulo h1 {
    font-size: 6rem;
    margin-bottom: 0px;
    margin-top: 0px;

}

.titulo p {
    margin-top: 0px;
    margin-left: 12px;
    font-size: 3rem;
}

.about .text h1 {
    font-size: 3rem;
    margin-top:0px;

}

.about p {
    font-size: 1.2rem;
}

.projects h1 {
    font-size: 3rem;
    margin-top:0px;
    margin-bottom: 40px;
}

.skills {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 50px;
}

.skills .text h1 {
    font-size: 3rem;
}

.skills ul {
    list-style: none;
    padding: 0;
}

.skills .text{
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skill-list {
    display: flex;
    flex-direction: row; /* Asegura que estén en fila */
    flex-wrap: wrap;     /* Permite que salten a la siguiente línea */
    gap: 20px;
    padding: 0;
    width: 90%;
    margin-top: 20px;
    justify-content: center; /* <-- Añade esta línea */

}

.skill-item {
    width: 175px;
    max-width: 300px;
    height: 80px;   
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 2rem;
    color: white;
    cursor: default;
    text-align: center;
}
.email {
    font-size: 2rem;
}

.block-cube.block-input .text {
    padding: 15px 20px;
    position: relative;
    z-index: 2;
    color: white;
}

.desl .text {
    transition: color 0.3s ease;
    width: 100%;
}

.desl:hover .text {
    color: #212121;
}

.email {
    transition: color 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.skill:hover {
    color: #212121;
}

.email .text {
    text-decoration: none;
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    width: 45%;
    aspect-ratio: 7/4;
    position: relative;
}

.project-card .bg-inner {
    padding: 0;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.project-overlay {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    width: 100%;
    text-align: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-weight: bold;
}

.project-card:hover .project-overlay {
    transform: translateY(0%);
}

.contact .text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h1{
    font-size: 3rem;
    margin-top: 0px;
}
.up{
    display: flex;
}
.centrado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2%;
}
body::after {
  content: "TorBula";
  display: block;
  font-size: 0px;
  height: 0;
  overflow: hidden;
}
.skills h1{
    margin-top: 0px;
}

.skill-item.email,
.block-cube.email {
    height: auto;
    min-height: 40px;
    align-items: center;
}
.contact .skill-item.email {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center;
}


.email .text {
    transition: color 0.3s ease;
    width: 100%;
}

.email:hover .text {
    color: #212121;
}
.about .text p {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #fff; }
}

/* Animaciones de entrada */
.slide-in-top {
  opacity: 0;
  transform: translateY(-180px);
  animation: slideInTop 1.6s forwards;
}
@keyframes slideInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-180px);
  animation: slideInLeft 1.6s forwards;
}
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(180px);
  animation: slideInRight 1.6s forwards;
}
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-bottom {
  opacity: 0;
  transform: translateY(180px);
  animation: slideInBottom 1.6s forwards;
}
@keyframes slideInBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.no-scroll, body.no-scroll .up, body.no-scroll .todo, body.no-scroll .all {
    overflow-x: hidden;
    overflow-y: hidden;
}
.up{
    display: flex;
    flex-direction: column;
}
.up .titulo {
  order: 2;
}

.up .mainrow {
  order: 1;
}

.ordenador {
  display: none !important;
}
.movil {
  display: block;
}