/* ====================================================
   VARIABLES CSS
   ==================================================== */
:root {
    /* Colores principales */
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #E74C3C;
    --light: #ECF0F1;
    --dark: #2C3E50;
    
    /* Colores adicionales */
    --text-color: #333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    
    /* Tipografía */
    --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Espaciados */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Bordes y sombras */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 5px 20px var(--shadow-color);
    --box-shadow-hover: 0 10px 40px var(--shadow-hover);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.85) 100%);
    --gradient-text: linear-gradient(135deg, var(--secondary) 0%, #6DD5FA 100%);
}

/* ====================================================
   RESET Y ESTILOS GENERALES
   ==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Para compensar el navbar fijo */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enlaces */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selección de texto */
::selection {
    background: var(--secondary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--secondary);
    color: #ffffff;
}

/* ====================================================
   SCROLLBAR PERSONALIZADA
   ==================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ====================================================
   UTILIDADES PROPIAS
   ==================================================== */

/* Espaciado de secciones */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-padding-top {
    padding-top: var(--spacing-xl);
}

.section-padding-bottom {
    padding-bottom: var(--spacing-xl);
}

/* Texto con gradiente */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Botón personalizado */
.btn-primary-custom {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
    color: #ffffff;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-custom:active::after {
    width: 300px;
    height: 300px;
}

.btn-outline-custom {
    display: inline-block;
    padding: 12px 32px;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-up animation */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   NAVBAR ESTILOS
   ==================================================== */

.navbar {
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1050;
}

/* Navbar transparente (para hero) */
.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
}

.navbar-transparent .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.navbar-transparent .nav-link::after {
    background: #ffffff !important;
}

/* Navbar con scroll */
.navbar-scrolled {
    background-color: var(--bg-dark) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
    padding: 10px 0;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Navbar oscuro por defecto */
.navbar-dark-custom {
    background-color: var(--bg-dark) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-dark-custom .navbar-brand,
.navbar-dark-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark-custom .nav-link:hover {
    color: var(--secondary) !important;
}

/* Logo */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.navbar-brand i {
    color: var(--secondary);
    margin-right: 8px;
}

/* Links del navbar con efecto subrayado */
.nav-link {
    position: relative;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--secondary) !important;
}

.nav-link.active::after {
    width: 80%;
}

/* Dropdown en navbar */
.navbar-dark-custom .dropdown-menu {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 8px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-dark-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 20px;
    transition: var(--transition);
}

.navbar-dark-custom .dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--secondary);
}

.navbar-dark-custom .dropdown-item i {
    width: 20px;
    color: var(--secondary);
}

/* Hamburger menu */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* ====================================================
   HERO SECCIÓN
   ==================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    padding: 100px 0;
    overflow: hidden;
}

/* Imagen de fondo con overlay 
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.85) 100%),
        url('../img/hero/hero-fondo.png') center/cover no-repeat;
    z-index: 1;
    animation: zoomIn 20s ease-in-out infinite alternate;*/

/* Imagen de fondo con overlay - SOLO OVERLAY */
/* Overlay del Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(83, 56, 165, 0.3);
    z-index: 1;
}

/* Si quieres overlay más oscuro en modo oscuro */
body.dark-mode .hero::before {
    background: rgba(16, 9, 51, 0.5);
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    color: var(--secondary);
    background: linear-gradient(135deg, #6DD5FA 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Hero badges / estadísticas */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats .stat-item {
    text-align: center;
    color: #ffffff;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, #6DD5FA 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animaciones del hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   SECCIÓN DE PROYECTOS
   ==================================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Cards de proyectos */
.project-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.project-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Badges de categoría */
.project-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-badge.design {
    background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
}

.project-badge.mobile {
    background: linear-gradient(135deg, #00B894 0%, #55EFC4 100%);
}

.project-badge.backend {
    background: linear-gradient(135deg, #FDCB6E 0%, #F39C12 100%);
}

.project-badge.ux {
    background: linear-gradient(135deg, #E17055 0%, #D63031 100%);
}

.project-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.project-card .btn-link {
    color: var(--secondary);
    font-weight: 500;
    padding: 0;
    transition: var(--transition);
}

.project-card .btn-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* ====================================================
   SECCIÓN ACERCA DE
   ==================================================== */

/* Foto de perfil circular */
.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary);
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.3);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px rgba(52, 152, 219, 0.4);
}

/* Tarjetas de experiencia y educación */
.experience-card,
.education-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.experience-card:hover,
.education-card:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow-hover);
}

