/* ============================================================
   PE$OL · Landing stylesheet
   Light, colorful, friendly. No animations, no neon, no slop.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --forest:        #123a22;
    --forest-2:      #0e2d1a;
    --forest-deep:   #0b2416;

    --green:         #16e85a;
    --green-hover:   #0fd24e;
    --green-dark:    #0fb64a;
    --mint:          #e9fbef;
    --mint-strong:   #d6f7e1;

    --orange:        #ff7a1a;
    --orange-soft:   #fff0e3;
    --orange-glow:   #ffe2cc;

    --blue:          #3b82f6;
    --blue-soft:     #e8f0ff;
    --blue-glow:     #dbe8ff;

    --purple:        #8b5cf6;
    --purple-soft:   #f0eaff;
    --purple-glow:   #e7dcff;

    --yellow:        #f5b301;
    --yellow-dark:   #c98f00;
    --yellow-soft:   #fff6d6;

    --red:           #e5383b;
    --red-soft:      #ffe9ea;
    --red-glow:      #ffdadc;

    --bg:            #f6f8f5;
    --surface:       #ffffff;
    --text:          #2d3748;
    --muted:         #5b6676;
    --border:        #e3e8e1;
    --border-strong: #d5dcd3;

    /* emergency colors */
    --em-carab:      #4a6b3a;
    --em-bomb:       #d7263d;
    --em-samu:       #e6a700;
    --em-pdi:        #1e3a6e;
    --em-pnp:        #2f6b3a;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;
    --r-2xl: 28px;

    --shadow-sm: 0 2px 6px rgba(18, 58, 34, 0.06);
    --shadow-md: 0 8px 24px rgba(18, 58, 34, 0.10);
    --shadow-lg: 0 18px 44px rgba(18, 58, 34, 0.14);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--forest); font-weight: 800; }
p { margin: 0; }

button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible {
    outline: 3px solid #0f9b43;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Layout container ---------- */
.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

main#contenido { display: block; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header > .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.site-header .brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav a {
    color: var(--text);
    transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--green-dark); }
.site-nav a.btn { margin-left: 4px; }

@media (max-width: 700px) {
    .site-nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-play {
    background: var(--green);
    color: #062312;
    box-shadow: 0 8px 22px rgba(22, 232, 90, 0.32);
}
.btn-play:hover { background: var(--green-hover); box-shadow: 0 10px 26px rgba(22, 232, 90, 0.38); }

.btn-store {
    background: var(--forest);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 58, 34, 0.18);
}
.btn-store:hover { background: var(--forest-2); }

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-strong);
    box-shadow: none;
}
.btn-ghost:hover { background: #fafcf8; border-color: #c4ccc1; }

.btn--sm {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 0.88rem;
    border-radius: 12px;
}

/* store buttons row */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.store-buttons--compact { gap: 10px; }
.store-buttons .btn svg { width: 20px; height: 20px; }
.store-buttons .btn.btn-store svg { width: 19px; height: 19px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-block;
    background: var(--mint);
    color: var(--forest);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #dcf9e6 0%, #f6f8f5 100%);
    padding: 72px 0 120px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    position: relative;
}

.hero__copy { max-width: 560px; }
.hero__copy .eyebrow { margin-bottom: 18px; }

.hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--forest);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hl--green {
    color: var(--green-dark);
    background-image: linear-gradient(transparent 62%, rgba(22, 232, 90, 0.35) 62%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 2px;
}
.hl--orange { color: var(--orange); }

.hero__lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 52ch;
    margin-bottom: 28px;
}
.hero__actions { margin-bottom: 22px; }

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.hero__badges svg { color: var(--green-dark); }

