/* ===== Amigos con patas (mobile first: base = celular; se amplía con min-width) ===== */
.am-shell { --am-line: rgba(255, 255, 255, .2); --am-card: rgba(5, 29, 8, .78); --am-text: #f4faf2; --am-mute: #d3e3cf; --am-accent: #8dff62; max-width: 1180px; margin: 0 auto; color: var(--am-text); }
.am-shell a { color: var(--am-accent); }

.am-hero { display: grid; gap: 16px; padding: 20px 16px; margin-bottom: 14px; border: 1px solid rgba(108, 255, 58, .26); border-radius: 18px; background: linear-gradient(135deg, rgba(8, 62, 14, .92), rgba(3, 24, 7, .94)); box-shadow: 0 16px 40px rgba(0, 0, 0, .22); }
.am-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--am-accent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.am-kicker::before { content: ""; width: 24px; height: 2px; background: var(--am-accent); }
.am-hero h1 { margin: 6px 0 0; color: #fff; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; }
.am-lead { margin: 10px 0 0; max-width: 560px; color: #e8f3e4; font-size: .98rem; line-height: 1.55; }
.am-hero__actions { display: grid; gap: 10px; }
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; color: #fff !important; font-weight: 700; text-decoration: none; text-align: center; transition: border-color .15s, background-color .15s, transform .15s; }
.am-btn b { padding: 1px 9px; border-radius: 999px; background: rgba(108, 255, 58, .22); color: var(--am-accent); font-size: .85rem; }
.am-btn:hover, .am-btn:focus-visible { border-color: var(--am-accent); background: rgba(108, 255, 58, .1); }
.am-btn--main { border-color: transparent; background: var(--primary); color: #052a00 !important; }
.am-btn--main:hover, .am-btn--main:focus-visible { background: var(--primary); filter: brightness(1.1); transform: translateY(-1px); }

.am-aviso { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid rgba(255, 209, 102, .5); border-radius: 14px; background: rgba(255, 209, 102, .08); }
.am-aviso__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffd166; color: #3a2a00; font-weight: 800; }
.am-aviso__txt strong { color: #ffe7a0; font-size: .95rem; }
.am-aviso__txt p { margin: 3px 0 0; color: var(--am-text); font-size: .93rem; line-height: 1.5; }
.am-aviso__go { grid-column: 2; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.am-aviso__go:hover { text-decoration: underline; }

.am-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.am-main { display: grid; gap: 16px; min-width: 0; }
.am-card { padding: 16px; border: 1px solid var(--am-line); border-radius: 16px; background: var(--am-card); }
.am-card h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.am-card--calm p { margin: 8px 0 0; color: var(--am-mute); line-height: 1.55; }
.am-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.am-link { font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.am-link:hover { text-decoration: underline; }
.am-hint { margin: 10px 0 0; color: var(--am-mute); font-size: .86rem; }
.am-pets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.am-pets a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid var(--am-line); text-decoration: none; }
.am-pets img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.am-pets a:hover img, .am-pets a:focus-visible img { transform: scale(1.04); }
.am-pets span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-weight: 700; font-size: .92rem; }

.am-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
.am-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--am-line); border-left: 4px solid var(--am-accent); border-radius: 14px; background: var(--am-card); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
a.am-tile:hover, a.am-tile:focus-visible { transform: translateY(-2px); border-color: rgba(108, 255, 58, .7); }
.am-tile h3 { margin: 0; color: #fff; font-size: 1.02rem; }
.am-tile p { margin: 0; color: var(--am-mute); font-size: .88rem; line-height: 1.45; }
.am-tile__go { margin-top: auto; padding-top: 6px; color: var(--am-accent); font-weight: 700; font-size: .85rem; }
.am-tile--soon { border-left-color: rgba(255, 255, 255, .25); opacity: .72; }
.am-tile--soon .am-tile__go { color: var(--am-mute); }

/* Formulario */
.am-form { padding: 18px 16px; border: 1px solid var(--am-line); border-radius: 16px; background: var(--am-card); scroll-margin-top: 80px; }
.am-form h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.am-form__sub { margin: 6px 0 14px; color: var(--am-mute); font-size: .88rem; line-height: 1.45; }
.am-fields { max-width: none; width: 100%; gap: 0; }
.am-fields fieldset { margin: 0 0 14px; padding: 12px 14px 4px; border: 1px solid var(--am-line); border-radius: 12px; background: rgba(0, 0, 0, .16); min-width: 0; }
.am-fields legend { padding: 0 6px; color: #fff; font-weight: 700; font-size: .95rem; }
.am-fields legend small { color: var(--am-mute); font-weight: 400; }
.am-fields .form-group { margin-bottom: 12px; }
.am-fields label:not(.custom-file-upload-btn) { display: block; margin-bottom: 4px; color: #fff; font-weight: 600; font-size: .9rem; }
.amigos-page .am-fields input[type="text"], .amigos-page .am-fields input[type="tel"], .amigos-page .am-fields textarea { min-height: 48px; box-sizing: border-box; }
.am-fields input:focus-visible, .am-fields textarea:focus-visible { outline: 3px solid rgba(108, 255, 58, .5); outline-offset: 1px; border-color: var(--am-accent); }
.amigos-page .am-fields .custom-file-upload-btn { min-height: 48px; display: inline-flex; align-items: center; box-sizing: border-box; }
.amigos-page .am-fields .file-name-display { min-width: 0; }
.am-fields button[type="submit"] { width: 100%; min-height: 50px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; }

@media (min-width: 600px) {
    .am-hero { padding: 24px 26px; }
    .am-hero__actions { grid-template-columns: repeat(2, auto); justify-content: start; }
    .am-pets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .am-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .am-aviso { grid-template-columns: auto 1fr auto; align-items: center; }
    .am-aviso__go { grid-column: auto; }
}
@media (min-width: 980px) {
    .am-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 26px 32px; }
    .am-hero__actions { grid-template-columns: 1fr; min-width: 270px; }
    .am-layout { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .am-btn, .am-tile, .am-pets img { transition: none; } }

/* Ajustes: el estilo global de .register-form y de los párrafos no debe duplicar cajas ni agrandar el texto */
.am-shell .register-form.am-fields { background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; margin: 0; max-width: none; border-radius: 0; }
.am-shell p { font-size: .95rem; line-height: 1.5; margin-top: 0; }
.am-shell .am-lead { font-size: .98rem; line-height: 1.55; margin: 10px 0 0; }
.am-shell .am-form__sub { font-size: .88rem; margin: 6px 0 14px; }
.am-shell .am-aviso__txt p { font-size: .93rem; margin: 3px 0 0; }
.am-shell .am-hint { font-size: .86rem; margin: 10px 0 0; }
.am-shell .am-tile p { font-size: .88rem; margin: 0; }
.am-shell .am-card--calm p { margin: 8px 0 0; }
.am-shell h2 { font-size: 1.15rem; margin: 0; }
.am-shell .am-form h2 { font-size: 1.2rem; }
.am-card__head { flex-wrap: wrap; }
.am-card__head h2 { min-width: 0; }
.am-aviso__go span, .am-link span { margin-left: 4px; }
@media (min-width: 980px) { .am-shell p { font-size: 1rem; } .am-shell .am-lead { font-size: 1.05rem; } }

/* Cuatro entradas de la sección */
.am-access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.am-acc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--am-line); border-radius: 14px; background: var(--am-card); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.am-acc:hover, a.am-acc:focus-visible { transform: translateY(-3px); border-color: rgba(108, 255, 58, .7); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.am-acc__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b3a12; }
.am-acc__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.am-acc:hover .am-acc__img img { transform: scale(1.05); }
.am-acc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(2, 20, 5, .55)); }
.am-acc__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.am-acc__body strong { color: #fff; font-size: .98rem; line-height: 1.25; }
.am-acc__body > span { color: var(--am-mute); font-size: .82rem; line-height: 1.4; }
.am-acc__body em { margin-top: auto; padding-top: 6px; font-style: normal; color: var(--am-accent); font-weight: 700; font-size: .82rem; }
.am-acc__body em i { font-style: normal; margin-left: 2px; }
.am-acc.is-soon { opacity: .78; cursor: default; }
.am-acc.is-soon .am-acc__img img { filter: grayscale(.55); }
.am-acc.is-soon em { color: var(--am-mute); font-weight: 600; }
@media (min-width: 760px) { .am-access { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .am-acc__body strong { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .am-acc, .am-acc__img img { transition: none; } }

/* Las cuatro entradas viven en la columna izquierda, frente al formulario, y se reparten el alto para quedar simétricas con él */
.am-main { display: flex; flex-direction: column; }
.am-main > .am-access { margin: 0; }
@media (min-width: 980px) {
    .am-layout { align-items: stretch; }
    .am-main > .am-access { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
    .am-acc__img { aspect-ratio: auto; flex: 1 1 auto; min-height: 120px; }
    .am-acc__body { flex: 0 0 auto; }
}
.amigos-page .am-fields button[type="submit"] { background: var(--primary); color: #052a00; border: 0; }

