/* ============================= */
/* RESET BASE */
/* ============================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1f4f9f 0, #0a1a33 45%, #020712 100%);
    color: #0b1b3a;
}

/* ============================= */
/* LAYOUT GENERAL */
/* ============================= */

.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 50px;
}

/* ============================= */
/* HEADER */
/* ============================= */

.brand-header {
    margin-bottom: 28px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.5);
}

.brand-text h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #e3f2fd;
}

.brand-text p {
    margin: 0;
    font-size: 14px;
    color: #bbdefb;
}

/* ============================= */
/* CARD PRINCIPAL */
/* ============================= */

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    padding: 24px 22px 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(26, 35, 126, 0.35);
    backdrop-filter: blur(10px);
}

.card h2 {
    text-align: center;
    margin: 0 0 16px;
    font-size: 20px;
    color: #1a237e;
}

/* ============================= */
/* FORMULARIO */
/* ============================= */

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3b70;
}

input,
button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #cfd8dc;
}

input {
    background: #f7f9fc;
    transition: 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.25);
    background: #fff;
}

button {
    margin-top: 16px;
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.35);
    transition: 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* ============================= */
/* AUTOCOMPLETE */
/* ============================= */

.suggestions {
    background: white;
    border: 1px solid #cfd8dc;
    border-top: none;
    max-height: 160px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #e3f2fd;
}

/* ============================= */
/* RESULTADO */
/* ============================= */

.result {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    display: none;
}

.success {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ============================= */
/* REDES */
/* ============================= */

.social {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.social img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.2s ease;
}

.social img:hover {
    transform: scale(1.08);
}

/* ============================= */
/* MEDIA SECTION */
/* ============================= */
.media-section h2 {
    color: #ffffff;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

.media-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Card contenedor */

.media-column,
.media-column-video {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================= */
/* VIDEO (que llene completo) */
/* ============================= */

.media-column-video video {
    width: 100%;
    height: 420px;          /* 🔥 tamaño fijo elegante */
    object-fit: contain;      /* 🔥 llena sin espacio vacío */
    border-radius: 16px;
}

/* ============================= */
/* IMÁGENES (sin recorte feo) */
/* ============================= */

.media-column img {
    width: 100%;
    height: 400px;          /* 🔥 un poco más pequeñas */
    object-fit: contain;      /* 🔥 recorte elegante */
    border-radius: 16px;
}

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

@media (max-width: 1024px) {

    .media-layout {
        grid-template-columns: 1fr;
    }

    .media-column-video video {
        height: 320px;
    }

    .media-column img {
        height: 300px;
    }
}

@media (max-width: 600px) {

    .media-column-video video {
        height: 250px;
    }

    .media-column img {
        height: 230px;
    }
}

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

@media (max-width: 1024px) {
    .media-layout {
        grid-template-columns: 1fr;
    }

    .media-column img,
    .media-column-video video {
        max-height: 360px;
    }
}

@media (max-width: 600px) {

    .layout {
        padding: 20px 14px 30px;
    }

    .card {
        padding: 18px;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .media-column img,
    .media-column-video video {
        max-height: 280px;
    }
}

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

@media (max-width: 900px) {

    .media-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .media-column-video video {
        height: 280px;
    }

    .media-column img {
        height: 200px;
    }

    .brand-mark {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .layout {
        padding: 20px 14px 30px;
    }

    .card {
        padding: 18px;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .media-column-video video {
        height: 220px;
    }

    .media-column img {
        height: 180px;
    }
}