/* --- Variables y Configuración General --- */
:root {
    --primary-color: #0d1b2a;
    --brand-color: #3b82f6; 
    --accent-color: #000000;
    --text-muted: #64748b;
    --bg-color: #f1f3f5; /* Tono gris claro exacto del fondo de la ventana */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --card-bg: #ffffff;
    --border-radius-global: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    padding: 0 6%;
    overflow-x: hidden;
}

/* --- Header / Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #1a365d;
}

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

.btn-btn-started {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-btn-started:hover {
    background-color: #222222;
    transform: translateY(-2px);
}

.login-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Hero Section --- */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: calc(100vh - 110px);
    gap: 50px;
    padding-bottom: 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--accent-color);
}

.brand-highlight {
    color: #1d3557; 
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
}

.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    width: fit-content;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-buy-now:hover {
    background-color: #222222;
    transform: translateY(-3px);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 6s ease-in-out infinite; /* Toque profesional de movimiento fluido */
}

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

.hero-image {
    max-width: 115%; 
    height: auto;
    object-fit: contain;
}

/* =========================================
   --- TARJETA HORIZONTAL (DISEÑO CROQUIS) -
   ========================================= */

.horizontal-service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-global);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    min-height: 260px; /* Asegura una proporción idéntica al croquis */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%; /* Ocupa el espacio disponible del contenedor grid/flex */
}

.horizontal-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

/* --- Distribución de la Columna Izquierda --- */
.card-left-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el precio al fondo de la izquierda */
    flex: 1.2;
}

.card-text-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.3;
}

.service-subtitle {
    font-size: 14px;
    color: #3b82f6; /* Azul corporativo para la tecnología (Power BI) */
    font-weight: 600;
}

/* Píldora de precio en la esquina inferior izquierda */
.price-badge {
    display: inline-block;
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 10px;
}


/* --- Distribución de la Columna Derecha --- */
.card-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between; /* Empuja el botón al fondo de la derecha */
    flex: 1;
}

/* Caja contenedora para las gráficas / ilustraciones */
.graphic-box-wrapper {
    width: 60%;
    height: 150px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Botón de acción en la esquina inferior derecha */
.btn-cotizar-submit {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Efecto hover interactivo estilo píldora de la UI de componentes */
.btn-cotizar-submit:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}


/* --- Ajuste de Adaptabilidad Responsiva --- */
@media (max-width: 640px) {
    .horizontal-service-card {
        flex-direction: column; /* Se vuelve vertical fluidamente en pantallas pequeñas */
        gap: 20px;
    }
    
    .card-right-column {
        align-items: stretch;
    }
    
    .btn-cotizar-submit {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}


/* =========================================
   --- SECCIÓN: FEATURES (REDISEÑO FIEL) ---
   ========================================= */

.features-container {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Clase para ocultar elementos */
.oculto {
    display: none;
}

/* Pestañas de Filtrado Superiores */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.tab-btn {
    background-color: #e2e8f0;
    color: #475569;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


.tab-btn:hover {
    transform: translateY(-3px);
}

.tab-btn.active, .tab-btn:hover {
    background-color: #cbd5e1;
    color: var(--accent-color);
}

/* Grid de Rejilla */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.features-grid-detail {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    width: 100%;
}


/* Tarjeta contenedora blanca */
.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-global);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.01);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.card-image-wrapper {
    width: 100%;
    height: 250px;
    background-color: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image {
    width: 98%;
    height: auto;
    object-fit: contain;
}

.card-body {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Fila de Cripto y Stock */
.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-crypto {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-stock {
    font-size: 12px;
    color: #94a3b8;
}

/* Fila de botón y tiempo */
.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.card-time {
    background-color: #f1f5f9;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* Botón Place a Bid por defecto en azul plano */
.btn-bid {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

/* Estado Hover Dinámico: Se transforma en la pastilla negra compacta */
.feature-card:hover .btn-bid, 
.feature-card.forced-hover .btn-bid {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 8px 16px;
}

/* Botón Central "View More" */
.features-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-view-more {
    background-color: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}


/* =========================================
   --- SECCIÓN 3: BLOG (SELL YOUR NFTS) ---
   ========================================= */

.blog-container {
    padding: 80px 0 120px 0;
}

.blog-main-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 40px;
}

/* Distribución horizontal de tres columnas */
.blog-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.policy-steps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

/* Tarjeta de bloque de información */
.step-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-global);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
}

.step-icon {
    font-size: 26px;
    color: var(--accent-color);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 4px;
}

.step-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}


/* --- Media Queries (Adaptación Multidispositivo) --- */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

/* =========================================
   --- SECCIÓN 4: FOOTER (ESTILOS) --------
   ========================================= */

.main-footer {
    background-color: #000000;
    color: #ffffff;
    /* Rompe el padding del body para ir de borde a borde */
    margin: 0 -100%; 
    padding: 80px 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor interno para mantener la alineación con la rejilla superior */
.footer-inner {
    width: 100%;
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Lado Izquierdo */
.footer-left {
    flex: 1;
}

.footer-headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Lado Derecho */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    flex: 1;
}

/* Enlaces de navegación superiores en el footer */
.footer-nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav-links a {
    color: #94a3b8; /* Gris sutil como en la imagen */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: #ffffff;
}

/* Iconos de Redes Sociales */
.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 22px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    color: #94a3b8;
    transform: translateY(-2px);
}

/* Texto de Copyright */
.footer-copyright {
    font-size: 13px;
    color: #475569; /* Color de texto opaco/apagado idéntico a la UI de la captura */
    letter-spacing: 0.2px;
}

/* --- Adaptación para Dispositivos Móviles (Media Queries) --- */
@media (max-width: 968px) {
    .main-footer {
        margin: 0 -5%;
        padding: 60px 5%;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 50px;
    }
    
    .footer-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-nav-links {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .footer-headline {
        font-size: 32px;
    }
}

/* =========================================
   --- SECCIÓN 5: CONTACTO (ESTILOS) -------
   ========================================= */

.contact-container {
    padding-top: 40px;
    padding-bottom: 100px;
    padding-left: 8%;
    padding-right: 8%;
}

/* Tarjeta contenedora de doble columna que emula el grid del sitio */
.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-global);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.detail-item i {
    font-size: 18px;
    color: var(--brand-color); /* Mantiene el azul acento de los precios */
    width: 20px;
}

/* Maquetación del Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs con fondo sutil gris idénticos a los botones de filtros */
.form-group input,
.form-group select,
.form-group textarea {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--primary-color);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); /* Focus suave en azul */
}

/* Evita que el textarea se rompa horizontalmente */
.form-group textarea {
    resize: vertical; 
}

/* Botón de envío que hereda el estilo píldora del Hero */
.btn-send {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: fit-content;
    margin-top: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-send:hover {
    background-color: #222222;
    transform: translateY(-2px);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-send-disabled {
    background-color: #808080;
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    width: fit-content;
    margin-top: 8px;
}

/* --- Ajuste Responsivo para móviles/tablets (Añadir dentro de tus media queries existentes) --- */
@media (max-width: 968px) {
    .contact-card {
        grid-template-columns: 1fr; /* Pasa a una sola columna */
        gap: 40px;
        padding: 40px 30px;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .btn-send {
        width: 100%; /* Botón completo en pantallas móviles para mejor UX touch */
        text-align: center;
    }
}