/* ============================================
   CSS VARIABLES — IQKlient Brand
   ============================================ */
:root {
    --iq-green: #25D366;
    --iq-teal: #128C7E;
    --iq-cyan: #34B7F1;
    --iq-dark: #1b517b;
    --iq-dark-blue: #1b517b;
    --iq-darker: #0f172a;
    --iq-footer-bg: #020617;
    --iq-card-bg: #12131e;
    --iq-card-hover: #1a1c2d;
    --iq-border: rgba(255,255,255,0.06);
    --iq-text-muted: #8a8aa3;
    --iq-gradient: linear-gradient(135deg, #25D366, #128C7E);
}

/* ============================================
   GLOBAL
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--iq-dark);
    color: #f0f0f5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--iq-green);
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   SECTION ALTERNATION
   ============================================ */
.bg-dark-section { background: var(--iq-dark); padding: 5rem 0; }
.bg-white-section { background: #f8f9fa; padding: 5rem 0; color: #1a1a2e; }
.bg-white-section .section-title { color: #1a1a2e; }
.bg-alt-section { background: #ffffff; padding: 5rem 0; color: #1a1a2e; }
.bg-alt-section .section-title { color: #1a1a2e; }

/* ============================================
    NAVBAR
============================================ */
.navbar-iq {
    background-color: rgba(27, 81, 123, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 8px 0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar-iq .navbar-brand img {
    height: 80px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.navbar-iq .navbar-brand:hover img { transform: scale(1.05); }

.navbar-iq .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar-iq .nav-link:hover { color: var(--iq-green) !important; }

.btn-iq {
    background: var(--iq-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-iq:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-iq-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s;
}

.btn-iq-outline:hover {
    color: var(--iq-green);
    border-color: var(--iq-green);
    background: rgba(37, 211, 102, 0.05);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background { position: absolute; inset: 0; z-index: 0; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(27, 81, 123, 0.8) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 5rem; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    color: var(--iq-green);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--iq-green);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-trust {
    display: flex;
    flex-direction: row !important; /* Fuerza a que sea una fila horizontal */
    align-items: center; 
    justify-content: center;
    gap: 2rem; 
    margin-top: 2.5rem; 
    flex-wrap: nowrap; /* Evita que los elementos salten a la siguiente línea en escritorio */
    width: 100%;
}

.hero-trust-item {
    display: flex; 
    align-items: center; 
    gap: 0.4rem;
    font-size: 0.85rem; /* Un poco más grande para mejor lectura en escritorio */
    color: rgba(255,255,255,0.6);
    white-space: nowrap; /* Evita que el texto de cada ítem se parta a la mitad */
}

.hero-trust-item i { 
    color: var(--iq-green); /* Cambiamos a verde para resaltar un poco más */
}
/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: #fff; border-radius: 16px; padding: 2rem 1.5rem;
    border: 1px solid #eee; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feature-card .icon-box {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 1.2rem;
}
.feature-card.theme-green .icon-box { background: rgba(37, 211, 102, 0.1); color: var(--iq-green); }
.feature-card.theme-teal .icon-box { background: rgba(18, 140, 126, 0.1); color: var(--iq-teal); }
.feature-card.theme-cyan .icon-box { background: rgba(52, 183, 241, 0.1); color: var(--iq-cyan); }
.feature-card.theme-blue .icon-box { background: rgba(99, 102, 241, 0.1); color: #6366f1; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-card { transition: transform 0.4s; }
.gallery-card:hover { transform: translateY(-6px); }
.gallery-img {
    border-radius: 12px; transition: transform 0.5s;
    aspect-ratio: 16/10; object-fit: cover; background: var(--iq-card-bg);
}
.gallery-img-portrait {
    border-radius: 12px; transition: transform 0.5s;
    max-height: 420px; object-fit: contain;
}
.gallery-card:hover .gallery-img,
.gallery-card:hover .gallery-img-portrait { transform: scale(1.03); }
.gallery-placeholder {
    border-radius: 12px; aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border: 1px dashed rgba(37, 211, 102, 0.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; color: rgba(255,255,255,0.5);
}
.gallery-placeholder i { font-size: 2rem; color: var(--iq-green); opacity: 0.5; }
.gallery-placeholder span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(37, 211, 102, 0.1); border: 2px solid var(--iq-green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; font-size: 1.2rem; font-weight: 700; color: var(--iq-green);
}
.step-connector { position: relative; }
.step-connector::after {
    content: ''; position: absolute; top: 28px; left: calc(50% + 40px);
    width: calc(100% - 80px); height: 2px;
    background: linear-gradient(90deg, var(--iq-green), var(--iq-teal)); opacity: 0.25;
}
.step-connector:last-child::after { display: none; }

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
    background: #fff; border-radius: 16px; padding: 2.5rem 2rem;
    border: 1px solid #eee; transition: all 0.4s; height: 100%;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.pricing-card.popular {
    border: 2px solid var(--iq-green);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.1); transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.badge-popular {
    background: var(--iq-gradient); color: #fff; padding: 0.3rem 1rem;
    border-radius: 50px; font-size: 0.7rem; font-weight: 600; display: inline-block; margin-bottom: 1rem;
}
.pricing-card .price { font-size: 1.8rem; font-weight: 800; color: var(--iq-green); }
.pricing-card .bi-check2 { color: var(--iq-green); }

/* ============================================
   CAPABILITIES SECTION
   ============================================ */
.capability-row { display: flex; align-items: center; gap: 3rem; margin-bottom: 4rem; }
.capability-row.reverse { flex-direction: row-reverse; }
.capability-visual, .capability-text { flex: 1; }
.capability-tag {
    display: inline-block; background: rgba(37, 211, 102, 0.1); color: var(--iq-green);
    padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.72rem; font-weight: 500;
    margin-right: 0.4rem; margin-bottom: 0.4rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form .form-control, .contact-form .form-select {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; color: #fff; padding: 0.75rem 1rem;
    font-family: 'Outfit', sans-serif; transition: border-color 0.3s;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
    background-color: rgba(255,255,255,0.2); border-color: var(--iq-green);
    box-shadow: none; color: #fff;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,0.6); }
.contact-form .form-select option { background: var(--iq-dark); color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.footer-iq {
    background-color: #020617; border-top: 1px solid #1e293b;
    padding: 60px 0 20px; color: #cbd5e1;
}
.footer-iq h5 { color: #ffffff; font-weight: bold; margin-bottom: 20px; font-size: 0.9rem; }
.footer-iq ul { list-style: none; padding: 0; }
.footer-iq ul li { margin-bottom: 0.5rem; }
.footer-iq ul li a { font-size: 0.88rem; color: #cbd5e1; transition: all 0.3s ease; }
.footer-iq ul li a:hover { color: var(--iq-green); padding-left: 5px; }
.footer-iq .social-icons a { color: #cbd5e1; transition: all 0.3s ease; }
.footer-iq .social-icons a:hover { color: var(--iq-green); transform: translateY(-3px); padding-left: 0; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; margin-top: 2.5rem; }
.footer-powered img { max-width: 140px; height: auto; opacity: 0.9; transition: opacity 0.3s; }
.footer-powered:hover img { opacity: 1; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   OPTIMIZACIÓN RESPONSIVA
   ============================================ */
@media (max-width: 1200px) {
    .navbar-iq .navbar-brand img { height: 60px; }
    .hero-section h1 { font-size: 2.5rem !important; }
    .pricing-card.popular { transform: none !important; margin: 1rem 0; }
}

@media (max-width: 991px) {
    .capability-row, .capability-row.reverse { flex-direction: column; gap: 2rem; }
    .step-connector::after { display: none; }
}

@media (max-width: 768px) {
    .hero-trust { flex-direction: column; gap: 0.6rem; }
    .bg-dark-section, .bg-white-section, .bg-alt-section { padding: 3.5rem 0; }
}

@media (max-width: 576px) {
    .hero-section { padding-top: 2rem; }
    .hero-section h1 { font-size: 2.1rem !important; }
    .hero-content { padding-left: 15px; padding-right: 15px; }
    .section-title { font-size: 1.75rem; }
    .gallery-img-portrait { max-height: 350px; }
    .hero-content .d-flex { gap: 1rem !important; }
}