/* ============================================
   GRID INTELLIGENCE MAPS - ALVRISOLUTIONS
   Página de introducción a los mapas
   Colores de marca: #227c7c #d9f2e6 #2b3c56 #469595
   ============================================ */

/* Variables (heredadas del tema) */
:root {
    --gm-primary: #2b3c56;
    --gm-primary-light: #3d5270;
    --gm-accent: #227c7c;
    --gm-accent-light: #469595;
    --gm-accent-soft: #d9f2e6;
    --gm-blue: #3b82f6;
    --gm-orange: #f59e0b;
    --gm-text: #1f2937;
    --gm-text-secondary: #6b7280;
    --gm-bg: #ffffff;
    --gm-bg-alt: #f9fafb;
    --gm-border: #e5e7eb;
    --gm-radius: 12px;
    --gm-radius-lg: 20px;
    --gm-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --gm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --gm-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --gm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.gm-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, var(--gm-accent-soft) 0%, #f8fafc 50%, #ffffff 100%);
    overflow: hidden;
}

.gm-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Visual / Imagen */
.gm-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gm-hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Contenido */
.gm-hero-content {
    max-width: 650px;
}

.gm-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--gm-text);
    margin: 0 0 28px 0;
}

.gm-gradient-text {
    background: linear-gradient(135deg, var(--gm-accent) 0%, var(--gm-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gm-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gm-text-secondary);
    margin: 0 0 20px 0;
}

.gm-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.gm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--gm-primary);
    color: white;
    border-radius: var(--gm-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--gm-transition);
    box-shadow: var(--gm-shadow);
}

.gm-btn-primary:hover {
    background: var(--gm-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--gm-shadow-lg);
}

.gm-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background: transparent;
    color: var(--gm-primary);
    border: 2px solid var(--gm-border);
    border-radius: var(--gm-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--gm-transition);
}

.gm-btn-secondary:hover {
    border-color: var(--gm-accent);
    color: var(--gm-accent);
    background: rgba(34, 124, 124, 0.05);
}

/* ========================================
   CARDS SECTION
   ======================================== */
.gm-cards-section {
    padding: 100px 5%;
    background: var(--gm-bg);
}

.gm-cards-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gm-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.gm-section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--gm-text);
    margin: 0 0 16px 0;
}

.gm-section-header p {
    font-size: 1.125rem;
    color: var(--gm-text-secondary);
    margin: 0;
}

.gm-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card Individual */
.gm-card {
    position: relative;
    background: white;
    border-radius: var(--gm-radius-lg);
    padding: 36px 32px;
    text-decoration: none;
    border: 1px solid var(--gm-border);
    transition: var(--gm-transition);
    display: flex;
    flex-direction: column;
}

.gm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--gm-shadow-xl);
    border-color: transparent;
}

.gm-card.featured {
    border: 2px solid var(--gm-orange);
    background: linear-gradient(180deg, #fffbeb 0%, white 30%);
}

.gm-card.featured:hover {
    border-color: var(--gm-orange);
}

.gm-card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--gm-orange) 0%, #fbbf24 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.gm-card-icon.green {
    background: rgba(34, 124, 124, 0.1);
    color: var(--gm-accent);
}

.gm-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--gm-blue);
}

.gm-card-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gm-orange);
}

.gm-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gm-text);
    margin: 0 0 14px 0;
}

.gm-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--gm-text-secondary);
    margin: 0 0 20px 0;
    flex: 1;
}

.gm-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.gm-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gm-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--gm-bg-alt);
}

.gm-card-features li:last-child {
    border-bottom: none;
}

.gm-card-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: rgba(34, 124, 124, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23227c7c' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.gm-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gm-primary);
    margin-top: auto;
    padding-top: 16px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.gm-card:hover .gm-card-cta {
    gap: 12px;
    color: var(--gm-accent);
}

/* ========================================
   CTA SECTION
   ======================================== */
.gm-cta-section {
    position: relative;
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--gm-accent-light) 0%, var(--gm-accent) 100%);
    text-align: center;
    overflow: hidden;
}

.gm-cta-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.gm-cta-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.gm-cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 36px 0;
    line-height: 1.7;
}

.gm-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.gm-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: white;
    color: var(--gm-accent);
    border-radius: var(--gm-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--gm-transition);
}

.gm-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gm-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 32px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--gm-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--gm-transition);
}

.gm-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.gm-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .gm-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .gm-hero-visual {
        order: -1;
    }
    
    .gm-hero-image {
        max-width: 450px;
    }
    
    .gm-hero-content {
        max-width: 100%;
    }
    
    .gm-hero-cta {
        justify-content: center;
    }
    
    .gm-cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gm-hero {
        min-height: auto;
        padding: 100px 5% 60px;
    }
    
    .gm-hero-image {
        max-width: 350px;
    }
    
    .gm-hero-description {
        font-size: 1rem;
    }
    
    .gm-cards-section {
        padding: 60px 5%;
    }
    
    .gm-card {
        padding: 28px 24px;
    }
    
    .gm-cta-section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .gm-hero-title {
        font-size: 1.75rem;
    }
    
    .gm-btn-primary,
    .gm-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .gm-cta-primary,
    .gm-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
