/* ==================== W24H - MAIN CSS COMPLETO ==================== */
/* Versión 1.0 - Todos los estilos incluidos */

/* ==================== VARIABLES ==================== */
:root {
    --color-primary: #10b981;
    --color-primary-light: #34d399;
    --color-primary-dark: #059669;
    --color-secondary: #06b6d4;
    --color-secondary-light: #22d3ee;
    --color-secondary-dark: #0891b2;
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #f9fafb;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 0.8125rem;
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info a {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.9;
}

.domain-badge span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.08);
}

.nav-link i {
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn i {
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-w24h {
    color: var(--color-white);
}

.hero-divider {
    margin: 0 8px;
    opacity: 0.8;
    font-weight: 400;
}

.hero-subtitle {
    color: var(--color-white);
}

.hero__slogan {
    font-size: 1.5rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero__trust {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__trust i {
    margin-right: 6px;
}

/* ==================== SECCIONES ==================== */
.section {
    padding: 80px 0;
}

.section-bg {
    background: var(--color-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== SECTOR SELECTOR ==================== */
.sector-selector {
    background: var(--color-bg);
    padding: 60px 0;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.sector-card {
    background: var(--color-white);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
}

.sector-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.sector-card i {
    font-size: 2.25rem;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.sector-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* ==================== DUAL CTA ==================== */
.dual-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.cta-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.cta-card.software {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.cta-card.software i {
    color: var(--color-white);
}

.cta-card.servicios {
    background: var(--color-white);
    border: 2px solid var(--color-border);
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.cta-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.cta-card p {
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.feature-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
}

.feature-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    margin-top: 80px;
}

.footer-cta {
    background: var(--gradient-primary);
    padding: 50px 0;
    text-align: center;
}

.footer-cta h3 {
    color: var(--color-white);
    font-size: 1.625rem;
    margin-bottom: 12px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-contact {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.contact-item i {
    color: var(--color-primary-light);
    width: 20px;
    margin-top: 2px;
}

.contact-item a {
    color: #cbd5e1;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--color-primary-light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
}

.footer-title {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title i {
    color: var(--color-primary-light);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 6px;
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-text p {
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-note {
    font-size: 0.8125rem !important;
}

.footer-note i {
    margin-right: 6px;
    color: var(--color-primary);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.badge-rgpd,
.badge-ssl {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ssl {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-accent-light);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__slogan {
        font-size: 1.25rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-bar__content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info a {
        margin: 0;
    }
    
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__slogan {
        font-size: 1.125rem;
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dual-cta {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .sector-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact {
        display: inline-block;
        text-align: left;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

/* ==================== UTILIDADES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }