/* --- CONFIGURACIÓN GLOBAL --- */
:root {
    /* PALETA DE COLORES */
    --bg-main: #0b0d17;       /* Fondo Oscuro Principal */
    --bg-secondary: #111420;  /* Fondo Secundario */
    --bg-card: #1a1e2e;       /* Fondo de Tarjetas */
    --accent: #00f0ff;        /* Tu color Cian */
    --text-main: #ffffff;     /* Color de texto principal */
    
    /* CORRECCIÓN DE TEXTO: Gris más claro para que se lea bien */
    --text-muted: #cbd5e1;    
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* --- UTILIDADES DE TEXTO --- */
.text-accent { color: var(--accent) !important; }
.text-secondary, .text-muted { color: var(--text-muted) !important; }
.bg-darker { background-color: var(--bg-secondary); }
.bg-accent { background-color: var(--accent); }
.ls-2 { letter-spacing: 2px; }

/* --- NAVBAR --- */
.custom-nav {
    background-color: rgba(11, 13, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler { border-color: rgba(255,255,255,0.1); }
.navbar-toggler-icon { filter: invert(1); }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    display: flex;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
    display: inline-block;
}

.main-logo {
    max-width: 320px;
    width: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

/* --- BOTONES --- */
.btn-accent {
    background-color: var(--accent);
    color: #000000;
    font-weight: 700;
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* --- SKILLS BADGES --- */
.skill-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
}

/* --- TARJETAS --- */
.service-card, .project-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .icon-box {
    background-color: rgba(0, 240, 255, 0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* --- FORMULARIO --- */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 12px;
}

textarea.form-control { resize: none; }

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: none;
}

::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

/* --- WIDGET WHATSAPP INTELIGENTE --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-button {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    line-height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.wa-button:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

.wa-message {
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px 10px 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
}

.wa-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    border: 2px solid #0b0d17;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-badge.show {
    opacity: 1;
    transform: scale(1);
}

/* --- ANIMACIONES SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-section { text-align: center; }
    .hero-image-wrapper { margin-bottom: 40px; }
    .d-grid { justify-content: center !important; }
}

@media (max-width: 480px) {
    .whatsapp-widget { bottom: 20px; right: 20px; }
    .wa-button { width: 50px; height: 50px; line-height: 50px; font-size: 28px; }
    .wa-message { font-size: 0.8rem; }
}