/* =========================================
   BASE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #06130f, #020403, #000);
    color: #d8ffe9;
}

/* =========================================
   HEADER (EXPEDIENTE)
========================================= */

.top-bar {
    text-align: center;
    padding: 20px;
    background: rgba(10, 30, 20, 0.8);
    border-bottom: 1px solid rgba(120, 255, 180, 0.2);

    box-shadow: 0 0 20px rgba(0, 255, 120, 0.1);
}

.top-bar h1 {
    color: #7CFFB2;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,255,120,0.3);
}

.top-bar p {
    font-size: 13px;
    opacity: 0.8;
}

/* botón logout estilo “terminal fantasma” */
.logout {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;

    color: #0b1b14;
    background: linear-gradient(90deg, #0f3, #0a8);

    text-decoration: none;
    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;

    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,255,120,0.2);
}

.logout:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,120,0.4);
}

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* =========================================
   MANSIÓN CARD (EXPEDIENTE PRINCIPAL)
========================================= */

.mansion-card {
    width: 900px;
    max-width: 95%;

    display: flex;
    flex-wrap: wrap;

    background: rgba(10, 25, 18, 0.75);
    border: 1px solid rgba(120, 255, 180, 0.2);
    border-radius: 12px;

    box-shadow:
        0 0 30px rgba(0,255,120,0.1),
        inset 0 0 15px rgba(0,255,120,0.05);

    backdrop-filter: blur(10px);

    overflow: hidden;
}

/* =========================================
   IMAGEN MANSIÓN (placeholder paranormal)
========================================= */

.mansion-image {
    flex: 1;
    min-height: 300px;

    background:
        radial-gradient(circle at center, rgba(0,255,120,0.15), transparent 60%),
        url("https://www.transparenttextures.com/patterns/dark-mosaic.png");

    border-right: 1px solid rgba(120,255,180,0.1);
}

/* =========================================
   INFO
========================================= */

.mansion-info {
    flex: 1;
    padding: 25px;
}

.mansion-info h2 {
    color: #7CFFB2;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* =========================================
   DETALLES
========================================= */

.details {
    list-style: none;
    margin-bottom: 20px;
}

.details li {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* =========================================
   PRECIO
========================================= */

.price-box {
    margin: 15px 0;
    padding: 10px;

    border-left: 3px solid #7CFFB2;
    background: rgba(0, 0, 0, 0.3);
}

.price-box span {
    font-size: 12px;
    opacity: 0.7;
}

.price-box h3 {
    color: #7CFFB2;
    font-size: 22px;
    margin-top: 5px;
}

/* =========================================
   BOTÓN DE COMPRA (POSEÍDO 👻)
========================================= */

.buy-btn {
    width: 100%;
    padding: 12px;

    margin-top: 15px;

    background: linear-gradient(90deg, #0f3, #0a8);
    border: none;
    border-radius: 8px;

    color: #001a10;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;

    box-shadow: 0 0 20px rgba(0,255,120,0.2);

    position: relative;
    overflow: hidden;
}

/* efecto “fantasma pasando” */
.buy-btn::before {
    content: "";
    position: absolute;
    width: 40%;
    height: 100%;
    top: 0;
    left: -50%;

    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
}

.buy-btn:hover::before {
    animation: ghostSlide 0.8s ease;
}

@keyframes ghostSlide {
    0% { left: -50%; }
    100% { left: 120%; }
}

.buy-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0,255,120,0.4);
}

/* =========================================
   WARNING / EXPEDIENTE
========================================= */

.warning {
    width: 900px;
    max-width: 95%;

    padding: 20px;

    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ff4d4d;

    box-shadow: 0 0 15px rgba(255,0,0,0.1);
}

.warning h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.warning p {
    font-size: 13px;
    opacity: 0.8;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .mansion-card {
        flex-direction: column;
    }

    .mansion-image {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(120,255,180,0.1);
    }
}