/* ============== VARIABLES Y RESET ============== */
:root {
    --primary-color: #020d20;
    --secondary-color: #0671cf;
    --accent-color: #00aaff;
    --text-color: #ffffff;
    --text-secondary: #a8b2ff;
    --card-bg: #282c34;
    --section-bg: #1e1e2f;
    --nav-bg: linear-gradient(20deg, #05214e4b, #0671cfb4);
    --font-main: 'Audiowide', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 15px rgba(0, 170, 255, 0.3);
    --neon-glow: 0 0 10px rgba(0, 170, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

/* ============== EFECTOS DE PARTÍCULAS ============== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(2, 13, 32, 1) 0%, rgba(3, 22, 53, 1) 100%);
    animation: colorChange 15s infinite alternate;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
    box-shadow: var(--neon-glow);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
}

@keyframes colorChange {
    0% {
        background-color: rgba(2, 13, 32, 1);
    }
    100% {
        background-color: rgba(3, 22, 53, 1);
    }
}

/* ============== BARRA DE NAVEGACIÓN LATERAL (ORIGINAL CON EFECTOS NEON) ============== */
.nav {
    position: fixed;
    width: 145px;
    height: 100vh;
    top: 0;
    left: 0;
    background: var(--nav-bg);
    border-top-right-radius: 80px;
    z-index: 1000;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border-right: 1px solid rgba(217, 228, 233, 0.3);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav ul li {
    margin: 40px 0;
    text-align: center;
}

.nav a {
    font-size: 16px;
    color: var(--text-color);
    display: block;
    padding: 12px 30px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: #ececec; 
    background-color: rgba(0, 255, 255, 0.1); 
    border-top-left-radius: 10px;
    border-bottom-left-radius: 90px;
    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease-in-out;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

/* ============== SECCIÓN PRESENTACIÓN (MEJORADA CON EFECTO NEON) ============== */
#presentacion {
    padding: 50px;
    margin-left: 160px;
    padding-top: 2rem;
}

.saludo {
    font-size: 3.5rem;
    color: var(--text-secondary);
    margin-top: 50px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: var(--neon-glow);
    position: relative;
    display: inline-block;
}

.saludo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    box-shadow: var(--neon-glow);
}

.texto-presentacion {
    margin: 30px;
    font-size: 1.5rem;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(5px);
    background: rgba(40, 44, 52, 0.6);
    box-shadow: 0 4px 10px rgba(223, 170, 170, 0.678);
    border-left: 3px solid var(--accent-color);
    position: relative;
}

.texto-presentacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 170, 255, 0.1), transparent);
    z-index: -1;
    border-radius: 20px;
}

/* ============== SECCIÓN HABILIDADES (CON EFECTOS NEON) ============== */
.habilidades {
    text-align: center;
    padding: 50px;
    margin-left: 160px;
}

.section-title {
    font-size: 3.5rem;
    color: var(--text-secondary);
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: var(--neon-glow);
}

.section-description {
    font-size: 1.5rem;
    color: rgba(241, 238, 238, 0.9);
    margin-top: 50px;
    margin-bottom: 50px;
}

.skills-container {
    margin-top: 2rem;
}

.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    margin-top: 90px;
    text-shadow: 0 0 5px rgba(168, 178, 255, 0.5);
}

.skills-category p {
    font-size: 1.5rem;
    color: rgba(241, 238, 238, 0.9);
    margin-top: 50px;
    margin-bottom: 50px;
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-item {
    flex: 1 1 150px;
    margin: 20px;
    text-align: center;
    transition: var(--transition);
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    max-width: 200px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.skill-item:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
    border-color: var(--accent-color);
}

.skill-item i {
    font-size: 80px;
    color: var(--text-color);
    transition: var(--transition);
}

.skill-item:hover i {
    color: var(--accent-color);
    text-shadow: var(--neon-glow);
}

.skill-item p {
    font-size: 1rem;
    margin: 20px 0 0;
    padding: 0;
}

/* ============== SECCIÓN SOBRE MÍ  ============== */
#sobre-mi {
    padding: 50px;
    margin-left: 160px;
    text-align: center;
}

.titulo_sobre_mi {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-shadow: var(--neon-glow);
}

.texto_sobre_mi {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 20px;
    border-radius: 10px;
    background: rgba(30, 30, 47, 0.5);
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

/* ============== SECCIÓN CERTIFICACIONES  ============== */
#certificaciones {
    padding: 50px;
    margin-left: 160px;
}