.experience-card .company,
.education-card .institution {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.experience-card .position,
.education-card .degree {
    color: var(--secondary);
    font-weight: 500;
}

.experience-card .date,
.education-card .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Habilidades (tags) */
.skill-tag {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 6px 10px 0;
    background: var(--light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.skill-tag.highlight {
    background: var(--gradient-primary);
    color: #ffffff;
}

/* ====================================================
   SECCIÓN CONTACTO
   ==================================================== */

/* Formulario de contacto */
.contact-form .form-control {
    border-radius: var(--border-radius);
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--primary);
}

/* Información de contacto */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.contact-info-item .content h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-info-item .content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ====================================================
   PÁGINA DE PROYECTO DETALLADO
   ==================================================== */

/* Galería de imágenes */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-hover);
}

/* Metadata del proyecto */
.project-meta {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.project-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-meta .meta-item:last-child {
    border-bottom: none;
}

.project-meta .meta-item i {
    color: var(--secondary);
    width: 20px;
}

/* ====================================================
   FOOTER ESTILOS
   ==================================================== */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--secondary);
}

.footer h3,
.footer h5 {
    color: #ffffff;
}

.footer h3 i {
    color: var(--secondary);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Iconos de redes sociales en footer */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

/* Copyright */
.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer .copyright .heart {
    color: var(--accent);
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* ====================================================
   RESPONSIVE DESIGN
   ==================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    /* Secciones */
    .section-title {
        font-size: 2rem;
    }
    
    /* Perfil */
    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Móvil (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: 90vh;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    /* Secciones */
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Proyectos */
    .project-card .card-img-top {
        height: 200px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Perfil */
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    /* Contacto */
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 8px 0 !important;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Móvil pequeño (max-width: 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-card .card-img-top {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ====================================================
   UTILIDADES PARA PÁGINAS INTERNAS
   ==================================================== */

/* Página Acerca de */
.about-section {
    padding-top: 80px;
}

/* Página Contacto */
.contact-page .contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Página Proyectos */
.projects-page .filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.projects-page .filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.projects-page .filter-btn:hover,
.projects-page .filter-btn.active {
    background: var(--secondary);
    color: #ffffff;
}

/* ====================================================
   CLASES DE AYUDA PARA ADMIN
   ==================================================== */

.admin-badge {
    background: var(--accent);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================================
   ESTILOS PARA EL DASHBOARD DE ADMIN
   ==================================================== */

.dashboard-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.dashboard-card .card-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-card .card-label {
    color: var(--text-light);
    font-size: 0.9rem;
}
/* ============================================
   MODO OSCURO (DARK MODE) - PARA VISITANTES
   ============================================ */

/* Estilos del botón */
.dark-mode-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle:hover {
    color: #00d9ff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00d9ff;
}

body.dark-mode .dark-mode-toggle {
    color: #e8e8e8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .dark-mode-toggle:hover {
    color: #00d9ff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00d9ff;
}

/* ===== MODO OSCURO ACTIVADO ===== */
body.dark-mode {
    background-color: #060620 !important;
    color: #e8e8e8 !important;
}

/* Navbar */
body.dark-mode .navbar-dark-custom {
    background-color: #0b0b29 !important;
}

body.dark-mode .navbar-transparent.scrolled {
    background-color: #0b0b20 !important;
}

body.dark-mode .navbar-dark-custom .nav-link,
body.dark-mode .navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero */
body.dark-mode .hero {
    background-color: #1f1d3b !important;
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle,
body.dark-mode .hero-description {
    color: #ffffff !important;
}

/* Cards y secciones */
body.dark-mode .card {
    background-color: #1a1a2e !important;
    border-color: #2a2a4e !important;
}

body.dark-mode .card-body,
body.dark-mode .card-footer,
body.dark-mode .card-header {
    background-color: #1a1a2e !important;
    color: #e8e8e8 !important;
    border-color: #2a2a4e !important;
}

body.dark-mode .bg-light {
    background-color: #1a1a2e !important;
}

body.dark-mode .bg-white {
    background-color: #1a1a2e !important;
}

body.dark-mode .text-muted {
    color: #a0a0b0 !important;
}

/* Proyectos */
body.dark-mode .project-card {
    background-color: #1a1a2e !important;
    border-color: #2a2a4e !important;
}

body.dark-mode .project-card .card-title {
    color: #e8e8e8 !important;
}

body.dark-mode .project-card .card-text {
    color: #c0c0d0 !important;
}

/* Formularios */
body.dark-mode .form-control {
    background-color: #1a1a2e !important;
    border-color: #2a2a4e !important;
    color: #e8e8e8 !important;
}

body.dark-mode .form-control:focus {
    background-color: #1a1a2e !important;
    border-color: #3498DB !important;
    color: #e8e8e8 !important;
}

body.dark-mode .form-label {
    color: #e8e8e8 !important;
}

body.dark-mode .input-group-text {
    background-color: #1a1a2e !important;
    border-color: #2a2a4e !important;
    color: #e8e8e8 !important;
}

/* Footer */
body.dark-mode .footer {
    background: linear-gradient(135deg, #0a0a15 0%, #0f0f1a 100%) !important;
}

body.dark-mode .footer .text-secondary {
    color: #a0a0b0 !important;
}

body.dark-mode .footer .text-white {
    color: #e8e8e8 !important;
}

/* Alertas */
body.dark-mode .alert-success {
    background-color: #1a3a2e !important;
    color: #8bc8a0 !important;
    border-color: #2a5a3e !important;
}

body.dark-mode .alert-danger {
    background-color: #3a1a1a !important;
    color: #d0a0a0 !important;
    border-color: #5a2a2a !important;
}

body.dark-mode .alert-warning {
    background-color: #3a3a1a !important;
    color: #d0d0a0 !important;
    border-color: #5a5a2a !important;
}

body.dark-mode .alert-info {
    background-color: #1a2a3a !important;
    color: #8cb8d0 !important;
    border-color: #2a4a5a !important;
}

/* Badges */
body.dark-mode .badge.bg-secondary {
    background-color: #3a3a5e !important;
}

body.dark-mode .badge.bg-light {
    background-color: #2a2a4e !important;
    color: #e8e8e8 !important;
}

/* Contacto */
body.dark-mode .contact-item {
    border-color: #2a2a4e !important;
}

body.dark-mode .contact-form-wrapper {
    background-color: #1a1a2e !important;
}

body.dark-mode .contact-icon {
    background: linear-gradient(135deg, #2a2a4e 0%, #3a3a5e 100%) !important;
}

body.dark-mode .social-link {
    background-color: #2a2a4e !important;
    color: #e8e8e8 !important;
}

body.dark-mode .social-link:hover {
    background: #3498DB !important;
    color: #ffffff !important;
}
body.dark-mode .contact-text {
    color: #e8e8e8 !important;
}

/* Filtros en proyectos */
body.dark-mode .filter-btn {
    border-color: #3a3a5e !important;
    color: #b0b0c0 !important;
}

body.dark-mode .filter-btn.active {
    background: #3498DB !important;
    color: #ffffff !important;
    border-color: #3498DB !important;
}

body.dark-mode .filter-btn:hover {
    background: #3498DB !important;
    color: #ffffff !important;
}

/* Paginación */
body.dark-mode .page-link {
    background-color: #1a1a2e !important;
    border-color: #2a2a4e !important;
    color: #e8e8e8 !important;
}

body.dark-mode .page-link:hover {
    background-color: #1f5374 !important;
    color: #ffffff !important;
}

body.dark-mode .page-item.active .page-link {
    background-color: #3498DB !important;
    border-color: #3498DB !important;
    color: #ffffff !important;
}

body.dark-mode .page-item.disabled .page-link {
    background-color: #1a1a2e !important;
    color: #6c757d !important;
}

/* Transición suave para todo */
body,
body * {
    transition: background-color 0.4s ease, 
                color 0.4s ease, 
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}