html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1d1c1d;
    background-image: url(../img/abstract-background/ab2.avif);
    background-repeat: no-repeat;
    background-size: cover;
}

h1,
h2 {
    background: linear-gradient(to right, #89f7fe, #66a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}
/* Botón cambio de idioma */
.language-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.language-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6610f2; /*color del botón en español*/
  transition: 0.4s;
  border-radius: 30px;
}

.slider::before {
  position: absolute;
  content: "ES";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  color: #333;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #007bff; /*color del boton en inglés*/
}

input:checked + .slider::before {
  transform: translateX(30px);
  content: "EN";
  color: #1e3a8a;
}
/* === BARRA DE NAVEGACIÓN === */
.header-index {
    color: white;
    min-height: 100vh;
}

.navbar-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    position: relative;
}

.brand-index {
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-index img {
    width: 8%;
    margin-right: 5px;
}

.nav-links__index {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links__index a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 8px;
}

.nav-links__index a:hover {
    border: 2px solid #38bdf8;
    color: #38bdf8;
    transition: color 0.3s ease;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
}

.tablericons {
    display: flex;
    text-align: right;
}

.hero-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    margin-top: 2rem;
    width: 100%;
}

/* === SECCIÓN foto perfil === */
.foto-perfil {
    width: 250px;
    height: 400px;
    /* Ajustar ancho y alto de la imagen */
    overflow: hidden;
    border-radius: 10px;
    /* Cambiar a 1rem si prefiero esquinas suaves en vez de círculo */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #38bdf8;
}

.foto-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foto-perfil:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.contenedor-h1 {
    text-align: center;
}

.contenedor-h1 h1 {
    margin: 10px 0;
}

.h1-p {
    margin-top: 10px;
}

/* botones redes sociales */

.redes-sociales {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
}

.btn-wrapper {
    position: relative;
    width: 150px;
    /* Espacio máximo que ocupará el botón */
    height: 50px;
}

.btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1f2937;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: width 0.5s ease, border-radius 0.5s ease;
}

.icono {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* El ícono no interfiere con el cursor */
    z-index: 2;
}