.hero__link {
    color: var(--forest);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.hero__link:hover { border-bottom-color: var(--green); }

/* hero visual */
.hero__visual {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__blob {
    position: absolute;
    width: 92%;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    background: linear-gradient(160deg, #1d5a35 0%, var(--forest) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.hero__visual .phone {
    position: absolute;
    height: auto;
    z-index: 1;
    border-radius: 28px;
    filter: drop-shadow(0 30px 50px rgba(18, 58, 34, 0.25));
}
.hero__visual .phone--main {
    width: 62%;
    max-width: 320px;
    left: 56%;
    top: 50%;
    transform: translate(-50%, -48%);
    z-index: 2;
}
.hero__visual .phone--back {
    width: 52%;
    max-width: 270px;
    left: -2%;
    top: 50%;
    transform: translateY(-56%);
    z-index: 1;
}

.hero__visual .chip {
    position: absolute;
    background: #ffffff;
    color: var(--forest);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(18, 58, 34, 0.18);
    z-index: 3;
}
.chip--sol { top: 8%; left: 4%; }
.chip--clp { bottom: 8%; right: 4%; }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__copy { max-width: none; text-align: left; }
    .hero { padding-bottom: 100px; }
}
@media (max-width: 560px) {
    .hero { padding: 48px 0 90px; }
    .hero__visual {
        min-height: 440px;
        max-width: 360px;
        margin: 0 auto;
    }
    .phone--back { display: none; }
    .phone--main { width: 70%; }
    .hero__badges { gap: 6px; }
    .hero__badges li { font-size: 0.78rem; padding: 5px 10px; }
}

/* ---------- Converter section ---------- */
.converter-section {
    position: relative;
    margin-top: -90px;
    padding: 0 0 72px;
    z-index: 5;
}
.converter {
    max-width: 580px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(18, 58, 34, 0.12);
}
.converter__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.converter__head h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    color: var(--forest);
}
.converter__head small { color: var(--muted); font-size: 0.88rem; }
.converter__head small strong { color: var(--text); }

/* fields */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}
.input-shell .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}
.input-shell input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 88px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--forest);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.input-shell input::placeholder { color: #a4afa1; font-weight: 600; }
.input-shell input:hover { background: #f0f4ee; }

.field--sol .input-shell input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25);
    background: #ffffff;
}
.field--clp .input-shell input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 232, 90, 0.22);
    background: #ffffff;
}

.field-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* result */
.result {
    background: var(--orange);
    color: #ffffff;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin: 18px 0;
    box-shadow: 0 14px 28px rgba(255, 122, 26, 0.28);
}
.result-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}
.result-value {
    display: inline-block;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.result-value .unit {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.5em;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}
.result-empty {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

/* actions */
.converter__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.converter__actions .btn-ghost { padding: 11px 18px; }

.rate-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-strong);
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
.rate-note strong { color: var(--text); font-weight: 700; }

@media (max-width: 560px) {
    .converter-section { margin-top: -72px; padding-bottom: 48px; }
    .converter { padding: 22px 20px; }
    .converter__head { flex-direction: column; gap: 4px; align-items: flex-start; }
    .store-buttons,
    .store-buttons--compact {
        flex-direction: column;
        width: 100%;
    }
    .store-buttons .btn,
    .store-buttons--compact .btn { width: 100%; }
}

/* keep header CTA full width free on mobile */
@media (max-width: 560px) {
    .site-header .btn--sm { min-height: 44px; }
}

/* ---------- Generic section ---------- */
.section {
    padding: 72px 0;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--forest);
    margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 560px) {
    .section { padding: 48px 0; }
    .section-head { margin-bottom: 32px; }
}

/* ---------- Showcase ---------- */
.showcase {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.showcase__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}
.showcase__row:last-child { margin-bottom: 0; }
.showcase__row--reverse .showcase__text { order: 2; }
.showcase__row--reverse .showcase__media { order: 1; }

.showcase__text { max-width: 460px; }
.showcase__text .pill { margin-bottom: 16px; }
.showcase__text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--forest);
    margin-bottom: 12px;
}
.showcase__text p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }

