/* ===================================================
   CLOUD THINGS NET - ESTILOS GLOBALES
   Versión: 2.0
   Fecha: 22 de octubre de 2025
   ================================================== */

/* Variables CSS Modernas */
:root {
    --primary-color: #0a0e27;
    --secondary-color: #1a1d35;
    --accent-color: #2563eb;
    --accent-light: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-color: #fafbfc;
    --background-dark: #0f0f23;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --dark: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
    --border-radius-sm: 0.375rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Base - Fondo Elegante Global */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(8, 15, 26, 0.95) 0%, 
        rgba(12, 20, 35, 0.98) 50%, 
        rgba(15, 23, 42, 0.95) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Efectos de Luz de Fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 214, 160, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Elegante */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(8, 15, 26, 0.85), rgba(12, 20, 35, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Logo Elegante */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) brightness(1.1);
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.4)) brightness(1.2);
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos adicionales para logo como enlace */
a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover h1 {
    background: linear-gradient(135deg, #ffffff 0%, #ddd6fe 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

nav li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

nav li a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

nav li a i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Secciones */
.section {
    padding: 5rem 0;
    position: relative;
}

/* Sección especial que-ofrecemos */
#que-ofrecemos {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0;
    position: relative;
}

#que-ofrecemos .content-box {
    position: relative;
    z-index: 2;
}

#que-ofrecemos h3 {
    font-size: 3rem;
    margin-top: 2rem;
}

/* Títulos de Sección Elegantes */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06d6a0);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Content Box Elegante - Estilo Global */
.content-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 4rem 3rem 3rem 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.85);
    color: #1a202c;
}

.content-box:hover h3 {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tipografía Content Box */
.content-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Tarjetas Elegantes */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

.card:hover h4 {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Iconos de Tarjetas */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.card-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Colores de Iconos */
.card-icon.green { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}
.card-icon.blue { 
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
}
.card-icon.purple { 
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
}
.card-icon.orange { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
}
.card-icon.teal { 
    background: linear-gradient(135deg, #14b8a6 0%, #5eead4 50%, #99f6e4 100%);
}
.card-icon.red { 
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

/* Tipografía de Tarjetas */
.card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card:hover p {
    opacity: 1;
    color: #1a202c;
}

/* Grids Responsivos */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Footer Elegante */
footer {
    background: linear-gradient(135deg, 
        rgba(4, 8, 18, 0.98) 0%, 
        rgba(8, 12, 25, 0.95) 20%,
        rgba(12, 18, 32, 0.92) 40%,
        rgba(16, 24, 40, 0.88) 60%,
        rgba(20, 30, 48, 0.85) 80%,
        rgba(24, 36, 56, 0.82) 100%);
    backdrop-filter: blur(45px) saturate(110%) brightness(0.3);
    -webkit-backdrop-filter: blur(45px) saturate(110%) brightness(0.3);
    border-top: 1px solid rgba(55, 65, 81, 0.4);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
}

/* ===========================
   RESPONSIVE DESIGN
   ========================== */

@media (max-width: 1200px) {
    .grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 0.95rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-logo img {
        height: 120px;
    }

    nav ul {
        display: none;
    }

    /* Grids responsive */
    .grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 100%;
    }

    .grid-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Content responsive */
    .content-box {
        padding: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Responsive para que-ofrecemos */
    #que-ofrecemos {
        min-height: 90vh;
        padding: 4rem 0;
    }

    #que-ofrecemos .content-box {
        padding: 3rem 2rem 2rem 2rem;
    }

    #que-ofrecemos h3 {
        font-size: 2.2rem;
        margin-top: 1.5rem;
    }

    #que-ofrecemos p {
        font-size: 1.1rem;
        text-align: left;
    }
}

/* ===========================
   UTILIDADES GLOBALES
   ========================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }

.cursor-pointer { cursor: pointer; }
.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }