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

:root {
    --bg-absolute: #000000;
    --card-base: #09090b;
    --border-inline: rgba(255, 255, 255, 0.06);
    --text-muted: #8e8e93;
    /* PALETA DE ACENTO (Granates/Rojos del Logo) */
    --primary-accent: #d1415d;
    --text-accent: #a3001f;
    --glow-color: rgba(163, 0, 31, 0.15);
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-absolute);
    color: #ffffff;
    letter-spacing: -0.02em;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

.glow-effect {
    position: absolute;
    width: 500px;
    height: 400px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* NAVBAR */
.custom-navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-inline);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links-group {
    display: flex;
    align-items: center;
    gap: 32px;
}
.custom-nav-link {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
.custom-nav-link:hover {
    color: #ffffff !important;
}

/* TYPOGRAPHY */
.main-hero-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 6.5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 50%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BOTONES */
.btn-action-white {
    background: #ffffff;
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    transition: opacity 0.2s;
}
.btn-action-white:hover {
    opacity: 0.9;
}

.btn-action-outline {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid var(--border-inline);
    transition: all 0.2s;
}
.btn-action-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-accent);
}

.btn-action-accent {
    background: var(--text-accent);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    transition: opacity 0.2s;
}
.btn-action-accent:hover {
    opacity: 0.9;
}

/* UI BOX MOCKUP */
.ui-box {
    background: #040405;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
}
.ui-box-top {
    background: #0d0d11;
    border-bottom: 1px solid var(--border-inline);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.ui-grid-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px;
}
@media (max-width: 768px) {
    .ui-grid-display {
        grid-template-columns: 1fr;
    }
}

/* BENTO GRID (Ecosistema principal) */
.bento-master-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.bento-block {
    background: var(--card-base);
    border: 1px solid var(--border-inline);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}
.bento-block:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.w-col-8 {
    grid-column: span 8;
}
.w-col-4 {
    grid-column: span 4;
}
@media (max-width: 991px) {
    .w-col-8,
    .w-col-4 {
        grid-column: span 12;
    }
}

/* NUEVO: GRID PARA SERVICIOS DETALLADOS Y NOTICIAS */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
@media (max-width: 991px) {
    .standard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .standard-grid {
        grid-template-columns: 1fr;
    }
}

.service-card,
.news-card {
    background: var(--card-base);
    border: 1px solid var(--border-inline);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover,
.news-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-inline);
    color: #a1a1aa;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}
.divider-hr {
    width: 100%;
    height: 1px;
    background: var(--border-inline);
    margin: 5rem 0;
}

dropdown-item:hover {
    background-color: transparent !important;
    color: var(--text-accent) !important;
}
