:root {
    --bg: #ffffff;
    --text: #2b2b2b;
    --muted: #6b6b6b;
    --accent: #0b74de;
    --card: #f5f5f5;
    --glass: rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --max-width: 1100px;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --section-gap: 60px;
    --section-divider-offset: 30px;
    --section2-gap: 25px;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #ffffff;
    --muted: #9ca3af;
    --accent: #38bdf8;
    --card: #2b2b2b;
    --glass: rgba(255, 255, 255, 0.04);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.cta {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

/* ===== HERO / Banner Premium ===== */
.hero {
    margin: 5px 0 10px;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    background: #000;
    position: relative; /* necesario para flechas */
}

/* CONTENEDOR DE NAVEGACIÓN FUERA DEL CLIP */
.hero > .swiper-container {
    overflow: visible;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}
.swiper-container {
    width: 125%;
    height: 135%;
    position: relative;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: block; /* ← clave */
}

.swiper-slide img {
    position: absolute;
    top: 0; left: 0;
    width: 80%;
    height: 80%;
    object-fit: cover;
    filter: brightness(0.6); /* Oscurece un poco para que el texto resalte */
}

.swiper-slide .content {
    position: relative;
    z-index: 10;
    padding: 40px;
    max-width: 600px;
    color: white;
}

.swiper-slide h2 {
    font-size: 2.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.swiper-slide p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9) !important;
}


/* Mejora de Grilla de Servidores */
.servers-grid {
    display: grid;
    /* auto-fill permite que si agregas más, se acomoden solos */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px;
}

/* El contenedor padre de main-content y aside */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Columna principal y aside fijo */
    gap: 24px;
    align-items: start; /* Esto evita que el aside se estire raro */
}

/* El contenedor de los videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 100%; /* Asegura que no se salga de su columna */
}

/* Sidebar estable */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Opcional: hace que el aside se quede fijo mientras haces scroll */
    position: sticky;
    top: 20px;
    padding: 0; /* importante */
}
.sidebar .card {
    width: 100%;
    padding: 16px; /* mismo aire visual que el botón */
    box-sizing: border-box;
}

/* ===== ESTILOS SERVIDORES (TUS ESTILOS) ===== */
.section-header {
    margin-bottom: 0px;
}

.section-header p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.server-card {
    position: relative;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--glass);
}

.server-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.server-card.featured {
    border: 2px solid var(--accent);
}

.server-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.server-content {
    padding: 14px;
}

.server-content h4 {
    margin: 0;
    font-size: 1.05rem;
}

.server-content p {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.server-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.server-meta span {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--glass);
}

.status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
}

.status.beta {
    background: #c28c00;
}

/* ===== JUEGOS SECUNDARIOS (IMÁGENES PEQUEÑAS) ===== */
.mini-games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.mini-game {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--glass);
    cursor: pointer;
    transition: 0.2s;
}

.mini-game:hover {
    background: var(--accent);
    color: white;
}

.mini-game img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.mini-game span {
    font-size: 13px;
    font-weight: 600;
}

/* Ajustes para la grilla de videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.video {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--glass);
}

.video:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vmeta {
    padding: 12px;
}

.vmeta h5 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text);
}

.vmeta p {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Botón Cargar Más */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-button {
    background: var(--glass);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.load-more-button:hover {
    background: var(--accent);
    color: white;
}
.thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene proporción de YouTube */
    overflow: hidden;
}

.video .thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video:hover .thumb {
    transform: scale(1.05);
}

/* ===== Modal video ===== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: min(940px, 95%);
    background: white;
    padding: 8px;
    border-radius: 10px;
}

.modal iframe {
    width: 100%;
    height: 520px;
    border-radius: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .swiper-container {
        height: 200px;
    }

    .swiper-slide img {
        width: 90%;
        height: 150%;
        object-fit: cover;
        display: block;
    }

    .modal iframe {
        height: 360px;
    }
}

@media (max-width: 560px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    nav {
        display: none;
    }

    .hero {
        border-radius: 10px;
    }

    .swiper-slide .content {
        max-width: 100%;
    }
    .swiper-slide h2 {
        font-size: 1.3rem;      /* antes ~2.2rem */
        line-height: 1.8;
        margin-bottom: 10 px;
    }

    .swiper-slide p {
        font-size: 0.95rem;
        line-height: 1;
        max-width: 70%;
    }

    .swiper-slide .cta {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .swiper-slide .content {
        padding: 20px;
    }

    .forum-row {
        grid-template-columns: 1fr;
    }
}

