:root {
    /* Marca */
    --primary: #287BB2;
    --secondary: #52BAFF;
    --accent: #FF6D6C;

    /* Sistema */
    --success: #25D366;

    /* UI */
    --bg: #f5f5f7;
    --card: #ffffff;

    /* Texto */
    --text: #111827;
    --muted: #6b7280;

    /* Bordes */
    --border: #e5e7eb;

    /* Forma */
    --radius: 16px;
}

/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 420px;
    margin: 40px auto;
    padding: 16px;
}

h1, .sub, label, input, button {

    font-family: inherit;
}

/* =========================
   ANIMACIONES (iOS feel)
========================= */
@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================
   CARD
========================= */
.card {
    animation: fadeScaleIn 0.35s ease;
    background: var(--card);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    text-align: left;
}

/* =========================
   IMAGEN
========================= */
.foto {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 14px;
}

/* =========================
   TEXTOS
========================= */
h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.row {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

.tag {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

/* =========================
   BOTONES
========================= */
.btn {
    display: block;
    width: 100%;
    padding: 13px;              /* igual que inputs */
    border-radius: 12px;        /* igual que inputs */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 18px;           /* un poco más de aire */
    text-align: center;
    transition: all 0.18s ease;
}

/* efecto tap tipo iPhone */
.btn:active {
    transform: scale(0.96);
}

button,
input[type="submit"] {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* PRIMARIO */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* SECUNDARIO */
.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* WHATSAPP */
.btn-whatsapp {
    background: var(--success);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* HOVER sutil */
.btn-primary:hover,
.btn-whatsapp:hover {
    opacity: 0.92;
}

.btn-secondary:hover {
    background: #f9fafb;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin: 0; /* 🔥 quitamos interferencia */
    color: var(--text);
}

/* =========================
   INPUTS
========================= */
input,
select {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: #fafafa;
    margin-top: 0; /* importante */
}

input:focus,
select:focus {
    outline: none;
    transform: scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(40,123,178,0.12);
}

/* =========================
   MENSAJES
========================= */
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.ok {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* =========================
   FORM
========================= */
form {
    margin-top: 12px;
}

.link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   UTILIDADES
========================= */

/* Espaciado consistente */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

/* Grid simple */
.grid {
    display: grid;
    gap: 16px;
}

/* Wrapper opcional */
.wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 16px;
}

/* =========================
   HEADER LOGO
========================= */
.header-logo {
    text-align: center;
    margin-bottom: 18px;
}

.header-logo img {
    height: 34px;
    max-width: 140px;
    width: auto;
    display: inline-block;
    opacity: 0.92;
}

.msg {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.form-group {
    display: grid;
    gap: 14px;
}
.divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}
.section-title {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 6px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}