@font-face {
  font-family: 'Google Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v67/4UaXrENHsxJlGDuGo1OIlL3L2JB874GPhFI9_IqmuTCKjsg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v67/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2vgCI.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { --gap: 1rem; }

body {
    font-family: 'Google Sans', sans-serif;
    margin: 0;
    padding: 2rem;
    display: grid;
    place-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.review-page {
    background: #000;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
}

.page-shell {
    max-width: 720px;
    text-align: center;
    display: grid;
    gap: var(--gap);
}
body.review-page>main.page-shell {
    background: #fff;
    padding: 2rem;
    box-sizing: border-box;
    max-width: 520px;
    width: 100%;
    text-align: left;
    gap:0;
    border-radius: 20px;
}
.review-page h1{
    text-align: left;
    margin: 0;
}
.review-page p{
    margin:0;
    line-height: 26px;
}
img.hero-image {
    max-width: min(30vw, 180px);
    height: auto;
    margin: 0 auto;
    display: block;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 520px;
    margin: 0 auto;
}

.option-block {
    border: 1px solid #eee;
    border-radius: 28px;
    padding: 2rem;
    text-decoration: none;
    display: grid;
    gap: .5rem;
    align-content: center;
    color: black;
    background: #fff;
    box-sizing: border-box;
}

.option-block:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
    background: #f5f4ff;
}

.mood-icon {
    font-size: 3rem;
    line-height: 1;
    color:#f5c518
}

.btn {
    display: inline-block;
    margin-top: .25rem;
    padding: .6rem 1rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    box-sizing: border-box;
}

small {
    color: #ededed;
    display: block;
    margin-top: 100px;
    font-size: .5rem;
}

#creditos {
    font-size: .65rem;
    color: #818181;
    text-decoration: none;
    display: block;
    margin-top: 150px;
}

/* ----- Review Form ----- */
form {
    max-width: 680px;
    width: 100%;
    display: grid;
    gap: .9rem;
}

form fieldset {
    border: none;
    padding: 2.5rem 0 1rem 0;
    margin: 0;
    text-align: center;
}

form fieldset legend {
    font-size: 0.75rem;
    position: relative;
    top: 35px;
}

form .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
}

form .buttons button {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    width: auto;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 14px;
}

input, textarea, button {
    font: inherit;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    margin-top: 5px;
    box-sizing: border-box;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

button {
    width: auto;
    padding: 0.6rem 1.2rem;
}
button.cancel {
    border-color: #dfdfdf;
    background: #ffffff;
    color: #1a73e8;
}
button.cancel:hover {
    background: #f5f4ff;
}
button.send {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #FFF;
}
button.send:hover{
    background: #1a65c8;
}
.ok  {text-align: center;margin: 50px 0;}
.ok .success-icon {
    font-size: 2rem;
    background: #4caf50;
    color: #FFF;
    font-weight: bold;
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    /* display: block; */
    margin-bottom: 0.5rem;
    text-align: center;
}
.ok p {
    /* background: #ecfff0; */
    /* border: 1px solid #bde5c8; */
    padding: 1rem;
    border-radius: 10px;
}
.ok .hecho {
    display: block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 14px;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
}
.ok .hecho:hover {
    background: #1a65c8;
}
.err {
    background: #fff3f3;
    border: 1px solid #f0c2c2;
    padding: 1rem;
    border-radius: 10px;
}

label {
    font-weight: 400;
}

a#volver {
    color: grey;
    text-decoration: none;
    font-size: 12px;
}

/* Stars */
.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .25rem;
    justify-content: center;
}

.stars input {
    display: none;
}

.stars label {
    font-size: 3rem;
    cursor: pointer;
    color: #ccc;
    user-select: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.stars label::before {
    content: "☆";
}

.stars label:hover::before,
.stars label:hover ~ label::before {
    content: "★";
    color: #f5c518;
}

.stars input:checked ~ label::before {
    content: "★";
    color: #f5c518;
}


/* Mejoras para grid en Safari */
@supports not (gap: 1rem) {
    .page-shell, .choice-grid, form {
        /* fallback para navegadores sin gap */
        grid-gap: var(--gap, 1rem);
    }
    .stars {
        grid-gap: .25rem;
    }
}

/* Mejoras para min() en Safari antiguo */
img.hero {
    max-width: 180px;
    width: 100%;
}
@media (max-width: 600px) {
    img.hero {
        max-width: 30vw;
    }
}
