/* styles.css - Design System for NeuroNómada Portafolio */

/* 1. CONFIGURACIÓN DE VARIABLES Y FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    /* Paleta de colores */
    --bg-main: #0A0A0A;
    --accent-neon: #39FF14;
    --accent-cyan: #00F5FF;
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
    --card-bg: rgba(26, 26, 26, 0.6);
    --border-glow: rgba(57, 255, 20, 0.2);

    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET Y ESTILOS GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.mono {
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* 3. LAYOUT Y CONTENEDORES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 4. CABECERA (HERO SECTION) */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), var(--bg-main)),
        url('https://res.cloudinary.com/drskhmrtc/image/upload/v1773971359/ChatGPT_Image_19_mar_2026_08_46_58_p.m._tcp45c.png');
    /* Usando la imagen generada */
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-container {
    position: relative;
    margin: 0 auto 30px auto;
    width: 180px;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.profile-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.profile-container:hover .profile-flip-inner,
.profile-container.flipped .profile-flip-inner {
    transform: rotateY(180deg);
}

.profile-front, .profile-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
}

.profile-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.profile-back {
    transform: rotateY(180deg);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-neon);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    object-fit: cover;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-container:hover .profile-pic,
.profile-container.flipped .profile-pic {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.8);
}

.profile-back .profile-pic {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.profile-container:hover .profile-back .profile-pic,
.profile-container.flipped .profile-back .profile-pic {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.8);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--accent-neon);
    margin-bottom: 30px;
    font-weight: bold;
}

.hero-bio {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--accent-neon);
    background: transparent;
    color: var(--accent-neon);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-neon);
    color: var(--bg-main);
    box-shadow: 0 0 30px var(--accent-neon);
}

/* 5. SECCIÓN SKILLS */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-neon);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.skill-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.skill-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.skill-list li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 60%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    align-self: center;
}

.progress-fill {
    height: 100%;
    background: var(--accent-neon);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-neon);
}

/* 6. EXPERIENCIA Y PROYECTOS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border-bottom: 4px solid var(--accent-cyan);
    transition: var(--transition-fast);
    position: relative;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.2);
}

.project-card:hover .project-img img,
.project-card:hover .project-img video {
    transform: scale(1.1) !important;
}

.project-content {
    padding: 30px;
}

.project-card h4 {
    color: var(--accent-neon);
    margin-bottom: 15px;
}

.tech-tag {
    display: inline-block;
    font-size: 0.8rem;
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 10px;
    margin-top: 15px;
}

/* 7. CATÁLOGO SECTION */
#catalogo {
    text-align: center;
    background: linear-gradient(45deg, #0A0A0A, #1a1a1a);
}

.btn-glow {
    padding: 20px 50px;
    font-size: 1.3rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    color: var(--bg-main);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(57, 255, 20, 0.7);
    }

    100% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
    }
}

/* 8. CONTACTO */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: #1A1A1A;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-neon);
    color: var(--bg-main);
    transform: scale(1.2);
}

/* 10. FOOTER */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-quote {
    color: var(--accent-cyan);
    font-style: italic;
    margin-bottom: 20px;
}

/* 11. SOLUCIONES TECNOLÓGICAS (TABS) */
.tabs-container {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 20px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    position: relative;
}

.tab-btn svg {
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.02);
}

.tab-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.tabs-body {
    padding: 40px;
    position: relative;
    min-height: 250px;
}

.tab-content {
    display: none;
    animation: fadeIn var(--transition-fast);
}

.tab-content.active {
    display: block;
}

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

.tab-info h3 {
    color: var(--accent-neon);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tab-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.tab-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.solutions-cta {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.solutions-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .tab-btn.active::after {
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
    }
}

/* 12. AUTOMATIZACIÓN INTERACTIVA */
.automation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.automation-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.close-overlay {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-overlay:hover {
    color: var(--accent-neon);
}

.auto-step {
    width: 100%;
    height: 380px; /* Fixed height for the card */
    display: none;
    flex-direction: column;
    animation: slideUpFade 0.4s ease forwards;
}

.auto-step.active {
    display: flex;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auto-step h4 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.scrollable-options {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 10px;
}

/* Custom minimal scrollbar for scrollable options */
.scrollable-options::-webkit-scrollbar {
    width: 6px;
}
.scrollable-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.scrollable-options::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.auto-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auto-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto-btn {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.pill-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pill-btn {
    border-radius: 50px;
    width: auto;
    padding: 8px 16px;
    margin: 0;
    flex: 0 1 auto;
}

.elec-dropdown-card {
    position: relative;
    width: 100%;
}

.elec-dropdown-btn {
    width: 100%;
    margin: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elec-dropdown-btn::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.elec-dropdown-card.open .elec-dropdown-btn::after {
    transform: rotate(180deg);
}

.elec-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 10px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-height: 180px;
}

.elec-dropdown-card.open .elec-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.elec-dropdown-content .auto-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.auto-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.auto-btn-secondary {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    width: 100%;
}

.auto-btn-secondary:hover {
    color: var(--accent-neon);
}

#auto-result-text {
    color: var(--text-white);
}

.auto-input-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.auto-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 245, 255, 0.4);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.auto-input:focus {
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.auto-btn-primary {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auto-btn-primary:hover {
    background: var(--accent-neon);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.auto-btn.selected {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    transform: scale(1.02);
}

.auto-btn:disabled, .auto-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: #555;
    color: #555;
    box-shadow: none;
}

.auto-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
    width: 100%;
}

.auto-btn-nav {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--accent-neon);
    background: transparent;
    color: var(--accent-neon);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.auto-btn-nav:hover:not(:disabled) {
    background: var(--accent-neon);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.auto-btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    color: #555;
    background: transparent;
}

.auto-group-title {
    color: var(--accent-cyan);
    margin: 15px 0 10px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    width: 100%;
}

/* 13. TRANSITIONS & DIVIDERS */
.transition-divider {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.transition-phrase {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
}

.glow-line {
    width: 60%;
    max-width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-neon), var(--accent-cyan), transparent);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4), 0 0 5px rgba(57, 255, 20, 0.4);
    border-radius: 50%;
}