/* --- VARIABLES GLOBALES --- */
:root {
    --primary-color: #6C5CE7;
    --primary-hover: #5A4AD1;
    --secondary-color: #FF7675;
    --accent-color: #00CEC9;
    --orange-color: #FF7600;
    --bg-light: #F9FAFC;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
    --border-radius: 20px;
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background 0.3s !important;
}

.btn-nav:hover {
    background: var(--primary-hover) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
    background: linear-gradient(180deg, #F0EDFF 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.badge {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* Shapes Animadas */
.shape {
    position: absolute;
    font-size: 2.5rem;
    animation: float 4s ease-in-out infinite;
    opacity: 0.6;
}
.shape-1 { top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 60%; right: 12%; animation-delay: 1.5s; }
.shape-3 { top: 15%; right: 15%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- PROYECTOS --- */
.projects-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-muted);
}

/* Filtros */
.filter-buttons {
    /*display: flex;*/
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
	margin: 5px 2px;
    border: none;
    background: #EAEAEA;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Grid de Tarjetas */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-banner {
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-owl { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.bg-sports { background: linear-gradient(135deg, #FF416C, #FF4B2B); }

.card-emoji {
    font-size: 4.5rem;
    transition: transform 0.3s;
}

.project-card:hover .card-emoji {
    transform: scale(1.15) rotate(5deg);
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-orange { color: var(--orange-color); }

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-card {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-card:hover {
    background: var(--primary-hover);
}

.btn-orange {
    background: var(--orange-color);
}
.btn-orange:hover {
    background: #E06700;
}

/* --- SOBRE MÍ --- */
.about-section {
    background: #FFF;
    padding: 80px 0;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    color: var(--accent-color);
}

/* --- FOOTER --- */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer p {
    color: #A0AEC0;
    margin-bottom: 25px;
}
.footer p a{
	color: #A0AEC0;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-shapes {
        display: none; /* Ocultar para móviles */
    }
}
/* --- GRADIENTES PARA NUEVAS TARJETAS DE PROYECTO --- */
.bg-route { 
    background: linear-gradient(135deg, #11998e, #38ef7d); 
}

.bg-tai { 
    background: linear-gradient(135deg, #00c6ff, #0072ff); 
}

.bg-repair { 
    background: linear-gradient(135deg, #f2994a, #f2c94c); 
}

/* --- ETIQUETAS DE CATEGORÍA --- */
.tag-teal { 
    color: #0d8a7b; 
}

.tag-blue { 
    color: #0062cc; 
}

.tag-green { 
    color: #c87a00; 
}

/* --- BOTONES ESPECÍFICOS --- */
.btn-teal {
    background: #11998e;
}
.btn-teal:hover {
    background: #0d786f;
}

.btn-blue {
    background: #0072ff;
}
.btn-blue:hover {
    background: #005bb5;
}

.btn-green {
    background: #e67e22;
}
.btn-green:hover {
    background: #d35400;
}

/* ==========================================================================
   ESTILOS PARA NUEVOS PROYECTOS (MUÉVETE, PLANIFICADOR, MEMORIA VIVA)
   ========================================================================== */

/* Gradientes de Encabezado por Proyecto */
.bg-muevete { 
    background: linear-gradient(135deg, #1b4d3e, #2d7d65); 
}

.bg-planificador { 
    background: linear-gradient(135deg, #2563eb, #60a5fa); 
}

.bg-memoria { 
    background: linear-gradient(135deg, #0d47a1, #1976d2); 
}

/* Colores para las Etiquetas (Tags) */
.tag-muevete { 
    color: #1b4d3e; 
}

.tag-planificador { 
    color: #1d4ed8; 
}

.tag-memoria { 
    color: #0d47a1; 
}

/* Estilos de Botones Personalizados con Efecto Hover */
.btn-muevete {
    background: #1b4d3e;
}
.btn-muevete:hover {
    background: #13382d;
}

.btn-planificador {
    background: #2563eb;
}
.btn-planificador:hover {
    background: #1d4ed8;
}

.btn-memoria {
    background: #0d47a1;
}
.btn-memoria:hover {
    background: #0a367c;
}
/* ==========================================================================
   Estilos específicos: Recetas de mi Nevera (#146c43)
   ========================================================================== */
   .bg-recetas {
    background: linear-gradient(135deg, #146c43 0%, #0a3622 100%);
}

.tag-recetas {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-recetas {
    background-color: #146c43;
    color: #ffffff;
}

.btn-recetas:hover {
    background-color: #0f5233;
    color: #ffffff;
}

/* ==========================================================================
   Estilos específicos: CineFinder (#e50914)
   ========================================================================== */
.bg-cinefinder {
    background: linear-gradient(135deg, #e50914 0%, #800000 100%);
}

.tag-cinefinder {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-cinefinder {
    background-color: #e50914;
    color: #ffffff;
}

.btn-cinefinder:hover {
    background-color: #b80710;
    color: #ffffff;
}
/* ==========================================================================
   ESTILOS PARA FITAI WORKOUT (#10b981)
   ========================================================================== */

/* Gradiente para el banner de FitAI Workout */
.bg-fitai { 
    background: linear-gradient(135deg, #10b981, #059669); 
}

/* Color para el texto del tag */
.tag-fitai { 
    color: #047857; 
}

/* Estilo del botón interactivo con efecto Hover */
.btn-fitai {
    background: #10b981;
}

.btn-fitai:hover {
    background: #059669;
}

/* ==========================================================================
   Estilos específicos: Regalo Perfecto (#7c3aed)
   ========================================================================== */
   .bg-regalo {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.tag-regalo {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-regalo {
    background-color: #5b21b6;
    color: #ffffff;
}

.btn-regalo:hover {
    background-color: #5b21b6;
    color: #ffffff;
}