/* tiny focus/keyboard */
a:focus,
button:focus,
.game-card:focus {
    outline: 3px solid rgba(11, 116, 222, 0.12);
}

/* ===== SIDEBAR RESTAURADO ===== */

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

.status-list {
    margin: 15px 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass);
    font-size: 0.9rem;
}

.status-item:last-child { border: none; }

/* Puntos de estado con brillo */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.online {
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.dot.maintenance {
    background: #f1c40f;
    box-shadow: 0 0 8px #f1c40f;
}

/* Botón Discord en Aside */
.cta-sidebar {
    background: var(--accent);
    color: white;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: var(--transition);
}

.cta-sidebar:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}


/* Partners y Guías */
.partner-item {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.partner-item strong {
    display: block;
    color: var(--accent);
}

.small-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.small-item {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 5px 0;
    cursor: pointer;
    transition: 0.2s;
}

.small-item:hover {
    color: var(--accent);
    padding-left: 5px;
}

.theme-card {
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    width: 100%;
}
.sidebar .card {
    width: 100%; /* Asegura que la tarjeta ocupe todo el ancho de los 300px */
    padding: 20px;
}

.sidebar h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass);
    padding-bottom: 8px;
}

/* =========================
   BOTÓN TOGGLE TEMA
   ========================= */

.theme-card {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--glass);
    gap: 14px;
}

/* Texto dinámico */
.theme-text {
    font-size: 0.8rem;
    color: var(--muted);

}

/* Switch visual */
.theme-switch {
    position: relative;
    width: 40px;
    height: 22px;
    margin: 0 auto;
    margin-top: 6px;
}

.theme-switch .track {
    position: absolute;
    inset: 0;
    background: var(--glass);
    border-radius: 999px;
}

.theme-switch .thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.25s ease;
}
.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Estado DARK */
body[data-theme="dark"] .theme-switch .thumb {
    transform: translateX(22px);
}

/* =========================
   twitch
   ========================= */
.twitch-support {
    background: linear-gradient(135deg, #6441a5, #2a0845);
    color: white;
}

.twitch-support p {
    color: #ffffff
}

.aside-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .aside-toggle {
        display: inline-block;
    }
}


/* Moviles */
@media (max-width: 1024px) {

    /* El aside deja de participar del grid */
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;

        background: var(--bg);
        z-index: 50;

        transform: translateX(100%);
        transition: transform 0.3s ease;

        padding: 20px;
        overflow-y: auto;
    }

    /* Estado abierto */
    .sidebar.is-open {
        transform: translateX(0);
    }

    /* El grid queda solo con el contenido */
    .grid-layout {
        grid-template-columns: 1fr;
    }
}
/* Contenedor del logo/botón */
.promocion {
  display: flex;
  justify-content: center; /* Centrado horizontal */
  align-items: center;     /* Centrado vertical */
  height: 150px;           /* Ajusta según necesites */
  width: 100%;
}
/* Clase específica para la imagen */
.sub {
  width: 180px;             /* Define el tamaño pequeño */
  height: auto;            /* Mantiene la proporción */
  display: block;          /* Elimina espacios en blanco extra */
  border-radius: 0px;      /* Opcional: bordes redondeados */
}

.discord-widget {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 0 solid var(--glass);
    padding: 16px; /* ← esto es lo que falta */
}
.discord-widget {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 0 solid var(--glass);
    padding: 16px; /* ← esto es lo que falta */
}
.discord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .discord-grid {
        grid-template-columns: 1fr;
    }
}

.discord-extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Título */
.discord-extra h3 {
    margin: 2;
    font-size: 1.4rem;
    text-align: center;
}

/* Texto */
.discord-desc {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin: 8px 0;
}
.discord-extra p {
    margin: 10px 20px;
}
/* Lista */
.discord-info {
    list-style: none;
    padding: 8px 0;
     margin: 10px 20px;
}

.discord-info li {
    padding: 6px 0;
    font-size: 0.95rem;
    display: center;
    gap: 8px;
}

/* Botón principal */
.discord-join {
    margin-top: auto;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
}

/* Links secundarios */
.discord-links {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
}

.discord-links a {
    color: var(--accent);
    text-decoration: none;
}

.discord-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .discord-grid {
        grid-template-columns: 1fr;
    }
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none; /* ← clave para no romper hover */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    width: 36px;     /* tamaño ideal */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;  /* no se achica */
}
.logo {
    width: 32px;     /* tamaño ideal */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;  /* no se achica */
}
.brand-title {
    font-weight: 800;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.2;
}


