@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0e27;
}

/* Fondo animado con gradiente */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg,
            #0a0e27 0%,
            #1a2332 25%,
            #0f1b2e 50%,
            #1a2f1a 75%,
            #0a0e27 100%);
    animation: gradientShift 15s ease infinite;
}

/* Capa de overlay con gradiente verde */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top,
            rgba(55, 196, 42, 0.15) 0%,
            rgba(42, 150, 32, 0.1) 40%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Patrón de puntos decorativo */
.dot-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: radial-gradient(circle, #37c42a 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animación del gradiente */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Efecto de brillo sutil */
@keyframes glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Contenedor de partículas */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Partículas individuales */
.particle {
    position: absolute;
    background: rgba(55, 196, 42, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
    box-shadow: 0 0 10px rgba(55, 196, 42, 0.3);
}

/* Animación de flotación */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}


.header {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(55, 196, 42, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    transition: all 0.4s ease;
}

.header-hidden {
    top: -100px;
    opacity: 0;
}

.header .contenido-header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.header .contenido-header h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #37c42a, #2a9620);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(55, 196, 42, 0.3);
    transition: all 0.3s ease;
}

.header .contenido-header h1:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(55, 196, 42, 0.5));
}

.header .contenido-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .contenido-header nav ul li {
    position: relative;
}

.header .contenido-header nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    border-radius: 8px;
}

/* Indicador inferior animado */
.header .contenido-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #37c42a, transparent);
    transition: transform 0.3s ease;
}

.header .contenido-header nav ul li a:hover::after,
.header .contenido-header nav ul li a.seleccionado::after {
    transform: translateX(-50%) scaleX(1);
}

.header .contenido-header nav ul li a:hover {
    color: #37c42a;
    background: rgba(55, 196, 42, 0.1);
}

.header .contenido-header nav ul li a.seleccionado {
    color: #37c42a;
    background: rgba(55, 196, 42, 0.15);
}

/* Iconos de redes sociales */
.header .contenido-header .redes {
    display: flex;
    gap: 12px;
}

.header .contenido-header .redes a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 18px;
}

.header .contenido-header .redes a:hover {
    color: #fff;
    background: linear-gradient(135deg, #37c42a, #2a9620);
    border-color: #37c42a;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 20px rgba(55, 196, 42, 0.4);
}


main #inicio .contenido .presentacion {
    max-width: 1100px;
    height: 100vh;
    margin: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main #inicio .contenido .presentacion h2 {
    font-size: 55px;
    margin-bottom: 25px;
    text-align: center;
}

main #inicio .contenido .presentacion h2 span {
    color: #000000;
}

main #inicio .contenido .presentacion .descripcion {
    max-width: 700px;
    margin: 25px auto;
    font-size: 18px;
    text-align: center;
}

main #inicio .contenido .presentacion a {
    text-decoration: none;
    display: inline-block;
    margin: 25px;
    padding: 20px 25px;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: .5s;
    background-color: #37c42a;
}

main #inicio .contenido .presentacion a:hover {
    background-color: #2a9620;
}

main #proyectos {
    min-height: 100vh;
    padding: 80px 20px;
}

main #proyectos .contenido .muestras {
    max-width: 1200px;
    margin: auto;
    color: #fff;
}

main #proyectos .contenido .muestras .titulos {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Grid de proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card de proyecto */
.proyecto-card {
    background: rgba(21, 23, 29, 0.9);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(55, 196, 42, 0.3);
}

/* Imagen del proyecto */
.proyecto-imagen {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.proyecto-imagen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(55, 196, 42, 0.22), rgba(10, 14, 39, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.placeholder-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.1);
}

/* Overlay de la imagen */
.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 196, 42, 0.8), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-card:hover .proyecto-overlay {
    opacity: 1;
}

.proyecto-overlay .ver-mas {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Información del proyecto */
.proyecto-info {
    padding: 25px;
}

.proyecto-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #fff;
}

.proyecto-descripcion {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

/* Tecnologías */
.proyecto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(55, 196, 42, 0.2);
    color: #37c42a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(55, 196, 42, 0.3);
}

/* Botones del proyecto */
.proyecto-botones {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-proyecto {
    flex: 1;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-github {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-github:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-demo {
    background: linear-gradient(135deg, #37c42a, #2a9620);
    color: #fff;
    border: 2px solid transparent;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #2a9620, #1f7018);
    box-shadow: 0 5px 20px rgba(55, 196, 42, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    main #proyectos .contenido .muestras .titulos {
        font-size: 36px;
        margin-bottom: 40px;
    }
}

main #contacto {
    min-height: 100vh;
    padding: 80px 20px;
}

main #contacto .contenido {
    max-width: 1100px;
    margin: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main #contacto .contenido .formulario {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    background: rgba(21, 23, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

main #contacto .contenido .formulario .titulos {
    text-align: center;
    font-size: 38px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contacto-descripcion {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 15px;
}

/* Formulario */
#contact-form {
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #37c42a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat';
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #37c42a;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(55, 196, 42, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón enviar */
.btn-enviar {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #37c42a, #2a9620);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: linear-gradient(135deg, #2a9620, #1f7018);
    box-shadow: 0 8px 25px rgba(55, 196, 42, 0.4);
    transform: translateY(-2px);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* Mensaje de estado */
.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(55, 196, 42, 0.2);
    border: 1px solid #37c42a;
    color: #37c42a;
}

.form-status.error {
    display: block;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid #ff3b30;
    color: #ff3b30;
}

/* Efectos de fondo */
main #contacto .contenido .formulario::before,
.formulario_circuito {
    content: '';
    position: absolute;
    z-index: -1;
    display: block;
    width: 682px;
    height: 514px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

main #contacto .contenido .formulario::before {
    background: url(../img/bg-circuito.svg);
    opacity: 0.3;
}

main #contacto .contenido .formulario .formulario_circuito {
    display: grid;
    place-items: center;
    -webkit-mask: url(../img/bg-circuito.svg);
    mask: url(../img/bg-circuito.svg);
}

main #contacto .contenido .formulario .formulario_circuito::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #37c42a;
    animation: electricidad 4s infinite;
}

@keyframes electricidad {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(8);
    }

}

h1 .titulos {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Icono del menú móvil */
#icono-nav {
    color: #fff;
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#icono-nav:hover {
    background: rgba(55, 196, 42, 0.2);
    border-color: #37c42a;
    color: #37c42a;
    transform: rotate(90deg);
}

/* Responsive - Tablet y móvil */
@media (max-width: 768px) {
    #icono-nav {
        display: block;
    }

    .header .contenido-header nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        border-bottom: 1px solid rgba(55, 196, 42, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .header .contenido-header nav.responsive {
        left: 0;
    }

    .header .contenido-header nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .header .contenido-header nav ul li {
        width: 100%;
        text-align: center;
    }

    .header .contenido-header nav ul li a {
        padding: 15px 20px;
        border-radius: 0;
        width: 100%;
    }

    .header .contenido-header .redes {
        gap: 15px;
    }
}
