﻿:root {
    --bg-0: #080D16;
    --bg-1: #0E1626;
    --bg-2: #141F35;
    --header-bg: rgba(8,13,22,.82);
    --panel: #111A2D;
    --line: rgba(140,160,200,.14);
    --line-strong: rgba(140,160,200,.28);
    --text-hi: #EAEFF8;
    --nav-cta-color: #04101f;
    --text-mid: #AFBBD1;
    --text-low: #7C8AA0;
    --blue: #3E7BFA;
    --cyan: #22D3C5;
    --amber: #4A90E2; /* Cambiado de naranja a azul medio */
    --red: #FF5470;
    --accent: #2E7DD2; /* Nuevo: azul principal para acentos (antes naranja) */
    --accent-light: #5B9FE3; /* Nuevo: azul claro para acentos */
    --accent-dark: #1E5BA8; /* Nuevo: azul oscuro para acentos */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html[data-theme="light"] {
    --bg-0: #F6F8FC;
    --bg-1: #FFFFFF;
    --bg-2: #EEF3FB;
    --header-bg: rgba(255,255,255,.82);
    --panel: #FFFFFF;
    --line: rgba(25,40,70,.08);
    --line-strong: rgba(25,40,70,.18);
    --text-hi: #14213D;
    --nav-cta-color: #e1e2e3;
    --text-mid: #52627E;
    --text-low: #7A879D;
    --blue: #2563EB;
    --cyan: #0891B2;
    --amber: #3B82F6; /* Cambiado de naranja a azul en tema claro */
    --accent: #3B82F6; /* Azul principal en tema claro */
    --accent-light: #60A5FA; /* Azul claro en tema claro */
    --accent-dark: #1D4ED8; /* Azul oscuro en tema claro */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-0);
    color: var(--text-hi);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a {
    color: inherit;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    position: relative;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .eyebrow::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 2px;
        background: var(--cyan);
        box-shadow: 0 0 10px var(--cyan);
    }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-head {
    max-width: 680px;
    margin: 16px 0 44px;
}

    .section-head h2 {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .section-head p {
        color: var(--text-mid);
        font-size: 16px;
    }

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navlinks {
    display: flex;
    gap: 20px;
    font-size: 13.5px;
    color: var(--text-mid);
    margin-left: 20px;
    margin-right: 20px;
}

    .navlinks a {
        text-decoration: none;
        transition: color .15s;
        white-space: nowrap;
    }

        .navlinks a:hover {
            color: var(--text-hi);
        }

.nav-cta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    background: var(--text-hi);
    color: var(--nav-cta-color);
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width:980px) {
    .navlinks {
        display: none;
    }
}

@media (max-width:449px) {
    nav {
        flex-wrap: wrap;
    }
}
/* HERO / QUIENES SOMOS */

.hero {
    padding: 88px 0 60px;
    background: radial-gradient(1100px 480px at 78% -10%, rgba(62, 123, 250, 0.20), transparent 60%), radial-gradient(700px 380px at 5% 10%, rgba(34, 211, 197, 0.09), transparent 60%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

@media (max-width:920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    font-size: 46px;
    line-height: 1.1;
    margin: 20px 0 18px;
}

    .hero h1 .hl {
        color: var(--cyan);
    }

@media (max-width:560px) {
    .hero h1 {
        font-size: 32px;
    }
}

.hero p.sub {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 520px;
    margin-bottom: 28px;
}

.fact-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.fact {
    font-family: var(--font-mono);
}

    .fact b {
        display: block;
        font-size: 26px;
        color: var(--text-hi);
        font-family: var(--font-display);
    }

    .fact span {
        font-size: 11.5px;
        color: var(--text-low);
        letter-spacing: .04em;
    }

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #2657C7);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 7px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(62, 123, 250, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.btn-secondary {
    color: var(--text-hi);
    font-weight: 500;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 7px;
    text-decoration: none;
    border: 1px solid var(--line-strong);
}

.btn-primary:hover, .btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 255, 0.4);
}

.btn-primary:active, .btn-theme:active {
    transform: translateY(0);
}

.about-card {
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, var(--panel), var(--bg-1));
    border-radius: 10px;
    padding: 26px 24px;
}

    .about-card .k {
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--text-low);
        letter-spacing: .06em;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .about-card p {
        color: var(--text-mid);
        font-size: 14.5px;
        margin-bottom: 18px;
    }

        .about-card p:last-child {
            margin-bottom: 0;
        }
/* GENERIC CARD GRID with sub-lines (for líneas / servicios) */

.line-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

@media (max-width:820px) {
    .line-grid {
        grid-template-columns: 1fr;
    }
}

