/* Estilos generales */
body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(180deg, #e9e9e9 0%, #d4d4d4 100%);
    color: #1f1f1f;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 820px;
    margin: 40px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-align: center;
}

/* Logo */
.logo img {
    max-width: 180px;
    margin: 6px auto 14px;
    display: block;
}

/* Encabezado */
.brand .header {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.subheader {
    margin: 0 0 22px;
    color: #555;
    line-height: 1.4;
    font-size: 15px;
}

/* Botones */
.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 6px 12px 18px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.main-button {
    background-color: #ffcc00;
    color: #000;
    text-decoration: none;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    min-width: 140px;
    width: auto;
    /* don't use flex sizing in column (mobile) to avoid large heights */
    flex: none;
    max-width: 320px;
    text-align: center;
    transition: transform 120ms ease, box-shadow 120ms ease;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Dropdown */
.dropdown {
    /* behave like a block in mobile; sizing for desktop is applied in the media query */
    position: relative;
    display: block;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    box-sizing: border-box;
}

.dropdown details,
.dropdown summary {
    width: 100%;
}

.dropdown summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

/* ensure the details summary used as button fills the available width */
summary.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-content {
    display: none;
    margin-top: 8px;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
    width: calc(100% - 20px);
}

.dropdown[open] .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #111e6c; /* deep blue for contrast */
    font-size: 15px;
    transition: background-color 120ms ease, color 120ms ease;
}

.dropdown-content a:hover {
    background-color: #ffcc00;
    color: #000;
}

/* Instagram button variant */
.main-button.instagram svg { display:inline-block; vertical-align:middle }
.main-button.instagram { background: #fff; border: 2px solid #ffcc00 }
.main-button.instagram:hover { background: #ffcc00; color: #000 }

/* Footer */
.footer { margin-top: 22px; color: #777; font-size: 14px }

/* Responsive */
@media (min-width: 700px) {
    .buttons { flex-direction: row; gap: 18px; flex-wrap: wrap; }
    /* enable flex sizing for desktop so buttons share the row */
    .main-button, .dropdown, .main-button.instagram { flex: 1 1 220px; }
    .main-button { width: auto; }
    .container { padding: 36px; }
}

@media (max-width: 420px) {
    .container { margin: 18px; padding: 18px }
    .logo img { max-width: 140px }
    .main-button { padding: 10px 16px; font-size: 15px }
}

/* mobile-specific: force buttons to be centered blocks with limited width */
@media (max-width: 699px) {
    .main-button, summary.main-button {
        display: block;
        width: calc(100% - 48px); /* keep some horizontal padding inside the card */
        max-width: 320px;
        margin: 10px auto;
        box-sizing: border-box;
        text-align: center;
    }
    .dropdown-content { width: calc(100% - 60px); max-width: 320px; margin: 6px auto 0 }
}