/* ==========================================================
   Oficity Mundial 2026
   Archivo: assets/css/style.css
   ========================================================== */

/* Evita que estilos del tema afecten demasiado el módulo */
.om-mundial-page,
.om-mundial-page * {
    box-sizing: border-box;
}

.om-mundial-page {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    font-family: inherit;
    color: #071b35;
}

/* ==========================================================
   HERO
   ========================================================== */

.om-hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
    align-items: center;
    padding: 48px 56px;
    margin-bottom: 28px;
    border: 1px solid #dce8f5;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0, 102, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(14, 181, 178, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 56%, #eef7ff 100%);
    box-shadow: 0 22px 60px rgba(4, 35, 73, 0.08);
}

.om-hero-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.08);
}

.om-hero-card::after {
    content: "";
    position: absolute;
    right: 80px;
    bottom: -65px;
    width: 260px;
    height: 120px;
    border-radius: 999px;
    background: rgba(0, 196, 180, 0.12);
    transform: rotate(-22deg);
}

.om-hero-content {
    position: relative;
    z-index: 2;
}

.om-badge,
.om-section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1769ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.om-badge::before {
    content: "⚽";
    font-size: 14px;
}

.om-hero-card h1 {
    max-width: 760px;
    margin: 22px 0 14px;
    color: #071b35;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.om-hero-card p {
    max-width: 760px;
    margin: 0;
    color: #5b6b82;
    font-size: 17px;
    line-height: 1.7;
}

.om-hero-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.om-hero-info div {
    padding: 18px 20px;
    border: 1px solid #dce8f5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
}

.om-hero-info strong {
    display: block;
    margin-bottom: 6px;
    color: #071b35;
    font-size: 14px;
    font-weight: 900;
}

.om-hero-info span {
    display: block;
    color: #5b6b82;
    font-size: 14px;
    line-height: 1.45;
}

.om-hero-decoration {
    position: relative;
    z-index: 2;
    min-height: 220px;
}

.om-ball {
    position: absolute;
    top: 20px;
    right: 56px;
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 25px 55px rgba(0, 51, 102, 0.16);
    font-size: 72px;
    transform: rotate(-9deg);
}

.om-cup {
    position: absolute;
    right: 10px;
    bottom: 12px;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b65ff, #00b8b0);
    box-shadow: 0 22px 45px rgba(0, 102, 255, 0.24);
    font-size: 48px;
}

/* ==========================================================
   LAYOUT GENERAL
   ========================================================== */

.om-layout {
    display: grid;
    grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.om-card {
    border: 1px solid #dce8f5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(4, 35, 73, 0.07);
}

.om-form-card,
.om-table-card {
    padding: 30px;
}

.om-card-header {
    margin-bottom: 24px;
}

.om-card-header h2 {
    margin: 16px 0 8px;
    color: #071b35;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.om-card-header p {
    margin: 0;
    color: #5b6b82;
    font-size: 15px;
    line-height: 1.6;
}

.om-required {
    color: #ff2f67;
    font-weight: 900;
}

/* ==========================================================
   FORMULARIO
   ========================================================== */

.om-form {
    display: grid;
    gap: 18px;
}

.om-field-group {
    display: grid;
    gap: 8px;
}

.om-field-group label {
    color: #071b35;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.om-field-group small {
    display: block;
    margin-top: 2px;
    color: #7a8798;
    font-size: 12.5px;
    line-height: 1.4;
}

.om-form input,
.om-form select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d6e2f0;
    border-radius: 15px;
    background: #ffffff;
    color: #071b35;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.om-form input::placeholder {
    color: #8997aa;
}

.om-form input:focus,
.om-form select:focus {
    border-color: #1769ff;
    background: #fbfdff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
}

.om-form select {
    cursor: pointer;
    appearance: auto;
}

.om-submit-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0057ff 0%, #00b8b0 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(0, 102, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.om-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 102, 255, 0.30);
}

.om-submit-btn:active {
    transform: translateY(0);
}

.om-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

/* Mensajes AJAX */
.om-message {
    display: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.om-message:not(:empty) {
    display: block;
}

.om-message.om-success {
    border: 1px solid #b8eadf;
    background: #ecfff9;
    color: #087a60;
}

.om-message.om-error {
    border: 1px solid #ffd1dc;
    background: #fff2f5;
    color: #bf244b;
}

.om-message.om-info {
    border: 1px solid #cfe0ff;
    background: #f1f6ff;
    color: #135ad8;
}

/* ==========================================================
   TABLA
   ========================================================== */

.om-table-card {
    position: relative;
    overflow: hidden;
}

.om-table-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(0, 184, 176, 0.10);
}

.om-table-card .om-card-header,
.om-table-wrapper {
    position: relative;
    z-index: 2;
}

.om-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0ebf6;
    border-radius: 18px;
    background: #ffffff;
}

.om-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #ffffff;
}

.om-table thead th {
    padding: 16px 18px;
    background: #f3f8ff;
    color: #071b35;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    border-bottom: 1px solid #dce8f5;
}

.om-table thead th:first-child {
    border-top-left-radius: 18px;
}

.om-table thead th:last-child {
    border-top-right-radius: 18px;
}

.om-table tbody td {
    padding: 16px 18px;
    color: #344258;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #edf2f8;
}

.om-table tbody tr:last-child td {
    border-bottom: 0;
}

.om-table tbody tr:hover td {
    background: #fbfdff;
}

.om-table tbody td:nth-child(3) {
    color: #0057ff;
    font-weight: 900;
}

/* Ocultar tabla cuando no haya registros */
.om-hidden {
    display: none !important;
}

/* ==========================================================
   ESTADOS FUTUROS / AUXILIARES
   ========================================================== */

.om-empty-state {
    padding: 28px;
    border: 1px dashed #cfe0ef;
    border-radius: 18px;
    background: #f8fbff;
    color: #5b6b82;
    text-align: center;
}

.om-empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: #071b35;
    font-size: 18px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1180px) {
    .om-layout {
        grid-template-columns: 1fr;
    }

    .om-form-card {
        max-width: 680px;
    }
}

@media (max-width: 900px) {
    .om-mundial-page {
        padding: 28px 16px 56px;
    }

    .om-hero-card {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }

    .om-hero-decoration {
        display: none;
    }

    .om-hero-info {
        grid-template-columns: 1fr;
    }

    .om-card-header h2 {
        font-size: 25px;
    }
}

@media (max-width: 600px) {
    .om-mundial-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .om-hero-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .om-hero-card h1 {
        font-size: 32px;
    }

    .om-hero-card p {
        font-size: 15px;
    }

    .om-form-card,
    .om-table-card {
        padding: 22px;
        border-radius: 20px;
    }

    .om-form input,
    .om-form select,
    .om-submit-btn {
        min-height: 52px;
        font-size: 14px;
    }

    .om-card-header h2 {
        font-size: 23px;
    }
}