.line-card {
    background: var(--bg-1);
    padding: 30px 28px;
}

    .line-card .tag {
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--cyan);
        letter-spacing: .08em;
        margin-bottom: 10px;
        display: block;
    }

    .line-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .line-card p {
        color: var(--text-mid);
        font-size: 14.5px;
        margin-bottom: 16px;
    }

    .line-card ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .line-card li {
        font-size: 13.5px;
        color: var(--text-mid);
        display: flex;
        gap: 8px;
    }

        .line-card li::before {
            content: "✓";
            color: var(--cyan);
            font-family: var(--font-mono);
            flex-shrink: 0;
        }

.tier-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 30px;
}

.tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-low);
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    padding: 6px 13px;
    transition: border-color .25s ease, background .25s ease;
}

    .tier-chip img {
        height: 25px;
        width: 70px;
        object-fit: cover;
        opacity: .85;
        filter: grayscale(100%) brightness(1.35);
        transition: all .25s ease;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .12);
    }

    .tier-chip:hover img {
        opacity: 1;
        transform: scale(1.08);
        filter: grayscale(0%) brightness(1) drop-shadow(0 0 8px rgba(79,132,255,.30));
    }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width:980px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .svc-grid {
        grid-template-columns: 1fr;
    }
}

.svc-card {
    background: var(--bg-1);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--cyan);
}

.svc-card h3 {
    font-size: 16px;
}

.svc-card p {
    font-size: 13.5px;
    color: var(--text-mid);
}

.svc-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-low);
    letter-spacing: .05em;
    margin-top: auto;
}

section.block {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
}

    section.block.alt {
        background: var(--bg-1);
    }

.final {
    padding: 90px 0;
    text-align: center;
    background: radial-gradient(900px 420px at 50% 0%, rgba(62, 123, 250, 0.18), transparent 65%);
    border-bottom: 1px solid var(--line);
}

    .final h2 {
        font-size: 34px;
        max-width: 640px;
        margin: 18px auto 16px;
    }

    .final p {
        color: var(--text-mid);
        max-width: 520px;
        margin: 0 auto 30px;
        font-size: 16px;
    }

    .final .cta-row {
        justify-content: center;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    text-align: left;
}

@media (max-width:760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--bg-1);
    padding: 22px 22px;
}

    .contact-card .k {
        font-family: var(--font-mono);
        font-size: 10.5px;
        color: var(--text-low);
        letter-spacing: .06em;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .contact-card a, .contact-card span.v {
        font-size: 14.5px;
        color: var(--text-hi);
        text-decoration: none;
        display: block;
    }

footer {
    padding: 50px 0 36px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

@media (max-width:760px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        display: flex;
        flex-wrap: wrap;
    }
}

.foot-grid h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-low);
    margin-bottom: 14px;
}

.foot-grid a {
    display: block;
    font-size: 14px;
    color: var(--text-mid);
    text-decoration: none;
    margin-bottom: 9px;
}

    .foot-grid a:hover {
        color: var(--text-hi);
    }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-low);
    flex-wrap: wrap;
    gap: 12px;
}

.logo-coonectate {
    cursor: pointer;
    height: 100%;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.margin-bottom {
    margin-bottom: 2rem !important;
}

.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    user-select: none;
    margin-right: 10px;
}

.theme-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), #2657C7);
    box-shadow: 0 8px 24px rgba(62,123,250,.35);
    transition: transform .45s cubic-bezier(.22,1,.36,1), width .30s ease;
    overflow: hidden;
}

    .theme-indicator::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent 20%, rgba(255,255,255,.20), transparent 80%);
    }

.theme-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 46px;
    padding: 10px;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-mid);
    font-size: 13px;
    cursor: pointer;
    transition: color .25s ease, transform .20s ease;
}

    .theme-option:hover {
        color: var(--text-hi);
        transform: translateY(-1px);
    }

    .theme-option.active {
        color: white;
    }

    .theme-option i {
        font-size: 14px;
    }

    .theme-option.active i {
        transform: scale(1.12);
    }

    .theme-option i {
        transition: .25s;
    }

body, header, .about-card, .line-card, .svc-card, .contact-card, footer, .theme-switcher {
    transition: background-color .30s ease, color .30s ease, border-color .30s ease, box-shadow .30s ease;
}

.social-dropdown {
    position: relative;
    margin-right: 10px;
}

.social-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .20s, transform .25s, visibility .20s;
    z-index: 1000;
    backdrop-filter: blur(14px);
}

    .social-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.social-title {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-low);
    border-bottom: 1px solid var(--line);
}

.social-popup a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-mid);
    text-decoration: none;
    transition: .20s;
}

    .social-popup a:hover {
        background: rgba(62,123,250,.10);
        color: var(--text-hi);
    }

.social-popup i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