.ceryrec {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-shadow: var(--neon-glow);
    text-align: center;
}
.carousel-container {
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: calc(100% / 3); /* 3 slides visibles */
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificado {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    max-height: 300px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }



/* ============== SECCIÓN PROYECTOS ============== */
.proyectos-section {
    
    padding: 50px 30px;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    text-align: center;
    max-width: 1300px;
}

.proyectos-section h2 {
    font-size: 2.5rem;
    color: #a8b2ff;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(168, 178, 255, 0.5);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 130px;
    justify-items: center;
}

.project-card {
    background-color: #282c3462;
    width: 120%;
    max-width: 500px;
    height: 400px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 170, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px 5px rgba(0, 255, 255, 0.8);
    border-color: rgba(0, 255, 255, 0.5);
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    flex-grow: 1;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eaeaea;
    margin-bottom: 15px;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit:contain;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.project-image:hover {
    transform: scale(1.03);
}

/* Títulos con colores personalizados */
.titulo-astroveloxer { color: #00ffcc; text-shadow: 0 0 8px rgba(0, 255, 204, 0.5); }
.titulo-salon { color: #ffcc00; text-shadow: 0 0 8px rgba(255, 204, 0, 0.5); }
.titulo-cafeteria { color: #ff9900; text-shadow: 0 0 8px rgba(255, 153, 0, 0.5); }
.titulo-mrs { color: #66ccff; text-shadow: 0 0 8px rgba(102, 204, 255, 0.5); }
.titulo-veloxernet { color: #ff6699; text-shadow: 0 0 8px rgba(255, 102, 153, 0.5); }
.titulo-robot { color: #cc66ff; text-shadow: 0 0 8px rgba(204, 102, 255, 0.5); }
.titulo-veloxsafekey { color: #3399ff; text-shadow: 0 0 8px rgba(51, 153, 255, 0.5); }

/* ============== SECCIÓN CONTACTO ============== */
.contacto-section {
    background: linear-gradient(135deg, #1e1e2f, #282c34);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    text-align: center;
    max-width: 1000px;
    margin: 50px auto;
}

.contacto-section h2 {
    font-size: 3rem;
    color: #a8b2ff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(168, 178, 255, 0.7);
}

.contact-description {
    font-size: 1.2rem;
    color: #eaeaea;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #00aaff;
    border-radius: 10px;
    background-color: #1e1e2f;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px #00aaff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background-color: #00aaff;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #0088cc;
    box-shadow: 0 0 10px #00aaff;
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}

.icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: 0.3s ease;
}

.icon:hover i {
    color: #00aaff;
    transform: scale(1.2);
    text-shadow: 0 0 10px #00aaff;
}

/* ============== SECCIÓN CONTACTO ============== */
.contacto-section {
    background: linear-gradient(135deg, #1e1e2f, #282c34);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    text-align: center;
    max-width: 1000px;
    margin: 50px auto;
}

.contacto-section h2 {
    font-size: 3rem;
    color: #a8b2ff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(168, 178, 255, 0.7);
}

.contact-description {
    font-size: 1.2rem;
    color: #eaeaea;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #00aaff;
    border-radius: 10px;
    background-color: #1e1e2f;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px #00aaff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background-color: #00aaff;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #0088cc;
    box-shadow: 0 0 10px #00aaff;
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}   

.icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: 0.3s ease;
}

.icon:hover i {
    color: #00aaff;
    transform: scale(1.2);
    text-shadow: 0 0 10px #00aaff;
}
.mensaje-ok, .mensaje-error {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
    opacity: 1;
    animation: fadeIn 0.9s ease forwards;
    position: relative;
}

.mensaje-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* Botón de cierre opcional */
.mensaje-ok .cerrar, .mensaje-error .cerrar {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}


/* ============== PIE DE PÁGINA ============== */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    margin-left: 160px;
}








/* ========== TABLETS (<= 1024px) ========== */
@media (max-width: 1024px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .skills-grid {
        flex-wrap: wrap;
        gap: 15px;
    }

    .skill-item {
        flex: 1 1 45%;
        max-width: 220px;
    }



}

/* ========== CELULARES GRANDES (<= 768px) ========== */
@media (max-width: 768px) {
    /* NAVBAR RESPONSIVA */
    .nav {
        left: -100%;
        width: 70%;
        height: 100vh;
        border-top-right-radius: 0;
        border-right: none;
        transition: left 0.3s ease-in-out;
    }

    .nav.show {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    section,
    .footer {
        margin-left: 0 !important;
        padding: 2rem 1rem;
    }

    .nav ul li {
        margin: 25px 0;
    }

    .nav a {
        font-size: 1.2rem;
        padding: 12px;
    }

    /* TEXTOS GENERALES */
    .saludo,
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .texto-presentacion,
    .section-description,
    .contact-description,
    .texto_sobre_mi {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 90%;
        margin: auto;
        text-align: left;
        margin-top: 15px;
    }

    /* HABILIDADES */
    .skills-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .skill-item {
        width: 90%;
        max-width: 300px;
    }

    /* PROYECTOS */
    .project-card {
        width: 95%;
        height: auto;
    }

    

   

    .carousel-btn {
        display: none;
    }

    /* FORMULARIO */
    .contacto-section h2 {
        font-size: 2rem;
        word-break: break-word;
        text-align: center;
    }

    .contact-form {
        width: 100%;
        padding: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 12px 16px;
    }

    /* PIE DE PÁGINA */
    .footer p {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* ========== CELULARES PEQUEÑOS (<= 480px) ========== */
@media (max-width: 480px) {
    .saludo {
        font-size: 1.5rem;
    }

    .section-title,
    .ceryrec {
        font-size: 1.4rem;
        text-align: center;
        
    }

    .skill-item i {
        font-size: 2rem;
    }

    .skill-item p {
        font-size: 0.9rem;
    }

    .formulario h3 {
        font-size: 1.1rem;
    }

    .formulario form {
        padding: 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .certificado {
        width: 180px;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .nav {
        position: fixed;
        left: -100%;
        width: 70%;
        height: 100vh;
        z-index: 999;
        border-top-right-radius: 0;
        transition: left 0.3s ease-in-out;
    }

    .nav.show {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    section,
    .footer {
        margin-left: 0 !important;
        padding: 2rem 1rem;
    }

    .saludo,
    .section-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .texto-presentacion,
    .section-description,
    .contact-description,
    .texto_sobre_mi {
        font-size: 0.95rem;
        text-align: left;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .certificado {
        width: 160px;
        height: auto;
    }

    .project-card {
        width: 95%;
    }

    .skills-grid {
        gap: 10px;
    }
}


@media (max-width: 768px) {
  .carousel-container {
    overflow: hidden;
    padding: 0 1rem;
  }

  .carousel .certificados {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    justify-content: flex-start;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
  }

  .certificado {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
    padding: 0 1rem;
  }

  .carousel-btn {
    display: none;
  }
}