@media (max-width: 768px) {
    .brand {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 768px) {
    .brand-subtitle {
        font-size: 11px;
        line-height: 1.1;
    }
}
/* =========================
   Titulos y separadores
   ========================= */

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    color: var(--text);
}

/* Línea acento */
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 300px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--accent),
        transparent
    );
}
.section-title:hover::after {
    width: 150px;
    transition: width 0.25s ease;
}

.section-divider {
    height: 1px;
    background-color: var(--glass);
    margin: 2.5rem 0;
}

.section {
    position: relative;
    height: var(--section-gap);
    margin: 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--glass),
        transparent
    );
    background-size: 300% 200%;
    background-image: linear-gradient(
        90deg,
        transparent,
        rgba(9, 124, 240, 0.35),
        transparent
    );
    animation: energyFlow 5s linear infinite;
}

@keyframes energyFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
[data-theme="light"] .section::before {
    opacity: 0.7;
}

[data-theme="dark"] .section::before {
    opacity: 1;
}

.no-divider::before {
    display: none;
}
.section2{
    height: var(--section2-gap);

}

@media (max-width: 768px) {
    :root {
        --section-gap: 40px;
    }
}

/* =========================
   FOOTER – La Watoneta (THEME AWARE)
   ========================= */

.footer {
    background-color: var(--card);
    color: var(--text);
    padding: 40px 5%;
    border-top: 1px solid var(--glass);
    box-shadow: var(--shadow);
}

/* Contenedor principal */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* Línea inferior */
.footer-bottom {
    flex: 0 0 100%;     /* ocupa el ancho combinado de las columnas */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}
.footer-bottom a {
    color: var(--text);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Columnas */
.footer-logo,
.footer-links,
.footer-social,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

/* Logo */
.footer-logo h3 {
    font-family: var(--font-primary, sans-serif);
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text);
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Títulos */
.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    font-family: var(--font-secondary, sans-serif);
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    color: var(--text);
    border-bottom: 1px solid var(--glass);
}

/* Links navegación */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.01rem;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--muted);
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Contacto */
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 1px;
    color: var(--muted);
}

.footer-contact a {
    color: var(--text);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-contact {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}





/* Contenedor de búsqueda */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efecto de foco estilo Cyberpunk/Gamer */
.search-box:focus-within {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(11, 116, 222, 0.4);
}

.search-icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    outline: none;
    text-transform: uppercase;
}

/* Botón limpiar minimalista */
.btn-clear {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.btn-clear:hover {
    color: #ff4757;
}

/* Tags estilo Menú de Juego */
.filters-gamer {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.tag-gamer {
    background: var(--card);
    border: 1px solid var(--glass);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 4px; /* Bordes más rectos = más gamer */
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* Forma de trapecio */
}

.tag-gamer.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.dot-status {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
}

/* Botón Cargar Más */
.load-more-gamer {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 15px 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.load-more-gamer:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent);
}
#videosGrid:empty::after {
    content: "NO SE ENCONTRARON ARCHIVOS EN LA DATABASE";
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px dashed var(--glass);
}









/* 1. Ajuste del Contenedor Padre */
.server-card {
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    /* FIJAMOS ALTURA PARA QUE EL GRID NO COLAPSE */
    height: 450px; 
    margin-bottom: 10px;
}
.server-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

/* 2. El contenedor que gira */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
}

/* 3. Aseguramos que las caras ocupen el 100% */
.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--glass);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

/* 4. Estética de la cara trasera para que no se vea desordenada */
.card-back {
    transform: rotateY(180deg);
    padding: 20px;
    justify-content: space-between; /* Separa el contenido del botón volver */
    box-sizing: border-box;
}

/* 5. Mantenemos el estilo de las imágenes */
.card-front img {
    width: 100%;
    height: 180px; /* Altura fija para consistencia */
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

@media (max-width: 768px) {
    .server-card {
        height: 480px; /* Un poco más de altura para que el texto no se amontone */
        margin-bottom: 20px;
    }

    .server-content h4 {
        font-size: 1.2rem; /* Títulos un poco más grandes para facilitar lectura */
    }

    .server-content p {
        font-size: 0.85rem; /* Párrafos ligeramente más pequeños */
    }

    /* Ajuste de botones en móvil para que sean fáciles de tocar (Fat Finger Rule) */
    .cta {
        padding: 12px;
        font-size: 0.9rem;
    }
}