.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.pill--green   { background: var(--mint);        color: #086d2c; }
.pill--orange  { background: var(--orange-soft);  color: #b04a0b; }
.pill--blue    { background: var(--blue-soft);    color: #1f4cb0; }
.pill--purple  { background: var(--purple-soft);  color: #5e3fb8; }

/* ticks list */
.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li {
    position: relative;
    padding-left: 32px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mint);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fb64a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

/* media */
.showcase__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
}
.showcase__glow {
    position: absolute;
    width: 78%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.showcase__glow--green   { background: var(--mint-strong); }
.showcase__glow--orange  { background: var(--orange-glow); }
.showcase__glow--blue    { background: var(--blue-glow); }
.showcase__glow--purple  { background: var(--purple-glow); }
.showcase__glow--red     { background: var(--red-glow); }

.showcase__media .phone {
    position: relative;
    z-index: 1;
    width: min(300px, 70%);
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 24px 40px rgba(18, 58, 34, 0.28));
}

@media (max-width: 900px) {
    .showcase__row,
    .showcase__row--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 56px;
    }
    .showcase__row--reverse .showcase__text,
    .showcase__row--reverse .showcase__media { order: initial; }
    .showcase__text { max-width: none; margin: 0 auto; text-align: center; }
    .showcase__text .pill { margin-left: auto; margin-right: auto; }
    .ticks li { text-align: left; }
    .showcase__media { min-height: 420px; }
}

/* ---------- Features grid ---------- */
.grid { display: grid; }
.grid--features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 18px;
}
.feature__icon--green   { background: var(--mint);        color: var(--green-dark); }
.feature__icon--orange  { background: var(--orange-soft);  color: var(--orange); }
.feature__icon--blue    { background: var(--blue-soft);    color: var(--blue); }
.feature__icon--purple  { background: var(--purple-soft);  color: var(--purple); }
.feature__icon--yellow  { background: var(--yellow-soft);  color: var(--yellow-dark); }
.feature__icon--red     { background: var(--red-soft);     color: var(--red); }
.feature h3 {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 6px;
}
.feature p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .grid--features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .grid--features { grid-template-columns: 1fr; }
    .feature { padding: 22px; }
}

/* ---------- Emergencies ---------- */
.emergencies {
    background: linear-gradient(180deg, #fdf3f3 0%, var(--bg) 100%);
}
.emergencies .section-head { margin-bottom: 40px; }

.emergencies__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.emergencies__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
}
.emergencies__media .phone {
    position: relative;
    z-index: 1;
    width: min(300px, 70%);
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 24px 40px rgba(18, 58, 34, 0.28));
}