@media (max-width:980px) {
    .social-popup {
        left: 0px;
        width: 220px;
    }

    .social-dropdown {
        margin-right: 7px;
        margin-left: 7px;
    }

    .theme-switcher {
        margin-right: 7px;
    }
}

.icon-button {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text-mid);
    cursor: pointer;
    transition: .25s;
}

    .icon-button:hover {
        border-color: var(--blue);
        color: var(--text-hi);
        transform: translateY(-2px);
    }

.tier-card {
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .tier-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    }

.tier-header {
    background: linear-gradient(135deg, var(--bg-2), var(--panel));
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--line-strong);
    flex-shrink: 0;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-hi);
    margin-bottom: 12px;
}

.tier-price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.tier-currency {
    font-size: 16px;
    color: var(--text-mid);
    font-weight: 500;
    margin-left: 4px;
}

.tier-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.tier-spec {
    text-align: center;
    font-size: 18px;
    color: var(--text-mid);
    padding: 8px 0;
}

    .tier-spec i {
        color: var(--cyan);
        font-size: 12px;
    }

    .tier-spec a {
        color: var(--blue);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .tier-spec a:hover {
            text-decoration: underline;
        }

    .tier-spec:last-child {
        border-bottom: none;
    }

.tier-footer {
    padding: 0 20px 20px 20px;
    margin-top: auto;
    flex-shrink: 0;
}

.tier-cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--text-mid);
    color: var(--bg-0);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

    .tier-cta:hover {
        background: var(--text-hi);
        transform: translateY(-1px);
    }

.tier-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
    align-items: stretch;
}

/* ============================================
   Clase para resaltar tarjeta de servidor
   ============================================ */

.highlight {
    position: relative;
    transform: scale(1.05);
    z-index: 10;
    animation: highlightPulse 2s ease-in-out infinite;
}

    /* Tarjeta con efectos especiales */
    .highlight .tier-card {
        border: 2px solid var(--blue);
        box-shadow: 0 16px 56px rgba(62, 123, 250, 0.5), 0 0 0 4px rgba(62, 123, 250, 0.15);
        background: linear-gradient(135deg, var(--bg-1), var(--panel));
    }

        .highlight .tier-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 64px rgba(62, 123, 250, 0.6), 0 0 0 4px rgba(62, 123, 250, 0.2);
        }

[data-theme="dark"] .highlight .tier-card {
    box-shadow: 0 16px 56px rgba(62, 123, 250, 0.7), 0 0 0 4px rgba(62, 123, 250, 0.25);
}

    [data-theme="dark"] .highlight .tier-card:hover {
        box-shadow: 0 20px 64px rgba(62, 123, 250, 0.8), 0 0 0 4px rgba(62, 123, 250, 0.3);
    }

