/* ── Conversor de Yenes — estilos de página ───────────────────────────── */
/* Extraído del <style> inline de conversor-yenes.php (refactor 2026-06-17).
   Usa los tokens (--radius-*, --primary-*, --shadow-*, etc.) de reservajapon.css,
   que se carga antes que este fichero. */

/* Hero */
.cy-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: var(--hero-h);
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;
    background: #020617;
}
.cy-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cy-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
}
.cy-hero-overlay h1 {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 .5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.45);
}
.cy-hero-overlay p {
    color: rgba(255,255,255,.92);
    font-size: 1rem;
    margin: 0;
    max-width: 40rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.cy-hero-rate {
    display: inline-block;
    margin-top: .75rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

/* ── Converter card ───────────────────────────────────────────────────── */
.cy-converter-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}
.cy-rate-note {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}
.cy-rate-note strong { color: var(--text-main); }
.cy-conv-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.cy-conv-field {
    flex: 1;
    min-width: 140px;
}
.cy-conv-field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .35rem;
}
/* Mayor especificidad para ganar a reservajapon.css (input { font-size: .9rem }) */
.cy-converter-card .cy-conv-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 1.5rem;
    font-weight: 700;
    padding: .6rem 1rem;
    border: 2px solid #e8e0ec;
    border-radius: var(--radius-sm);
    background: #fafafa;
    color: var(--text-main);
    outline: none;
    transition: border-color .15s, background .15s;
}
.cy-converter-card .cy-conv-input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

/* ── Tabs (tabla rápida) ──────────────────────────────────────────────── */
.cy-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.cy-tab {
    padding: .35rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid #e8e0ec;
    background: #fff;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s;
}
.cy-tab.active, .cy-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-soft);
}

/* ── Reference table ──────────────────────────────────────────────────── */
.cy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.cy-table th {
    background: var(--primary-soft);
    text-align: left;
    padding: .55rem 1rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(190,137,166,.3);
}
.cy-table td {
    padding: .5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.cy-table tr:last-child td { border-bottom: none; }
.cy-table tr:hover td { background: #fdf8fb; }
.cy-amount {
    font-weight: 700;
    font-family: monospace;
    font-size: .95rem;
}

/* ── Budget calculator ────────────────────────────────────────────────── */
.cy-calc-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 2rem;
}
.cy-calc-inputs {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.cy-calc-field {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
}
.cy-calc-field label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}
.cy-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 2px solid #e8e0ec;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fafafa;
    width: 100%;
}
.cy-stepper-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: .4rem .75rem;
    cursor: pointer;
    line-height: 1;
    transition: background .12s;
}
.cy-stepper-btn:hover { background: var(--primary-soft); }
.cy-stepper-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 2.5rem;
    text-align: center;
    user-select: none;
}
.cy-style-picker {
    display: flex;
    gap: .4rem;
    justify-content: center;
}
.cy-style-btn {
    border: 1.5px solid #e8e0ec;
    background: #fff;
    border-radius: var(--radius-pill);
    font-size: .84rem;
    font-weight: 700;
    padding: .4rem .9rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s;
}
.cy-style-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.cy-style-btn:not(.active):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-soft);
}
.cy-calc-result { margin-top: .5rem; }
.cy-calc-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cy-calc-result-table th {
    background: var(--primary-soft);
    padding: .55rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}
.cy-calc-result-table th:not(:first-child) { text-align: right; }
.cy-calc-result-table td {
    padding: .6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.cy-calc-result-table td:not(:first-child) { text-align: right; font-weight: 600; }
.cy-calc-total td {
    background: var(--primary-soft);
    font-weight: 700 !important;
    font-size: 1rem;
    border-bottom: none;
    border-top: 2px solid rgba(190,137,166,.4);
}
.cy-calc-disclaimer {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .75rem;
    margin-bottom: 0;
}
.cy-calc-disclaimer a { color: var(--primary-color); }

/* ── Tip cards ────────────────────────────────────────────────────────── */
.cy-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.cy-tip-card {
    background: var(--bg-card);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cy-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.cy-tip-title {
    font-weight: 700;
    font-size: .93rem;
    margin-bottom: .35rem;
    color: var(--text-main);
}
.cy-tip-text {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ── Info box ─────────────────────────────────────────────────────────── */
.cy-info-box {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: .93rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* ── Related tools ────────────────────────────────────────────────────── */
.cy-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.cy-tool-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cy-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.cy-tool-card-title { font-weight: 700; color: var(--text-main); margin-bottom: .35rem; }
.cy-tool-card-desc  { font-size: .85rem; color: var(--text-muted); }

/* ── Planner strip spacing ────────────────────────────────────────────── */
/* The global .section has margin-bottom:2.5rem; .planner-strip has none,
   so we mirror the same gap to keep consistent rhythm between sections.  */
.planner-strip { margin-bottom: 2.5rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cy-hero { min-height: var(--hero-h-mobile); }
    /* Fix: column + flex-end dejaba los campos a mitad de ancho; stretch los expande al 100% */
    .cy-conv-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .75rem; }
    /* Fix iOS Safari: font-size < 16px activa zoom automático al enfocar el input */
    .cy-converter-card .cy-conv-input { font-size: 1rem; }
    .cy-converter-card, .cy-calc-card { padding: 1.25rem; }
    .cy-calc-inputs { flex-direction: column; gap: 1rem; align-items: stretch; }
    .cy-style-picker { flex-wrap: wrap; width: 100%; }
    .cy-tips-grid { grid-template-columns: 1fr; }
    .cy-tools-grid { grid-template-columns: 1fr; }
}
