/* =========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    background: #071525;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================================================
   CONTAINER
========================================================== */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================== */

.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 76px;
    z-index: 9999;
    background: rgba(5, 16, 32, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

main {
    padding-top: 76px;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.logo span {
    color: #6bc2f7;
}

/* =========================================================
   DESKTOP NAV
========================================================== */

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.70);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav .nav-active {
    color: #ffffff;
    position: relative;
}

.nav .nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6bc2f7;
    border-radius: 2px;
}

.nav-button {
    padding: 10px 21px;
    background: #ffffff;
    color: #071525 !important;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: all 0.25s ease;
}

.nav-button:hover {
    background: #8ad0ff;
    transform: translateY(-2px);
}

/* =========================================================
   HAMBURGER
========================================================== */

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 21px;
    height: 2px;
    background: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   MOBILE MENU
========================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    padding: 110px 30px 40px;
    background: rgba(5,16,32,0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.35s;
    z-index: 1050;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.mobile-menu a {
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.mobile-menu a:hover {
    background: rgba(107,194,247,0.08);
    color: #ffffff;
}

.mobile-menu .mobile-button {
    margin-top: 18px;
    background: #ffffff;
    color: #071525;
}

.mobile-menu .mobile-button:hover {
    background: #8ad0ff;
    color: #071525;
}

/* =========================================================
   OVERLAY
========================================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   BLOG POST
========================================================== */

.blog-post {
    padding: 60px 0 50px;
    background:
        radial-gradient(circle at 70% 30%, rgba(107,194,247,0.05), transparent 40%),
        linear-gradient(135deg, #031020 0%, #08233b 48%, #0d3a5a 100%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.post-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 45px;
}

.category {
    display: inline-block;
    background: rgba(107,194,247,0.12);
    color: #8ad0ff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.post-header h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}

/* =========================================================
   POST CONTENT
========================================================== */

.post-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: justify;
}

.post-content p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.post-content h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 40px;
    margin-bottom: 14px;
    text-align: center;
}

.post-content h2:first-of-type {
    margin-top: 0;
}

.post-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #ffffff;
}

.post-content ul {
    margin: 12px 0 18px 24px;
    color: rgba(255,255,255,0.75);
}

.post-content ul li {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.7;
}

.post-content strong {
    color: #ffffff;
}

/* =========================================================
   PRICE TABLE
========================================================== */

.price-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 35px;
}

.price-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 26px 22px;
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(107,194,247,0.15);
    transform: translateY(-3px);
}

.price-item.featured {
    border-color: rgba(107,194,247,0.25);
    background: rgba(107,194,247,0.06);
}

.price-item h3 {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    margin-top: 0;
}

.price-number {
    font-size: 22px;
    font-weight: 800;
    color: #8ad0ff;
    text-align: center;
    margin-bottom: 14px;
}

.price-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-item ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 0;
}

.price-item ul li:last-child {
    border-bottom: none;
}

.price-note {
    font-size: 12px !important;
    color: rgba(255,255,255,0.40) !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    text-align: center;
}

/* =========================================================
   POST CTA
========================================================== */

.post-cta {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 35px 40px;
    margin-top: 40px;
    text-align: center;
}

.post-cta h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.post-cta p {
    margin-bottom: 14px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.btn-primary {
    padding: 14px 34px;
    background: #ffffff;
    color: #071525;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #8ad0ff;
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 14px 34px;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: all 0.25s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #8ad0ff;
    background: rgba(107,194,247,0.08);
    transform: translateY(-2px);
}

/* =========================================================
   RELATED POSTS
========================================================== */

.related-posts {
    padding: 60px 0 80px;
    background: #071525;
}

.related-posts h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px 24px;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(107,194,247,0.12);
    transform: translateY(-3px);
}

.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.related-card h3 a:hover {
    color: #8ad0ff;
}

.related-card .excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.50);
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================================
   FOOTER
========================================================== */

.footer {
    padding: 50px 0 25px;
    background: #04101d;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
}

.footer-logo span {
    color: #6bc2f7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links .link-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.footer-links .link-group .group-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    text-align: center;
}

.footer-links .link-group a {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.8;
}

.footer-links .link-group a:hover {
    color: #6bc2f7;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-social .social-label {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.25s ease;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: rgba(255,255,255,0.50);
}

.social-links svg rect,
.social-links svg circle:not(.instagram-dot) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-links svg .instagram-dot {
    fill: currentColor;
}

.social-links a:hover {
    background: rgba(107,194,247,0.12);
    border-color: rgba(107,194,247,0.30);
    transform: translateY(-3px);
}

.social-links a:hover svg {
    color: #6bc2f7;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    text-align: center;
}

/* =========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .footer-links .link-group {
        align-items: center;
    }

    .footer-social {
        align-items: center;
    }

    .price-table {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .header {
        height: 68px;
    }

    main {
        padding-top: 68px;
    }

    .container {
        width: calc(100% - 28px);
    }

    .header-inner {
        min-height: 68px;
    }

    .logo {
        font-size: 18px;
    }

    .blog-post {
        padding: 40px 0 30px;
    }

    .post-header {
        margin-bottom: 30px;
    }

    .post-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 13px;
    }

    .post-content p {
        font-size: 15px;
    }

    .post-content ul li {
        font-size: 14px;
    }

    .post-cta {
        padding: 25px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .related-posts {
        padding: 40px 0 60px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-logo {
        font-size: 18px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .footer-links .link-group {
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .footer-links .link-group:last-child {
        border-bottom: none;
    }

    .footer-links .link-group .group-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .footer-links .link-group a {
        font-size: 12px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
    }

    .social-links svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        font-size: 11px;
        padding-top: 16px;
    }

}

/* =========================================================
   TELEFONOS PEQUEÑOS
========================================================== */

@media (max-width: 400px) {

    .blog-post {
        padding: 30px 0 20px;
    }

    .post-header h1 {
        font-size: 26px;
    }

    .post-content p {
        font-size: 14px;
    }

    .price-item {
        padding: 20px 16px;
    }

    .post-cta {
        padding: 20px 16px;
    }

    .related-card {
        padding: 18px 16px;
    }

    .footer {
        padding: 30px 0 16px;
    }

    .footer-links .link-group {
        padding: 10px 0;
    }

    .footer-links .link-group a {
        font-size: 11px;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        width: 34px;
        height: 34px;
    }

    .social-links svg {
        width: 16px;
        height: 16px;
    }

}

/* =========================================================
   HIGHLIGHT BOX
========================================================== */

.highlight-box {
    background: rgba(107,194,247,0.06);
    border-left: 3px solid #6bc2f7;
    border-radius: 8px;
    padding: 18px 24px;
    margin: 20px 0 28px;
}

.highlight-box p {
    margin-bottom: 0 !important;
    color: rgba(255,255,255,0.80) !important;
}

.highlight-box strong {
    color: #ffffff !important;
}