* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    padding-bottom: 40px;
}

/* ==========================================
   BOTÓN / BARRA FLOTANTE INTERACTIVA
   ========================================== */
.floating-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    display: flex;
    gap: 12px;
    z-index: 1000;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-nav:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
    box-shadow: 0 16px 35px -5px rgba(2, 132, 199, 0.25);
}

.nav-float-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    background: transparent;
}

/* Efecto hover interactivo en los íconos */
.nav-float-btn:hover,
.nav-float-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

/* Tooltip al hacer Hover */
.nav-float-btn .tooltip {
    position: absolute;
    top: -38px;
    background-color: var(--text-title);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-float-btn:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SECCIONES Y CONTENEDORES
   ========================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f0f7ff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-title);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: 120px 20px 80px 20px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, var(--primary-light) 0%, var(--bg-page) 70%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--card-hover-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
    box-shadow: var(--shadow-subtle);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 32px;
}

/* ==========================================
   BOTONES
   ========================================== */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid var(--card-hover-border);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-blue);
}

/* ==========================================
   TARJETAS Y GRID
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card, .project-card {
    background: var(--card-bg);
    border: 1px solid rgba(2, 132, 199, 0.1);
    border-radius: var(--radius-box);
    padding: 30px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.card:hover, .project-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card h3, .project-content h3 {
    color: var(--text-title);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Tarjeta de Proyecto */
.project-card {
    padding: 0;
    overflow: hidden;
}

.project-preview {
    height: 160px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
}

.project-content {
    padding: 24px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.link-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================
   CAJA DE CONTACTO Y FOOTER
   ========================================== */
.contact-box {
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    border: 1px solid var(--card-hover-border);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: var(--shadow-subtle);
}

.contact-box h2 {
    color: var(--text-title);
    margin-bottom: 10px;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}