.texto {
    position: absolute;
    left: 60px;
    /* Justo a la derecha del ícono */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.btn:hover {
    width: 150px;
    border-radius: 50px;
}

.btn:hover .texto {
    opacity: 1;
}

.facebook {
    background-color: #1877f2;
}

.instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

.twitter {
    background-color: #000;
    border: 1px solid #323942;
}

.google {
    background-color: #db4437;
}

.codigo-multiple {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.codigo-banner {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #00ff00;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    padding: 20px;
    width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.codigo-banner code {
    white-space: pre-wrap;
}

/* ===== MAIN SOBRE MI en el index ===== */
.sobre-mi-index {
    min-height: 50vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.mis-actividades {
    margin: 0;
    font-size: 2rem;
}

.img-sobremi {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/4;
    /* Mantiene proporción, mucho mejor para imagenes verticales */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-sobremi img {
    position: absolute;
    inset: 0;
    /* ocupa todo el contenedor */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajusta bien la imagen sin deformarla */
    opacity: 0;
    transition: opacity 1s ease;
    border-radius: 10px;
    /* Opcional, para que la imagen siga el borde del contenedor */
}

.img-sobremi img.active {
    opacity: 1;
}

.texto-sobremi {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.texto-sobremi p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    font-size: 1rem;
    text-align: justify;
}

.texto-sobremi a {
    position: relative;
    color: #f0f0f0;
    text-decoration: none;
    padding-bottom: 4px;
    text-align: left;
}

.texto-sobremi a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #00adb5;
    /* Azul brillante: 1e90ff */
    transition: width 0.3s ease;
}

.texto-sobremi a:hover {
    color: #00adb5;
}

.texto-sobremi a:hover::after {
    width: 100%;
}

/* === SECCIÓN PROYECTOS (CARRUSEL DE CARDS) === */
.proyectos-index {
    text-align: center;
}

.glider-contain {
    position: relative;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glider {
    /* Bloquear el scroll horizontal */
    -ms-overflow-style: none;
    /* IE y Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
}

/* Las cards que se deslizan */
.card-index {
    background-color: #1e1e1e;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    margin: 0 10px;
}

.card-index img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content-index {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-content-index h3 {
    font-size: 1.2rem;
    margin: 0;
}

.card-content-index p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}

.card-content-index a {
    margin-top: auto;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card-content-index a:hover {
    background-color: #3c8bff;
}

/* Botones prev/next de Glider */
.glider-prev,
.glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    z-index: 2;
}

.glider-prev {
    left: 5px;
}

.glider-next {
    right: 5px;
}

/* Dots indicadores */
.dots {
    text-align: center;
    margin-top: 1rem;
}

.dots button {
    background-color: #ccc;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* === Sección Tecnologías === */
.tecnologias {
    flex: 1;
    padding: 3rem 1rem;
    background: transparent;
    text-align: center;
}

.tecnologias,
.categoria,
.lista-tecnologias {
    background: transparent;
    padding: 1rem;
    border-radius: 10px;
}

.tecnologias {
    padding: 2rem;
    background-color: transparent;
    border: 1px solid #0f172a;
    border-radius: 10px;
    max-width: 900px;
    margin: 1rem auto;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}


.tecnologias h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tecnologias p {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.categoria h3 {
    margin-bottom: 1rem;
    color: #38bdf8;
}

.lista-tecnologias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.badge {
    background-color: #1e293b;
    color: #38bdf8;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #334155;
    transition: background-color 0.3s ease;
}

.badge:hover {
    background-color: #334155;
    cursor: default;
}

/* Efecto scroll (aparecen todos los contenedores al ir bajando) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Estilos para sección de Preguntas frecuentes ===== */
.faq {
    min-height: 50vh;
    padding: 2rem;
    text-align: justify;
}

.faq h2 {
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: #00adb5;
    margin-bottom: 0.5rem;
    text-align: left;
}

.faq-item p {
    color: #f0f0f0;
    line-height: 1.6;
}

footer {
    background-color: #0f172a;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Efecto escritura con Javascript */
#typing-text {
    color: white;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    width: fit-content;
    animation: blinkCursor 0.8s step-end infinite;
    min-width: 150px;
    margin-top: 10px;
    margin: 0 auto;
    display: block;

}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

@media (min-width: 1200px) {
    #typing-text {
        margin: 0;
    }
}

@media (max-width: 295px) {
    .sobre-mi-index {
        padding: 0;
        margin: 0 10px;
    }

    .tecnologias h2 {
        font-size: 10px;
    }

    .tecnologias h3 {
        font-size: 8px;
    }
}

/* === AQUI COMIENZAN TODOS LOS MEDIA QUERIES === */
/* MEDIA QUERIES PARA SECCION DEL HEADER EN EL INDEX */
@media (min-width: 1200px) {
    .hero-index {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .hero-index h1 {
        text-align: left;
    }
    .h1-p {
        text-align: left;
    }
}

@media (max-width: 430px) {
    .contenedor-h1 {
        font-size: 12px;
        margin: 0 10px;
    }

    .h1-p {
        padding: 0 1rem;
    }

    .codigo-multiple div {
        margin: 0 20px;
        font-size: 10px;
        height: 190px;
    }
}

@media (max-width: 1024px) {
    .redes-sociales {
        flex-direction: column;
    }

    .btn {
        width: 150px;
        border-radius: 10px;
    }

    .texto {
        opacity: 0;
    }
}

/* === RESPONSIVE PARA LA BARRA DE NAVEGACIÓN por si lo quiero cambiar mas adelante === */
@media (max-width: 820px) {
    body {
        background-position: center;
    }

    .nav-links__index {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0px;
        height: 100vh;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 1rem;
        display: none;
        backdrop-filter: blur(20px) brightness(90%) contrast(120%);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links__index.active {
        display: flex;
        border: 1px solid #1e293b;
        z-index: 5;
        display: flex;
        align-items: flex-end;
    }

    .hamburger {
        display: block;
    }

    .foto-perfil {
        width: 150px;
        /* Ajuste según lo necesite */
        height: 200px;
    }
}

/* MEDIA QUERIES PARA LA SECCION SOBRE MIS ACTIVIDADES EN EL INDEX */
@media (max-width: 1000px) {
    .sobre-mi-index h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sobre-mi-index {
        flex-direction: column;
        text-align: center;
    }

    .mis-actividades {
        text-align: center;
    }

    .texto-sobremi a {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .sobre-mi-index {
        flex-direction: column;
    }
}

/* ===MEDIA QUERIES PARA BOTONES NEXT Y PREV EN GLIDER=== */
@media (max-width: 768px) {
    .glider-prev {
        left: 1px;
    }

    .glider-next {
        right: 1px;
    }
}

/* MEDIA QUERIES PARA SECCION TECNOLOGIAS */
@media (max-width: 890px) {
    .tecnologias {
        margin: 1rem 15px;
    }
}

@media screen and (max-width: 200px) {
    .brand-index {
        font-size: 15px;
    }

    .nav-links__index {
        font-size: 10px;
        gap: 0px;
    }

    .hero-index {
        margin: 0;
    }

    .nav-links__index.active {
        display: flex;
        top: 50px;
        border: 1px solid #1e293b;
        z-index: 5;
    }

    .tablericons svg {
        width: 15px;
        /* más pequeño que 32px */
        height: 15px;
    }

    .foto-perfil {
        height: 120px;
        width: 90px;
    }

    .contenedor-h1 {
        font-size: 8px;
        margin: 0 5px;
    }

    .redes-sociales {
        transform: scale(0.8);
    }

    .codigo-multiple {
        margin: 0 10px;
        padding: 0;
    }

    .codigo-multiple div {
        font-size: 5px;
    }

    .codigo-banner {
        height: 90px;
        padding: 5px;
        border-radius: 5px;
    }

    .sobre-mi {
        margin: 0 10px;
    }

    .sobre-mi-index {
        padding: 1rem 0;
    }

    .img-sobremi {
        max-width: 100px;
    }

    .texto-sobremi {
        min-width: 100px;
    }

    .texto-sobremi h2,
    .texto-sobremi p,
    .texto-sobremi a {
        font-size: 10px;
    }

    .proyectos-section {
        padding: 0.5rem;
        transform: scale(0.4);
        transform-origin: top center;
    }

    .proyectos-index {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .glider-contain {
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .glider {
        gap: 0.5rem;
    }

    .card-index {
        width: 140px;
        max-height: 220px;
        padding: 0.5rem;
        border-radius: 5px;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
    }

    .card-index img {
        width: 100%;
        max-height: 60px;
        object-fit: cover;
        border-radius: 5px;
    }

    .card-content-index h3 {
        font-size: 0.7rem;

    }

    .card-content-index p {
        font-size: 0.65rem;
        line-height: 1.1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-content-index a {
        font-size: 0.7rem;
        background-color: #ffffff22;
        border-radius: 5px;
        text-decoration: none;
        color: #fff;
        display: inline-block;
        margin-top: 0.3rem;
    }

    .glider-prev,
    .glider-next {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        background: #ffffff22;
        color: #fff;
        border-radius: 50%;
        border: none;
    }

    .dots {
        margin-top: 0.4rem;

    }

    .dots button {
        width: 6px;
        height: 6px;
        background: #fff;
        opacity: 0.3;
        border: none;
        border-radius: 50%;
    }

    #tecnologias {
        padding: 8px;
        font-size: 10px;
    }

    .tecnologias h2 {
        font-size: 12px;
        text-align: center;
    }

    .categoria {
        padding: 0;
        margin: 0;
    }

    .tecnologias .categoria h3 {
        font-size: 11px;
        margin: 2px;
    }

    .lista-tecnologias {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .badge {
        font-size: 9px;
        padding: 2px 4px;
        border-radius: 4px;
        width: fit-content;
        margin: 2px;
    }

    .faq {
        padding: 0.5rem;
    }

    .faq h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .faq-item h3 {
        font-size: 0.85rem;
        margin: 0.4rem 0;
    }

    .faq-item p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .footer-index {
        font-size: 8px;
    }
}

/* ========== SOBRE MI ========== */
/* Aquí comienzan los estilos para la pagina sobremi.html */

/*html,
.body-sobremi {
    height: 100%;
    margin: 0;
    padding: 0;
}

.body-sobremi {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-sobremi {
    flex: 1;
} 
todo este bloque es para acomodar el footer y mandarlo hacia abajo, pero me desorganiza el index principal, 
si es posible se aplicará de manera global (checar luego)*/
.header-sobremi {
    color: white;
}

.contenedor-principal {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    color: #f0f0f0;
}

/* Sobre mí */
.sobre-mi-article {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    max-width: 350px;
}

.foto-perfil-sobremi {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.contenido,
.contenido p {
    text-align: center;
}

.redes a {
    display: inline-block;
    margin: 0.5rem;
    color: #3498db;
    text-decoration: none;
}

.redes a:hover {
    text-decoration: underline;
}

/* Secciones al costado */

.secciones-laterales {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seccion {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.texto-bienvenida,
.texto-descriptivo,
.texto-destacado {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.seccion h3 {
    margin-top: 0;
}

.seccion ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.5rem;
    /* espacio entre filas y columnas */
    padding-left: 1rem;
    list-style-type: disc;
}

.seccion ul li {
    /* Opcional: ajustar estilos de cada ítem */
    font-weight: 500;
}

.lista-habilidades li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lista-habilidades i {
    color: #007BFF;
    font-size: 1.2rem;
}


/* ===Responsive para contenedor principal en tablets=== */
@media (max-width: 768px) {
    .contenedor-principal {
        flex-direction: column;
    }

    .sobre-mi-article {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {

    .seccion h3,
    .seccion p {
        text-align: center;
    }

    .seccion ul {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ========== SOBRE MI: Sección descriptiva ========== */
.seccion-descriptiva {
    margin: 0 auto;
    padding: 2rem;
    max-width: 1200px;
    color: #f0f0f0;
}

.contenedor-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.texto-descriptivo {
    flex: 2;
    min-width: 150px;
    padding: 1rem 2.5rem;
    background-color: #1e1e1e;
    border-radius: 12px;
}

.imagen-descriptiva {
    flex: 1;
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* === Proyecto Destacado: Fit-Ü (cuando lo tenga xd) === */

.btn-proyecto {
    display: inline-block;
    padding: 0.45rem 2rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 10px 10px 10px 0;
}

.btn-proyecto:hover {
    background-color: #0056b3;
}

.motivacional p {
    text-align: center;
    background-color: #1e1e1e;
    color: #f0f0f0;
    font-style: italic;
    margin: 0;
    padding: 2rem;
}

.sobre-mi-article,
.seccion,
.texto-descriptivo,
.card-proyecto,
.contenido-destacado-seccion-proyectos {
    box-shadow: 0 0 10px 2px #00f0ff;
    animation: lucesLED 8s linear infinite;
    border-radius: 10px;
}

@keyframes lucesLED {
    0% {
        box-shadow: 0 0 5px 2px #00f0ff;
    }

    25% {
        box-shadow: 0 0 10px 2px #ff00c8;
    }

    50% {
        box-shadow: 0 0 15px 2px #00ff99;
    }

    75% {
        box-shadow: 0 0 10px 2px #ffcc00;
    }

    100% {
        box-shadow: 0 0 5px 2px #00f0ff;
    }
}

/* === Aqui comienza la seccion de 'Mis proyectos' ===*/

/*proyecto principal seccion mis proyectos */

.proyecto-destacado {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.contenido-destacado-seccion-proyectos {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contenido-destacado-seccion-proyectos img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    object-fit: cover;
    flex: 1 1 300px;
}

.info-destacada {
    flex: 1 1 300px;
    color: #f5f5f5;
}

.info-destacada h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.info-destacada p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

.tecnologias-seccion-proyectos {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tecnologias-seccion-proyectos li {
    background: #007BFF;
    /*#00ffc8 verde*/
    color: #f0f0f0;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2rem;
    /* Opcional: asegura altura uniforme */
}

/*Seccion div mis proyectos inicio*/
.contenedor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.card-proyecto {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    color: #f5f5f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-proyecto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-proyecto h3 {
    font-size: 1.3rem;
    margin: 1rem 0 1rem 0;
}

.card-proyecto p {
    flex-grow: 1;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

.btn-seccion-proyectos {
    display: flex;
    justify-content: center;
    padding: 0.65rem 1rem;
    margin: 0;
}

@media (max-width: 1000px) {
    .contenido-destacado-seccion-proyectos {
        justify-content: space-around;
    }
}


/* Estilos para la sección de contacto */
.h6-contacto {
    text-align: center;
    margin: 2rem 1rem;
    font-size: 1rem;
    color: #f0f0f0;
}

.contenedor-h2 p {
    text-align: center;
    color: #f0f0f0;
}

/* Estilos del formulario NO MOVER MÁS */
.main-contacto {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    align-items: start;
}

.form-contacto {
    background-color: #33333d;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;

    transition: transform 0.3s ease;
}

.form-contacto:hover {
    transform: translateY(-5px);
}

.form-contacto label {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 0.8rem;
    /*border: 2px solid #dcdcdc;*/
    color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    background-color: #565662;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    border: none;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;

}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 2s ease;
}

.btn-submit:hover {
    background: linear-gradient(to right, #2575fc, #6a11cb);
}

/* Estilos de la animacion del muñequito (Responsive) NO MOVER MÁS */
.cara {
    width: 100px;
    margin: 20px auto;
    animation: saltar 1.5s infinite ease-in-out;
}

.cara img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 10px 6px rgba(106, 17, 203, 0.7);
}

@keyframes saltar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}