.emergencies__list { display: flex; flex-direction: column; gap: 28px; }
.country-block { }
.country-label {
    font-weight: 800;
    color: var(--forest);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.emergency {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.emergency:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.emergency__name {
    font-weight: 700;
    font-size: 0.9rem;
}
.emergency__number {
    font-weight: 800;
    font-size: 1.9rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.emergency--carabineros { background: #eef2e6; }
.emergency--carabineros .emergency__name,
.emergency--carabineros .emergency__number { color: var(--em-carab); }

.emergency--bomberos { background: var(--red-soft); }
.emergency--bomberos .emergency__name,
.emergency--bomberos .emergency__number { color: var(--em-bomb); }

.emergency--samu { background: var(--yellow-soft); }
.emergency--samu .emergency__name,
.emergency--samu .emergency__number { color: var(--em-samu); }

.emergency--pdi { background: #e6ecf6; }
.emergency--pdi .emergency__name,
.emergency--pdi .emergency__number { color: var(--em-pdi); }

.emergency--pnp { background: #e7f1e9; }
.emergency--pnp .emergency__name,
.emergency--pnp .emergency__number { color: var(--em-pnp); }

.emergency--otro { background: #f1f4ef; }
.emergency--otro .emergency__name,
.emergency--otro .emergency__number { color: var(--text); }

@media (max-width: 900px) {
    .emergencies__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .emergencies__media { min-height: 420px; }
}

/* ---------- CTA section ---------- */
.cta-section { padding-top: 48px; }
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
    border-radius: 32px;
    padding: 56px 28px;
    text-align: center;
    color: #ffffff;
}
.cta__blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.cta__blob--a {
    width: 380px;
    height: 380px;
    background: rgba(22, 232, 90, 0.18);
    top: -120px;
    right: -100px;
}
.cta__blob--b {
    width: 240px;
    height: 240px;
    background: rgba(255, 122, 26, 0.22);
    bottom: -100px;
    left: -80px;
}
.cta__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}
.cta h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.cta p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.cta .btn-store {
    background: #ffffff;
    color: var(--forest);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.cta .btn-store:hover { background: #f0f7f1; }

@media (max-width: 560px) {
    .cta-section { padding-top: 32px; }
    .cta { padding: 44px 22px; border-radius: 24px; }
    .cta__actions { flex-direction: column; align-items: stretch; }
    .cta__actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--forest-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 28px 0;
    font-size: 0.9rem;
}
.site-footer > .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer-links { display: flex; gap: 18px; }
.site-footer-links a { color: #ffffff; font-weight: 600; }
.site-footer-links a:hover { color: var(--green); }

@media (max-width: 560px) {
    .site-footer > .wrap { justify-content: center; text-align: center; }
    .site-footer-links { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* ---------- Flags (SVG, since Windows has no flag emoji) ---------- */
.flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 3px;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(18, 58, 34, 0.15);
}
.country-label .flag {
    width: 24px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
}
.input-shell .currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Converter actions: Limpiar on top, stores below as a row ---------- */
.converter__actions {
    display: grid;
    gap: 12px;
}
.converter__actions .btn-ghost { width: 100%; }
.converter__actions .store-buttons { flex-wrap: nowrap; }
.converter__actions .store-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 10px;
    font-size: 0.85rem;
}
@media (max-width: 560px) {
    .converter__actions .store-buttons { flex-wrap: wrap; }
}

/* ---------- Emergencies: 2 columns keeps Chile's four cards as a clean 2x2 ---------- */
.emergencies__list .emergency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Inputs already show a ring via box-shadow; avoid the double ring from the global outline */
.input-shell input:focus-visible {
    outline: none;
}

/* ---------- Hero visual on mobile: grid item with only absolute children collapses to 0 width ---------- */
.hero__visual .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
    .hero__visual { width: 100%; }
}
@media (max-width: 560px) {
    .hero__visual { min-height: 520px; }
    .hero__visual .phone--main { left: 50%; width: 64%; transform: translate(-50%, -50%); }
    .chip--sol { top: 4%; left: 0; }
    .chip--clp { bottom: 4%; right: 0; }
}

/* ---------- Contrast: amber on pale yellow was ~2:1; darker amber text keeps the SAMU color identity readable ---------- */
.emergency--samu .emergency__name,
.emergency--samu .emergency__number {
    color: #8a5a00;
}

/* ---------- Converter actions: full-width column, everything centered ---------- */
.converter__actions {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
}
.converter__actions .store-buttons {
    justify-content: center;
    width: 100%;
}
.converter__actions .store-buttons .btn {
    justify-content: center;
}

/* ---------- Live market reference rate ---------- */
.rate-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 10px 0 0;
    padding: 10px 14px;
    background: var(--mint, #e9fbef);
    border-radius: 14px;
    color: #0b2416;
    font-size: 0.88rem;
}
.rate-ref[hidden] { display: none; }
.rate-ref__btn {
    padding: 8px 14px;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: #16e85a;
    color: #062312;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.rate-ref__btn:hover { background: #0fd24e; }

@media (max-width: 560px) {
    .rate-ref { flex-direction: column; align-items: stretch; text-align: center; }
    .rate-ref__btn { width: 100%; }
}
