/* Configuración Global */
:root {
    --bg-dark: #121212;
    --bg-darker: #0c0c0c;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;
}

/* Estilos Base */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    background-color: rgba(0,0,0,0.9) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img.logo {
    border: 2px solid var(--primary-color);
}

/* Menú móvil */
.navbar-collapse {
    background-color: rgba(0,0,0,0.95);
    padding: 1rem;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }
    .navbar-nav {
        text-align: center;
    }
    .nav-item {
        padding: 0.5rem 0;
    }
}

/* Sección Hero ajustada */
#inicio {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    position: relative;
    min-height: 100vh;
    padding-top: 100px; /* Espacio para el navbar */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Reducir opacidad */
    z-index: 1;
}

/* Estilo de Foto de Perfil */
.profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}

.profile-image {
    position: relative;
    max-width: 350px;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

/* Secciones */
.bg-darker {
    background-color: var(--bg-darker) !important;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Tarjetas de Tecnología */
.tech-card {
    background-color: var(--bg-dark);
    border: 1px solid #222;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Proyectos */
.project-card {
    background-color: var(--bg-dark) !important;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Formulario de Contacto */
#contact-form input, 
#contact-form textarea {
    background-color: var(--bg-dark) !important;
    border-color: #333;
    color: #ffffff !important; /* Hacer el texto más visible */
}

#contact-form input::placeholder, 
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

#contact-form input:focus, 
#contact-form textarea:focus {
    background-color: #1e1e1e !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    color: #ffffff !important;
}

.form-control:focus {
    color: #ffffff !important;
    background-color: #1e1e1e !important;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Progreso de Habilidades */
.progress {
    background-color: #222;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-image {
        max-width: 250px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        padding-top: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem !important;
    }
    
    /* Ajuste WhatsApp flotante en móvil */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
        z-index: 1000;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 3rem;
    }
}

/* Agregar al final del archivo */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px);
    box-shadow: 2px 7px 15px rgba(0,0,0,0.3);
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 320px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}
