/* ================================
   THINKIA PAGES BASE CSS
   Sistema de diseño extraído de WordPress/Elementor
   Para usar en landing pages y case studies nuevos
   Author: Thinkia Team
   Last Updated: 2025
   ================================ */

/* ================================
   VARIABLES CSS GLOBALES
   Usando los nombres EXACTOS de Elementor
   ================================ */

/* ================================
   VARIABLES CSS GLOBALES
   NOTA: Las variables están ahora definidas en assets/css/_variables.scss
   Este archivo mantiene compatibilidad con Elementor usando aliases
   ================================ */

/* Las variables están definidas en _variables.scss y compiladas en main.css
   Este archivo solo necesita mantener compatibilidad con código existente que usa --e-global-* */

/* ================================
   RESET Y ESTILOS BASE
   ================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-inverse);
    background-color: var(--color-secondary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ================================
   TIPOGRAFÍA - ENCABEZADOS
   Valores EXACTOS de about-us
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--e-global-color-text);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 7vw + 1rem, 7.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 6vw + 0.5rem, 6rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    font-size: clamp(1.75rem, 4.5vw + 0.25rem, 4rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0;
}

h4 {
    font-size: clamp(1.5rem, 4vw + 0.2rem, 3rem);
    line-height: 1.4;
    font-weight: 600;
}

h5 {
    font-size: clamp(1.25rem, 3vw + 0.1rem, 2.5rem);
    line-height: 1.25;
    font-weight: 600;
}

h6 {
    font-size: clamp(1rem, 2.5vw + 0.1rem, 1.5rem);
    line-height: 1.5;
    font-weight: 600;
}

/* ================================
   TIPOGRAFÍA - TEXTO
   ================================ */

p {
    font-size: clamp(0.95rem, 0.8vw + 0.2rem, 1.125rem);
    line-height: 1.6;
    max-width: 65ch;
    margin-top: 1.5rem;
    margin-bottom: 0;
    color: var(--e-global-color-text);
}

/* Media query para pantallas grandes - mismo que about-us */
@media (max-width: 1892px) {
    p {
        font-size: clamp(0.95rem, 0.7vw + 0.2rem, 1.05rem);
    }
}

p:first-child {
    margin-top: 0;
}

strong, b {
    font-weight: 700;
    color: var(--e-global-color-text);
}

em, i {
    font-style: italic;
}

small {
    font-size: 14px;
}

/* ================================
   ENLACES
   ================================ */

a {
    color: var(--e-global-color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #00AFFF;
    text-decoration: none;
}

/* ================================
   LISTAS
   ================================ */

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

ul {
    list-style: none;
}

li {
    margin-bottom: var(--space-sm);
    color: var(--e-global-color-text);
}

/* ================================
   LAYOUT - CONTENEDORES
   ================================ */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container-narrow {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Eliminar padding-top de la primera sección */
section:first-of-type {
    padding-top: 0;
}

/* ================================
   GRIDS
   ================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* ================================
   CARDS
   ================================ */

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--e-global-color-accent);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    margin-bottom: var(--space-lg);
}

.card p {
    color: var(--e-global-color-text);
}

/* Card con header degradado */
.card-gradient {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-gradient-header {
    background: var(--gradient-primary);
    padding: var(--space-xl);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-gradient-body {
    padding: var(--space-xl);
}

.card-gradient:hover {
    transform: translateY(-8px);
    border-color: var(--e-global-color-accent);
    box-shadow: var(--shadow-xl);
}

/* ================================
   BOTONES
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-2xl);
    font-family: var(--e-global-typography-text-font-family);
    font-size: clamp(0.95rem, 0.8vw + 0.2rem, 1.125rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--e-global-color-text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 64, 255, 0.4);
    text-decoration: none;
    color: var(--e-global-color-text);
}

.btn-outline {
    background: transparent;
    color: var(--e-global-color-text);
    border: 2px solid var(--e-global-color-accent);
}

.btn-outline:hover {
    border-color: #00AFFF;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--e-global-color-text);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: var(--gradient-bg);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--space-xl);
}

.hero p {
    font-size: clamp(0.95rem, 0.8vw + 0.2rem, 1.125rem);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

/* ================================
   SECTION TITLES
   ================================ */

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    margin-bottom: var(--space-lg);
}

.section-title p {
    font-size: clamp(0.95rem, 0.8vw + 0.2rem, 1.125rem);
    color: var(--e-global-color-26fc5b0);
}

/* Accent wrapper */
.accent {
    color: var(--e-global-color-accent);
}

/* ================================
   IMÁGENES
   ================================ */

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

.image-container {
    margin: var(--space-3xl) 0;
    text-align: center;
}

.image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(0, 64, 255, 0.2);
    transition: all var(--transition-base);
    margin: 0 auto;
}

.image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-hover);
}

.image-caption {
    margin-top: var(--space-lg);
    font-size: 14px;
    color: var(--e-global-color-26fc5b0);
    font-style: italic;
}

/* ================================
   LISTAS CON BULLETS PERSONALIZADOS
   ================================ */

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-md);
}

.custom-list li::before {
    content: '_';
    position: absolute;
    left: 0;
    color: var(--e-global-color-accent);
    font-weight: 700;
}

/* ================================
   SECCIONES CON FONDO
   ================================ */

.section-dark {
    background: var(--e-global-color-primary);
}

.section-darker {
    background: var(--e-global-color-secondary);
}

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

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

.text-muted {
    color: var(--e-global-color-26fc5b0);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

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

@media (max-width: 992px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .hero {
        padding: var(--space-2xl) var(--space-md);
    }
}