/* Header con degradado azul */
.highlight .tier-header {
    background: linear-gradient(135deg, var(--blue), #2657C7);
    position: relative;
    overflow: hidden;
}

    /* Cinta "DESTACADO" */
    .highlight .tier-header::before {
        content: '⭐ DESTACADO';
        position: absolute;
        top: -10px;
        right: -55px;
        background: var(--cyan);
        color: var(--bg-0);
        padding: 20px 40px 20px 100px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        transform: rotate(45deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        font-family: var(--font-mono);
    }

/* Nombre del tier en blanco */
.highlight .tier-name {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Precio destacado */
.highlight .tier-price {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 36px;
}

.highlight .tier-currency {
    color: rgba(255, 255, 255, 0.9);
}

/* Body con mejor contraste */
.highlight .tier-body {
    background: linear-gradient(180deg, transparent, rgba(62, 123, 250, 0.03));
}

/* Especificaciones destacadas */
.highlight .tier-spec {
    color: var(--text-hi);
    font-weight: 500;
}

    .highlight .tier-spec i {
        color: var(--blue);
        transform: scale(1.1);
    }

/* Botón CTA destacado en cyan */
.highlight .tier-cta {
    background: linear-gradient(135deg, var(--cyan), #00bfa5);
    color: var(--bg-0);
    font-size: 16px;
    padding: 14px 24px;
    box-shadow: 0 6px 20px rgba(34, 211, 197, 0.4);
    font-weight: 700;
    transition: all 0.3s ease;
}

    .highlight .tier-cta:hover {
        background: linear-gradient(135deg, #00bfa5, var(--cyan));
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(34, 211, 197, 0.6);
    }

/* Animación de pulso sutil en la sombra */
@keyframes highlightPulse {
    0%, 100% {
        filter: drop-shadow(0 12px 48px rgba(62, 123, 250, 0.4));
    }

    50% {
        filter: drop-shadow(0 12px 48px rgba(62, 123, 250, 0.6));
    }
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .highlight {
        transform: scale(1.03);
    }

        .highlight .tier-price {
            font-size: 34px;
        }

        .highlight .tier-header::before {
            font-size: 10px;
            padding: 30px 75px 5px;
            top: -26px;
            right: -60px;
        }
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .highlight {
        transform: scale(1.02);
    }

        .highlight .tier-price {
            font-size: 32px;
        }

        .highlight .tier-header::before {
            font-size: 9px;
            padding: 28px 65px 4px;
            top: -24px;
            right: -55px;
        }

        .highlight .tier-cta {
            font-size: 15px;
            padding: 12px 20px;
        }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .highlight {
        transform: scale(1.01);
    }

        .highlight .tier-header::before {
            font-size: 8px;
            padding: 26px 60px 3px;
            top: -22px;
            right: -52px;
        }
}

.content-title {
    display: flex;
    justify-content: center;
}

@media (max-width: 1200px) {
    .tier-grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tier-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tier-grid-cards {
        grid-template-columns: 1fr;
    }
}

.alert-modern {
    position: relative;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideInDown 0.4s ease-out;
}
    /* Iconos de alertas */
    .alert-modern::before {
        content: '';
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Variantes de alertas */
    .alert-modern.alert-success {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border-color: #28a745;
        color: #155724;
    }

        .alert-modern.alert-success::before {
            content: '✓';
            display: flex;
            align-items: center;
            justify-content: center;
            background: #28a745;
            color: white;
            font-weight: bold;
            font-size: 16px;
            border-radius: 50%;
        }

    .alert-modern.alert-info {
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
        border-color: #17a2b8;
        color: #0c5460;
    }

        .alert-modern.alert-info::before {
            content: 'i';
            display: flex;
            align-items: center;
            justify-content: center;
            background: #17a2b8;
            color: white;
            font-weight: bold;
            font-size: 16px;
            border-radius: 50%;
            font-style: italic;
        }

    .alert-modern.alert-warning {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        border-color: #ffc107;
        color: #856404;
    }

        .alert-modern.alert-warning::before {
            content: '⚠';
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #ffc107;
        }

    .alert-modern.alert-danger {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        border-color: #dc3545;
        color: #721c24;
    }

        .alert-modern.alert-danger::before {
            content: '✕';
            display: flex;
            align-items: center;
            justify-content: center;
            background: #dc3545;
            color: white;
            font-weight: bold;
            font-size: 18px;
            border-radius: 50%;
        }

    .alert-modern.alert-primary {
        background: linear-gradient(135deg, #cfe2ff 0%, #b8daff 100%);
        border-color: #0d6efd;
        color: #084298;
    }

        .alert-modern.alert-primary::before {
            content: '→';
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0d6efd;
            color: white;
            font-weight: bold;
            font-size: 18px;
            border-radius: 50%;
        }

        /* Soporte para tema oscuro */
[data-theme="dark"] .alert-modern.alert-success {
    background: linear-gradient(135deg, #1e4d2b 0%, #2d5f3a 100%);
    border-color: #48a560;
    color: #b8e6c4;
}

[data-theme="dark"] .alert-modern.alert-info {
    background: linear-gradient(135deg, #0f4a5c 0%, #176375 100%);
    border-color: #3498db;
    color: #a8d8ea;
}

[data-theme="dark"] .alert-modern.alert-warning {
    background: linear-gradient(135deg, #5c4d1e 0%, #6b5c2d 100%);
    border-color: #f39c12;
    color: #ffeaa7;
}

[data-theme="dark"] .alert-modern.alert-danger {
    background: linear-gradient(135deg, #5c1e1e 0%, #6b2d2d 100%);
    border-color: #e74c3c;
    color: #f8b4b4;
}

[data-theme="dark"] .alert-modern.alert-primary {
    background: linear-gradient(135deg, #1e3a5c 0%, #2d4a6b 100%);
    border-color: #3498db;
    color: #a8d0f8;
}

/* Botón de cierre */
.alert-modern .alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Contenido de la alerta */
.alert-modern .alert-content {
    flex: 1;
    padding-top: 2px;
}

.alert-modern .alert-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.alert-modern .alert-message {
    margin: 0;
    opacity: 0.9;
}

/* Variante compacta */
.alert-modern.alert-compact {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
}

    .alert-modern.alert-compact::before {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

 /* Variante sin bordes */
.alert-modern.alert-borderless {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.alert-modern.alert-dismissing {
    animation: fadeOut 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .alert-modern {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

        .alert-modern::before {
            width: 20px;
            height: 20px;
            font-size: 14px;
        }
}

/* ============================================
           Estilos Modernos para el Cotizador
           ============================================ */

/* Contenedor Principal */
#ventanaCotizador {
    background: var(--bg-card, #ffffff);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin: 50px auto;
    max-width: 1400px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #ventanaCotizador {
        margin: 20px;
        border-radius: 16px;
    }
}

/* Header del Breadcrumb */
.cotizador-header {
    background: linear-gradient(135deg, #2d3e50 0%, #1a252f 100%);
    padding: 32px 40px;
    border-radius: 24px 24px 0 0;
}

[data-theme="dark"] .cotizador-header {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
}

/* Steps mejorados */
.step {
    position: relative;
    padding: 12px 0;
    transition: all 0.3s ease;
}

    .step .number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        font-size: 18px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
        flex-shrink: 0;
        /* Centrado perfecto con flexbox */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step.active .number {
        background: linear-gradient(135deg, var(--blue), #2657C7);
        color: white;
        border-color: #2657C7;
        box-shadow: 0 4px 16px rgba(0, 147, 255, 0.4);
        transform: scale(1.1);
    }

    .step .number:before {
        display: none;
    }

    .step .info {
        margin-left: 56px;
        padding-top: 4px;
    }

    .step .title {
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.3s ease;
    }

    .step.active .title {
        color: white;
    }

    .step .desc {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

@media (max-width: 768px) {
    .step .number {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }

    .step .info {
        margin-left: 44px;
    }

    .step .title {
        font-size: 14px;
    }
}

/* Separadores verticales */
.step-separator {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    height: 100%;
}

/* Formularios Modernos */
.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-high, #333);
        font-weight: 500;
        font-size: 15px;
    }

[data-theme="dark"] .form-group label {
    color: var(--text-high, #e0e0e0);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-high, #333);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: #2657C7;
        box-shadow: 0 0 0 4px rgba(25, 180, 255, 0.4);
    }

[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

    [data-theme="dark"] .form-control:focus {
        border-color: var(--accent, #ff6b00);
        background: rgba(255, 255, 255, 0.08);
    }

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

[data-theme="dark"] .form-control:disabled {
    background: rgba(255, 255, 255, 0.02);
}

/* Títulos de sección */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-high, #1a252f);
    margin: 40px 0 24px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium, #666);
    margin-bottom: 32px;
    text-align: center;
}

[data-theme="dark"] .section-title {
    color: var(--text-high, #ffffff);
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-medium, #a0a0a0);
}

/* Controles de servidor */
.server-control-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 16px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .server-control-row:hover {
        background: var(--bg-hover, #f0f1f3);
        transform: translateX(4px);
    }

[data-theme="dark"] .server-control-row {
    background: rgba(255, 255, 255, 0.03);
}

    [data-theme="dark"] .server-control-row:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.server-control-label {
    flex: 0 0 30%;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-high, #333);
}

[data-theme="dark"] .server-control-label {
    color: var(--text-high, #e0e0e0);
}

.server-control-input {
    flex: 0 0 20%;
    margin-right: 20px;
}

.server-control-progress {
    flex: 1;
    margin-right: 20px;
}

.server-control-price {
    flex: 0 0 25%;
    text-align: start;
    font-size: 14px;
    color: var(--accent, #2E7DD2); /* Azul */
    font-weight: 600;
}

/* Barras de progreso mejoradas */
.progress {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

[data-theme="dark"] .progress {
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Colores de barras de progreso */
.bg-gradient-aqua {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #4A90E2 0%, #2E7DD2 100%); /* Azul medio a azul */
}

.bg-gradient-red {
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
}

.bg-gradient-yellow {
    background: linear-gradient(135deg, #ffd600 0%, #ffab00 100%);
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #1de9b6 0%, #00bfa5 100%);
}

/* Panel de precio */
#divPrecio {
    background: linear-gradient(135deg, #2E7DD2 0%, #3B82F6 100%); /* Azul a azul claro */
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(62, 123, 250, 0.3); /* Sombra azul */
    margin: 32px 0;
}

    #divPrecio span {
        font-size: 36px;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.resumen-header {
    background: linear-gradient(135deg, #2E7DD2 0%, #3B82F6 100%); /* Azul */
    padding: 32px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.resumen-item {
    padding: 16px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .resumen-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.resumen-item h5 {
    font-size: 16px;
    margin: 0;
    color: var(--text-high, #333);
}

[data-theme="dark"] .resumen-item h5 {
    color: var(--text-high, #e0e0e0);
}

.resumen-total {
    background: rgba(46, 125, 210, 0.05); /* Azul suave */
    padding: 24px 32px;
    margin-top: 16px;
}

[data-theme="dark"] .resumen-total {
    background: rgba(46, 125, 210, 0.1); /* Azul suave oscuro */
}

/* Checkbox personalizado - Azul */
input[type="checkbox"]:checked {
    background: var(--accent, #2E7DD2); /* Azul */
    border-color: var(--accent, #2E7DD2);
}

/* Notas informativas - Mantiene amarillo para advertencias */
.info-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="dark"] .info-note {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #ffe082;
}

/* Responsive */
@media (max-width: 992px) {
    .server-control-row {
        flex-wrap: wrap;
    }

    .server-control-label {
        flex: 0 0 100%;
        margin-bottom: 12px;
    }

    .server-control-input {
        flex: 0 0 45%;
    }

    .server-control-progress {
        flex: 0 0 100%;
        margin: 12px 0;
    }

    .server-control-price {
        flex: 0 0 100%;
    }
}

/* Precio en controles de servidor - Azul */
.server-control-price {
    flex: 0 0 25%;
    text-align: start;
    font-size: 14px;
    color: var(--accent, #2E7DD2); /* Azul */
}

/* Botones hover - Azul */
.icon-button:hover {
    border-color: var(--blue);
    color: var(--text-hi);
    transform: translateY(-2px);
}

/* Tier price - Cyan (ya es azul) */
.tier-price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

/* Ajustes adicionales para asegurar coherencia de color */
.text-primary {
    color: var(--text-hi) !important; /* Negro primario */
}

.text-secondary {
    color: white !important; /* Negro primario */
}

/* Asegurar que los enlaces y elementos interactivos usen azul */
a.btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--blue), #2657C7);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 7px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(62, 123, 250, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

/* Separador visual */
hr.divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 32px 0;
}

[data-theme="dark"] hr.divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ============================================
   Header del Cotizador con Steps Horizontales
   ============================================ */

.cotizador-header {
    background: linear-gradient(135deg, #2d3e50 0%, #1a252f 100%);
    padding: 32px 40px;
    border-radius: 24px 24px 0 0;
}

[data-theme="dark"] .cotizador-header {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
}

/* Contenedor principal de steps - Layout horizontal */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

/* Items individuales de steps */
.step-item {
    flex: 1;
    min-width: 0; /* Permite que el texto se trunque si es necesario */
    transition: all 0.3s ease;
}

/* Logotipo y distribuidor */
.step-logo,
.step-distributor {
    flex: 0 0 auto;
    margin-right: 24px;
}

.step-logo {
    display: flex;
    align-items: center;
}

.step-distributor {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.distributor-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Separador vertical entre steps */
.step-divider {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 16px;
    flex-shrink: 0;
}

/* Step individual */
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

    .step .number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        font-size: 18px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
        flex-shrink: 0;
        /* Centrado perfecto con flexbox */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step .info {
        flex: 1;
        min-width: 0;
    }

    .step .title {
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.step-item.active .step .number {
    background: #2657C7;
    color: white;
    border-color: #2657C7;
    box-shadow: 0 4px 16px rgba(0, 147, 255, 0.4);
    transform: scale(1.1);
}

.step-item.active .step .title {
    color: white;
}

.logotipo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .cotizador-header {
        padding: 24px 20px;
    }

    .steps-container {
        gap: 0;
    }

    .step-divider {
        height: 50px;
        margin: 0 12px;
    }

    .step .number {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 16px;
    }

    .step .title {
        font-size: 14px;
    }

    .step-logo,
    .step-distributor {
        margin-right: 16px;
    }

    .logotipo {
        width: 50px;
        height: 50px;
    }

    .distributor-name {
        font-size: 13px;
    }
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .cotizador-header {
        padding: 20px 16px;
    }

    .steps-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .step-item {
        width: 100%;
    }

    .step-divider {
        display: none; /* Ocultar separadores en móvil */
    }

    .step {
        justify-content: flex-start;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .step-item.active .step {
        background: rgba(255, 107, 0, 0.15);
    }

    .step .title {
        white-space: normal;
    }

    .step-logo,
    .step-distributor {
        margin-right: 0;
        margin-bottom: 12px;
        justify-content: center;
    }

    .step-distributor {
        max-width: 100%;
        text-align: center;
    }

    .distributor-name {
        text-align: center;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .step .number {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }

    .step .title {
        font-size: 13px;
    }

    .step .info {
        display: flex;
        align-items: center;
    }
}

/* Animación suave para cambios de estado */
.step-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora de accesibilidad */
.step:focus-within .number {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ============================================
   Contenedor del Cotizador - Ancho Ampliado
   ============================================ */

.cotizador-container {
    max-width: 1600px; /* Ancho máximo ampliado (era implícito ~1200px) */
    margin: 0 auto;
    padding: 0 24px;
}

#ventanaCotizador {
    background: var(--bg-card, #ffffff);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

/* Ajustes responsive */
@media (max-width: 1680px) {
    .cotizador-container {
        max-width: 1400px;
    }
}

@media (max-width: 1440px) {
    .cotizador-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .cotizador-container {
        max-width: 100%;
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .cotizador-container {
        padding: 0 16px;
    }

    #ventanaCotizador {
        border-radius: 16px;
    }
}

/* Ajustar sección de servidor para aprovechar el ancho */
#Servidor .container {
    max-width: 100%;
    padding: 32px 48px;
}

@media (max-width: 768px) {
    #Servidor .container {
        padding: 20px 16px;
    }
}

/* ============================================
   Grid System Responsivo Personalizado
   ============================================ */

/* Contenedor base para grids */
.responsive-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

/* Grid de 2 columnas por defecto */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Grid de 3 columnas */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Grid de 4 columnas */
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid de 5 columnas (para formularios) */
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Formularios - Desktop */
.form-grid {
    display: grid;
    grid-template-columns: 30% 70%; /* Etiqueta | Campo */
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

/* Controles de servidor - Desktop */
.server-grid {
    display: grid;
    grid-template-columns: 25% 15% 1fr 20%;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    margin-bottom: 16px;
}

[data-theme="dark"] .server-grid {
    background: rgba(255, 255, 255, 0.03);
}

/* Resumen - Desktop */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .summary-grid {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Breakpoints Responsivos
   ============================================ */

/* Tablets grandes (≤1200px) */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .server-grid {
        grid-template-columns: 30% 15% 1fr 20%;
        gap: 12px;
        padding: 14px 20px;
    }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 35% 65%;
        gap: 12px;
    }

    .server-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        display: grid !important;
    }

    .server-grid > * {
        width: 100%;
    }

    .summary-grid {
        padding: 14px 24px;
    }
}

/* Móviles grandes (≤768px) */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-grid label {
        margin-bottom: 4px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        padding: 12px 20px;
        gap: 8px;
    }

    .server-grid {
        padding: 12px;
        gap: 10px;        
    }
}

/* Móviles pequeños (≤480px) */
@media (max-width: 480px) {
    .responsive-grid {
        gap: 16px;
    }

    .summary-grid {
        padding: 10px 16px;
    }

    .server-grid {
        padding: 10px;
    }
}

/* ============================================
   Utilidades Responsivas
   ============================================ */

/* Ocultar en móvil */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Full width en móvil */
@media (max-width: 768px) {
    .mobile-full {
        width: 100% !important;
        grid-column: 1 / -1;
    }
}

/* Stack vertical en móvil */
.stack-mobile {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .stack-mobile {
        flex-direction: column;
    }
}

/* ============================================
   Sistema de Layout Moderno (reemplazo de row)
   ============================================ */

/* Contenedor flex horizontal (reemplazo básico de .row) */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

/* Contenedor flex con alineación centrada */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Contenedor flex con distribución espaciada */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Contenedor flex vertical */
.flex-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Contenedor con ancho completo */
.full-width {
    width: 100%;
}

/* Separador de ancho completo (reemplazo de .w-100) */
.full-width-break {
    width: 100%;
    flex-basis: 100%;
    height: 0;
}

/* Contenedor centrado con max-width */
.centered-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Espaciado entre elementos */
.gap-small { gap: 8px; }
.gap-medium { gap: 16px; }
.gap-large { gap: 24px; }
.gap-xlarge { gap: 32px; }

/* Márgenes inferiores (reemplazo de mb-*) */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

/* Márgenes superiores (reemplazo de mt-*) */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

/* Alineación de items */
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Alineación de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Sistema de anchos flexibles */
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.flex-auto { flex: 0 0 auto; }

/* Anchos fijos porcentuales */
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-33 { width: 33.333%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-66 { width: 66.666%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

/* Anchos máximos específicos */
.max-w-300 { max-width: 300px; }
.max-w-400 { max-width: 400px; }
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }

/* ============================================
   Contenedores Específicos del Cotizador
   ============================================ */

/* Sección de contenido principal */
.section-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

/* Contenedor para tipo de servidor */
.server-type-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.server-type-label {
    flex: 0 0 auto;
    min-width: 200px;
}

.server-type-control {
    flex: 1;
    max-width: 400px;
}

/* Contenedor para precio */
.price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-label {
    flex: 0 0 auto;
}

.price-value {
    flex: 1;
}

/* Contenedor para notas/información */
.info-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Contenedor para botones */
.button-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.button-group-wrapper {
    display: flex;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    justify-content: center;
}

/* Contenedor para resumen */
.summary-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Ajustes Responsivos
   ============================================ */

@media (max-width: 992px) {
    .flex-row,
    .flex-between {
        gap: 12px;
    }
    
    .server-type-row {
        gap: 16px;
    }
    
    /* Anchos completos en tablets pequeñas */
    .w-30,
    .w-33,
    .w-40 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .flex-row,
    .flex-center,
    .flex-between,
    .server-type-row,
    .price-row {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Anchos completos en móvil */
    .w-20,
    .w-25,
    .w-30,
    .w-33,
    .w-40,
    .w-50,
    .w-60,
    .w-66,
    .w-70,
    .w-75 {
        width: 100% !important;
    }
    
    .server-type-label,
    .price-label {
        text-align: center;
        min-width: auto;
    }
    
    .server-type-control {
        max-width: 100%;
        width: 100%;
    }
    
    .section-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .flex-row,
    .flex-center,
    .flex-between {
        gap: 10px;
    }

    .mb-3 {
        margin-bottom: 16px;
    }

    .mb-5 {
        margin-bottom: 24px;
    }

    .mt-3 {
        margin-top: 16px;
    }

    .mt-5 {
        margin-top: 24px;
    }

    .button-group-wrapper {
        flex-wrap: wrap;
    }
}

/* ============================================
   Adaptación del Cotizador al Tema Oscuro
   ============================================ */

/* Contenedor principal del cotizador */
.cotizador-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

#ventanaCotizador {
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

[data-theme="dark"] #ventanaCotizador {
    background: var(--panel);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Contenido de secciones */
.section-content {
    background: var(--bg-1);
    color: var(--text-hi);
    padding: 32px;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .section-content {
    background: var(--bg-1);
}

/* Títulos */
.section-title {
    color: var(--text-hi);
    transition: color 0.3s ease;
}

.section-subtitle {
    color: var(--text-mid);
    transition: color 0.3s ease;
}

/* Formularios */
.form-container {
    background: transparent;
}

.form-grid label {
    color: var(--text-hi);
}

.form-control {
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    color: var(--text-hi);
}

[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    color: var(--text-hi);
}

    [data-theme="dark"] .form-control:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--blue);
    }

    [data-theme="dark"] .form-control::placeholder {
        color: var(--text-low);
    }

/* Dropdowns */
select.form-control {
    background: var(--bg-1);
    color: var(--text-hi);
}

[data-theme="dark"] select.form-control {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-hi);
}

    [data-theme="dark"] select.form-control option {
        background: var(--bg-1);
        color: var(--text-hi);
    }

/* Controles de servidor */
.server-grid {
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: background 0.3s ease, border-color 0.3s ease;
}

    .server-grid:hover {
        background: var(--panel);
        border-color: var(--line-strong);
    }

[data-theme="dark"] .server-grid {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}

    [data-theme="dark"] .server-grid:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.server-control-label {
    color: var(--text-hi);
}

.server-control-price {
    color: var(--blue);
}

/* Ventana de resumen */
#ventanaResumen {
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] #ventanaResumen {
    background: var(--panel);
}

.summary-grid {
    border-bottom: 1px solid var(--line);
}

    .summary-grid h3,
    .summary-grid h4 {
        color: var(--text-hi);
    }

/* Checkbox */
[data-theme="dark"] input[type="checkbox"] {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
}

[data-theme="dark"] input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
}

/* Labels para checkbox */
[data-theme="dark"] label[for*="chk"] {
    color: var(--text-mid);
}

/* Información */
.info-section {
    color: var(--text-mid);
}

    .info-section h4 {
        color: var(--text-hi);
    }

/* Mensajes de alerta en el cotizador */
[data-theme="dark"] #divMensajeEnviarMensaje,
[data-theme="dark"] #divTipoServidor {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
}

/* Separador hr */
[data-theme="dark"] hr {
    border-color: var(--line-strong);
    background: var(--line);
}

/* Panel de precio */
#divPrecio {
    background: linear-gradient(135deg, var(--blue) 0%, #2657C7 100%);
    box-shadow: 0 8px 24px rgba(62, 123, 250, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] #divPrecio {
    box-shadow: 0 8px 24px rgba(62, 123, 250, 0.5);
}

/* Sección final */
.final {
    background: var(--bg-0);
    border-top: 1px solid var(--line);
    transition: background 0.3s ease;
}

    .final h2 {
        color: var(--text-hi);
    }

    .final p {
        color: var(--text-mid);
    }

.contact-grid .contact-card {
    background: var(--bg-1);
    transition: background 0.3s ease;
}

    .contact-grid .contact-card .k {
        color: var(--text-low);
    }

    .contact-grid .contact-card a,
    .contact-grid .contact-card span.v {
        color: var(--text-hi);
    }

/* Error message */
[data-theme="dark"] #divError {
    background: var(--bg-0);
}

    [data-theme="dark"] #divError h2 {
        color: var(--red);
    }

/* Recaptcha container */
[data-theme="dark"] #recaptcha {
    filter: invert(1) hue-rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-content {
        padding: 20px 16px;
    }

    .cotizador-container {
        padding: 0 16px;
    }
}

/* Transiciones suaves para todos los elementos del cotizador */
#CotizadorContent * {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease;
}

.cotizador-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cotizador-centered .content-title {
    width: 100%;
    text-align: center;
}

.cotizador-centered .cotizador-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
