/**
 * PH360 Landing - Estilos compartidos (navbar, footer, secciones)
 * Igual que index.php para todas las páginas públicas
 */
:root {
    --primary-color: #6f42c1;
    --primary-dark: #5a32a3;
    --secondary-color: #00c9a7;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #00c9a7 0%, #2ed9a4 100%);
    --button-highlight: #ff9800;
    --button-secondary: #4CAF50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
}

/* Navbar - igual que index.php */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(111, 66, 193, 0.1);
    z-index: 1000;
    padding: 6px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 12px;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(111, 66, 193, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-container:hover .logo-icon { transform: scale(1.05); }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.logo-subtext {
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
    min-width: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-menu a:hover { color: var(--primary-color); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-menu a:hover::after { width: 100%; }

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after { width: 100%; }

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-nav {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
}

.btn-nav-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-nav-secondary {
    background: #e9f7ef;
    color: var(--button-secondary);
}

.btn-nav-secondary:hover {
    background: var(--button-secondary);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 992px) {
    body { padding-top: 70px; }
    .navbar-container {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 15px;
        padding: 10px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 20px 20px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.1);
        border-radius: 0 0 16px 16px;
        z-index: 1000;
        gap: 4px;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a {
        padding: 10px 12px;
        border-radius: 8px;
    }
    .nav-menu a:hover {
        background: rgba(111, 66, 193, 0.08);
    }
    .menu-toggle { display: block; }
    .nav-buttons .btn-nav-text { display: none; }
    .nav-buttons .btn-nav {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .navbar-container { padding: 0 12px; }
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .logo-text { font-size: 18px; }
    .logo-subtext { font-size: 9px; }
}

/* Secciones de contenido */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Botones */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(111, 66, 193, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.3);
    color: white;
}

.btn-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cta:hover {
    color: white;
    opacity: 0.95;
    transform: translateY(-2px);
}

/* Footer principal */
.main-footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 0;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h5,
.main-footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

html { scroll-behavior: smooth; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }
.mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Bloques de contenido (funcionalidades, etc.) */
.func-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.func-block:last-of-type { border-bottom: none; }
