/* css/components.css */

/*-------------------------
HEADER
-------------------------*/
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: var(--negro-carbon);
    width: 100%;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    height: 5rem;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--sombra-caja);
}

.navbar-brand {
    color: var(--texto-claro) !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin-left: 1rem;
}

.navbar-nav > *:first-child {
    margin-left: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--texto-claro) !important;
    font-size: 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--naranja) !important;
    text-decoration: underline 2px solid var(--naranja);
    font-size: 1.4rem;
    transition: 1s;
}

.nav-link.active {
    color: var(--naranja) !important;
    text-decoration: underline 2px solid var(--naranja);
    font-size: 1.4rem !important;
    transition: 1s;
}

/*-------------------------
HERO
-------------------------*/
.hero {
    padding: 8rem 0;
    text-align: center;
    background-image: url(../assets/img/Programacion.jpg);
    box-shadow: var(--sombra-caja);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--texto-claro);
    margin-bottom: 0.5rem;
}

.hero .container {
    background-color: rgba(50, 44, 44, 0.844);
    border-radius: 15px;
    width: 38rem;
}

/*-------------------------
TITULO-SEPARADOR
-------------------------*/
/* Contenedor superior */
.header-proyectos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* por si en móvil se baja */
    margin-bottom: 20px;
}

/* Título */
.header-proyectos h2, #prototipos h2 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.header-prototipos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* por si en móvil se baja */
    margin-bottom: 20px;
}

/* Contenedor botones */
.categorias {
    display: flex;
    gap: 10px;
}

/* Botones tipo pill */
.categoria-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover */
.categoria-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Activo */
.categoria-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

/* Punticos de color */
.categoria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-todos { background: white; }
.dot-unity { background: orange; }
.dot-web { background: #4fc3f7; }
.dot-backend { background: #66bb6a; }

/*-------------------------
CARDS
-------------------------*/
.proyectos-conteiner {
    padding: 3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background-color: #ffa500;
}

#contenedorTarjetasProyectos,
#contenedorTarjetasPrototipos {
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.cards {
    width: 300px;
    height: 550px;
    background-color: #111;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.img-card {
    position: relative;
}

.img-card img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #ffa500;
}

.info-card {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.info-card p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.info-card p:first-child {
    font-style: italic;
    font-weight: bold;
    color: #ffa500;
}

.badge-categoria {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    z-index: 1;
}

@media screen and (max-width: 500px) {
    .cards {
        width: 90%;
    }
}

/*-------------------------
SECCIÓN INFORMACIÓN
-------------------------*/
#sobre-mi {
    padding: 60px 20px;
    text-align: center;
}

#sobre-mi h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--texto-claro);
}

.container-informacion {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-principal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.img-container img {
    width: 250px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-container {
    flex: 1;
    width: 28rem;
    height: 30rem;
    min-width: 300px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 6);
    border-radius: 12px;
}

.text-container p,
h2 {
    padding: 2rem;
}

.tecnologias-tabla {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    background: black;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 6);
    flex-wrap: wrap;
}

.columna {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.columna h4 {
    font-size: 1.1rem;
    color: var(--texto-claro);
    border-bottom: 2px solid var(--naranja-quemado);
    padding-bottom: 4px;
    margin-bottom: 6px;
    text-align: center;
}

.item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    justify-content: center;
    color: var(--texto-claro);
}

.item i {
    font-size: 1.2rem;
}

.item:hover {
    color: var(--naranja-suave);
}

/*-------------------------
PORTFOLIO
-------------------------*/
.portfolio {
    padding: 6rem 0;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--sombra-caja);
}

/*-------------------------
FOOTER
-------------------------*/
.py-4 {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--texto-claro);
    width: 100%;
    margin-top: auto;
    padding: 2rem 0;
}

.container-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contacto {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 5px;
}

#icon:hover {
    transform: scale(1.2);
    color: var(--naranja-suave);
}

.contactoH2 {
    font-size: 2rem;
    color: var(--beige-claro);
    text-decoration: none;
}

.copy {
    font-size: 0.9rem;
}

/*-------------------------
SUBMIT PROYECTS
-------------------------*/
.submit-proyects {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../assets/img/Portada.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.contenedor-form-submit-proyects {
    background-color: var(--gris-claro);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
    max-width: 600px;
    width: 100%;
}

.contenedor-form-submit-proyects h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--texto-principal);
}

.contenedor-form-submit-proyects form {
    display: grid;
    gap: 15px;
}

.contenedor-form-submit-proyects form div {
    display: flex;
    flex-direction: column;
}

.contenedor-form-submit-proyects form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contenedor-form-submit-proyects form input[type="url"],
.contenedor-form-submit-proyects form input[type="text"],
.contenedor-form-submit-proyects form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.contenedor-form-submit-proyects form textarea {
    min-height: 100px;
}

/*-------------------------
LOGIN
-------------------------*/
#login {
    border-radius: 12px;
    width: 30%;
    box-shadow: 1 5px 9px rgba(13, 13, 13, 0.3);
    background-image: url(../assets/img/backgraundlog.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

#login label {
    color: var(--beige-claro);
}

#login .btn {
    width: 13.5em;
}

#login h2 {
    color: var(--beige-claro);
}

.w-50 {
    padding-bottom: 4em;
}
/*-------------------------
FILTROS
-------------------------*/
.categorias {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.categoria-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid #333;
    background: #1e1e1e;
    color: #aaa;
    transition: all 0.2s;
}

.categoria-btn.active {
    background: rgba(230, 126, 34, 0.15);
    color: #E67E22;
    border-color: #E67E22;
}

.categoria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-todos   { background: #888; }
.dot-unity   { background: #E67E22; }
.dot-web     { background: #3B8BD4; }
.dot-backend { background: #1D9E75; }

.sin-resultados {
    color: #aaa;
    font-size: 1rem;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}