/* =========================================================
   ANIMAL FOOD · TIPS Y MÁS
   Encabezado con tip rápido, transición interactiva, preguntas con el
   perrito y tips de vísceras. Cada bloque cabe en una pantalla.
   ========================================================= */
.af-tips .af-wrap { width: min(1320px, 100% - 2 * clamp(16px, 3.2vw, 56px)); }
.af-tips .af-sec { padding-block: clamp(40px, 7vh, 84px); }
.af-tips .af-head { margin-bottom: clamp(18px, 3.4vh, 36px); }
.af-tips .af-head .af-lead { margin-bottom: 0; }

/* ================= Encabezado ================= */
.af-thero {
	position: relative; overflow: hidden; color: #fff;
	padding: clamp(34px, 6vh, 70px) 0 clamp(90px, 10vw, 130px);
	background: var(--af-grano), radial-gradient(55% 70% at 90% 30%, rgba(56, 182, 255, .55), transparent 62%), radial-gradient(45% 60% at 0% 100%, rgba(255, 156, 0, .25), transparent 60%), linear-gradient(150deg, #1769e0 0%, #1155c9 45%, #0c3c8c 100%);
}
.af-thero .af-deco { color: #fff; opacity: .1; }
.af-thero .af-burbujas span { opacity: .35; }
.af-thero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.af-thero__t { font-family: var(--af-f-titulo); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.02; color: #fff; margin: 0 0 16px; text-shadow: 0 6px 30px rgba(12, 60, 140, .35); }
.af-thero__t em { font-style: normal; color: var(--af-naranja); }
.af-thero__p { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .9); margin: 0 0 22px; max-width: 580px; }

/* Índice de la página */
.af-thero__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.af-thero__nav a {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important;
	background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important;
	font-family: var(--af-f-sub); font-weight: 600; font-size: .92rem; padding: 9px 16px 9px 10px; border-radius: 999px;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .25s, color .25s, transform .25s;
	animation: af-pill 3.4s ease-in-out infinite; animation-delay: calc(var(--d) * .3s);
}
.af-thero__nav a span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-size: .95rem; }
.af-thero__nav a:hover { background: #fff; color: var(--af-oscuro) !important; transform: translateY(-3px); }

/* Tip rápido: tarjetas apiladas */
.af-thero__media { display: grid; place-items: center; }
.af-tdia { position: relative; width: min(100%, 460px); padding: 18px 10px 10px; animation: af-flota2 6s ease-in-out infinite; }
.af-tdia__hoja { position: absolute; inset: 18px 10px 10px; border-radius: 30px; background: #fff; }
.af-tdia__hoja--2 { transform: rotate(5deg) translate(10px, 8px); opacity: .55; }
.af-tdia__hoja--3 { transform: rotate(-6deg) translate(-12px, 12px); opacity: .3; background: var(--af-naranja); }
.af-tdia__card {
	position: relative; background: #fff; color: var(--af-texto); border-radius: 30px; padding: clamp(20px, 2.4vw, 30px);
	box-shadow: 0 40px 70px -30px rgba(5, 20, 60, .7); transform: rotate(-1.5deg);
}
.af-tdia__card::before { content: ''; position: absolute; inset: 9px; border: 2.5px dashed var(--af-azul-2); border-radius: 23px; pointer-events: none; }
.af-tdia__pin { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: 2.2rem; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); z-index: 3; }
.af-tdia__top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.af-tdia__sello { font-family: var(--af-f-sub); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--af-naranja-2); background: rgba(255, 156, 0, .14); padding: 6px 12px; border-radius: 999px; }
.af-tdia__num { font-family: var(--af-f-titulo); color: var(--af-gris); font-size: 1rem; }
.af-tdia__num b { font-weight: 400; color: var(--af-azul-p); font-size: 1.35rem; }
.af-tdia__items { position: relative; display: grid; min-height: 190px; }
.af-tdia__item { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateX(30px) rotate(2deg); transition: opacity .45s, transform .55s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.af-tdia__item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.af-tdia__em { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 24px; font-size: 2.4rem; background: linear-gradient(145deg, #fff, #dcecff); box-shadow: inset 0 -5px 0 rgba(23, 105, 224, .14), 0 14px 22px -14px rgba(23, 105, 224, .6); margin-bottom: 12px; }
.af-tdia__item.is-on .af-tdia__em { animation: af-bota 2.6s ease-in-out infinite; }
.af-tdia__t { font-family: var(--af-f-titulo); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; color: var(--af-oscuro); margin: 0 0 6px; }
.af-tdia__item p { margin: 0; color: var(--af-gris); font-size: 1rem; line-height: 1.5; }
.af-tdia__pie { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.af-tdia__barra { flex: 1; height: 8px; border-radius: 999px; background: var(--af-azul); overflow: hidden; }
.af-tdia__barra i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--af-naranja), var(--af-naranja-2)); }
.af-tdia__barra i.is-corre { width: 100%; transition: width var(--t, 5s) linear; }
.af-tdia__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font: 700 1.4rem/1 var(--af-f-sub); color: #fff; background: var(--af-oscuro); transition: background .25s, transform .25s; }
.af-tdia__btn:hover { background: var(--af-naranja); transform: scale(1.08); }

/* ================= Cómo empezar (blanco) ================= */
.af-tips .af-empezar .af-pasos { gap: 26px var(--af-gap); }

/* ================= Transición (azul) ================= */
.af-tr__caja {
	position: relative; max-width: 1080px; margin: 0 auto; background: #fff; color: var(--af-texto);
	border-radius: 36px; padding: clamp(18px, 2.6vw, 34px); box-shadow: 0 40px 80px -40px rgba(5, 20, 60, .75);
}
.af-tr__caja::before { content: ''; position: absolute; inset: 10px; border: 3px dashed var(--af-azul-2); border-radius: 28px; pointer-events: none; }
.af-tr__pasos { position: relative; list-style: none; margin: 0 0 clamp(16px, 2.6vh, 26px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.af-tr__pasos::before { /* camino que avanza */
	content: ''; position: absolute; left: 12%; right: 12%; top: 30px; height: 4px; z-index: 0; border-radius: 4px;
	background: repeating-linear-gradient(90deg, var(--af-naranja) 0 12px, transparent 12px 24px); background-size: 48px 4px; animation: af-tr-camino 1.2s linear infinite;
}
@keyframes af-tr-camino { to { background-position: 48px 0; } }
.af-tr__pasos li { position: relative; z-index: 1; }
.af-tr__paso {
	width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
	background: none; border: 0; padding: 0 4px; font-family: var(--af-f-sub); color: var(--af-oscuro);
}
.af-tr__bola {
	display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-size: 1.7rem;
	background: var(--af-azul); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--af-azul-2); transition: all .35s cubic-bezier(.3, 1.6, .5, 1);
}
.af-tr__paso strong { font-size: .95rem; }
.af-tr__paso small { font-family: var(--af-f-titulo); font-size: 1.05rem; color: var(--af-gris); }
.af-tr__paso:hover .af-tr__bola { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--af-naranja); }
.af-tr__paso.is-on .af-tr__bola { background: linear-gradient(135deg, var(--af-naranja), var(--af-naranja-2)); transform: scale(1.12); box-shadow: 0 0 0 3px var(--af-naranja), 0 14px 24px -10px rgba(255, 122, 0, .8); animation: af-bota 2.4s ease-in-out infinite; }
.af-tr__paso.is-on small { color: var(--af-naranja-2); }
.af-tr__paso.is-hecho .af-tr__bola { background: #dff3e6; box-shadow: 0 0 0 2px #25d366; }

.af-tr__cuerpo { position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(20px, 4vw, 54px); align-items: center; }
@property --af-tp { syntax: '<number>'; inherits: true; initial-value: 25; }
.af-tr__plato {
	--af-tp: var(--p); position: relative; width: min(100%, 30vh, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
	background: conic-gradient(from 0deg, var(--af-naranja-2) 0 calc(var(--af-tp) * 1%), #c9dcf5 calc(var(--af-tp) * 1%) 100%);
	box-shadow: 0 0 0 12px #fff, 0 0 0 16px var(--af-azul-2), 0 30px 50px -20px rgba(15, 35, 80, .5);
	transition: --af-tp 1s cubic-bezier(.3, 1.2, .5, 1); display: grid; place-items: center;
}
.af-tr__aro { position: absolute; inset: -30px; border-radius: 50%; border: 2px dashed var(--af-azul-2); animation: af-giro 30s linear infinite; }
.af-tr__centro { width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; box-shadow: inset 0 6px 14px rgba(15, 35, 80, .1); }
.af-tr__centro b { font-family: var(--af-f-titulo); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--af-naranja-2); }
.af-tr__centro small { font-family: var(--af-f-sub); font-weight: 600; font-size: .8rem; color: var(--af-gris); }
.af-tr__plato.is-pum { animation: af-pum .5s cubic-bezier(.3, 1.6, .5, 1); }

.af-tr__info { display: grid; }
.af-tr__panel { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s; pointer-events: none; }
.af-tr__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.af-tr__etq { display: inline-block; font-family: var(--af-f-sub); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--af-azul-p); background: var(--af-azul); padding: 5px 12px; border-radius: 999px; }
.af-tr__panel h3 { font-family: var(--af-f-titulo); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--af-oscuro); margin: 10px 0 6px; }
.af-tr__panel p { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--af-gris); max-width: 520px; }
.af-tr__ley { grid-row: 2; list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--af-f-sub); font-weight: 600; font-size: .85rem; color: var(--af-oscuro); }
.af-tr__ley li { display: inline-flex; align-items: center; gap: 6px; }
.af-tr__ley i { width: 14px; height: 14px; border-radius: 4px; }
.af-tr__ley i.a { background: var(--af-naranja-2); }
.af-tr__ley i.b { background: #c9dcf5; }
.af-tr__nota { grid-row: 3; margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; background: var(--af-crema); font-size: .9rem; color: var(--af-oscuro); }

/* ================= Artículos (blanco) ================= */
.af-tips .af-blog-latest { position: relative; overflow: hidden; background: #fff; padding-block: clamp(40px, 7vh, 84px); }

/* ================= Preguntas (azul) ================= */
.af-tq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.af-tq__lado { text-align: center; }
.af-tq__lado .af-h2 { margin-bottom: 4px; }
.af-tq__perro { position: relative; width: min(100%, 240px, 28vh); margin: 40px auto 18px; }
.af-tq__halo { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .3) 0 40%, rgba(255, 156, 0, .18) 55%, transparent 70%); animation: af-m-halo 5s ease-in-out infinite; }
.af-tq__cara, .af-tq__cara img { position: relative; display: block; width: 100%; height: auto; }
.af-tq__cara { animation: af-tq-ladea 4s ease-in-out infinite; transform-origin: 50% 85%; }
.af-tq__cara img { filter: drop-shadow(0 16px 20px rgba(5, 20, 60, .35)); }
@keyframes af-tq-ladea { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-10px); } }
@keyframes af-m-halo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.af-tq__globo {
	position: absolute; z-index: 3; left: 58%; top: -2%; white-space: nowrap; background: #fff; color: var(--af-oscuro);
	font-family: var(--af-f-sub); font-weight: 700; font-size: .88rem; padding: 8px 13px; border-radius: 18px 18px 18px 4px;
	box-shadow: 0 14px 26px -12px rgba(5, 20, 60, .6); animation: af-ingflot 4s ease-in-out infinite;
}
.af-tq__q { position: absolute; z-index: 2; font-family: var(--af-f-titulo); color: var(--af-naranja); font-size: 2.4rem; text-shadow: 0 4px 0 rgba(5, 20, 60, .25); animation: af-tq-q 3s ease-in-out infinite; }
.af-tq__q--1 { left: -6%; top: 10%; }
.af-tq__q--2 { right: -8%; top: 36%; animation-delay: -1s; font-size: 1.9rem; color: #fff; }
.af-tq__q--3 { left: 4%; bottom: 4%; animation-delay: -2s; font-size: 2rem; }
@keyframes af-tq-q { 0%, 100% { transform: translateY(0) rotate(-10deg) scale(1); opacity: .85; } 50% { transform: translateY(-14px) rotate(10deg) scale(1.15); opacity: 1; } }
.af-tq__lista { gap: 10px; }
.af-tq .af-faq__item { border: 2px solid transparent; transition: border-color .25s, transform .25s; }
.af-tq .af-faq__item:hover { transform: translateX(4px); }
.af-tq .af-faq__item[open] { border-color: var(--af-naranja); }
.af-tq .af-faq__item summary { padding: 16px 0; justify-content: flex-start; }
.af-tq .af-faq__item summary .af-faq__mas { margin-left: auto; }
.af-tq__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--af-azul); color: var(--af-azul-p); font-family: var(--af-f-titulo); font-weight: 400; font-size: 1rem; }
.af-tq .af-faq__item[open] .af-tq__n { background: var(--af-naranja); color: #fff; }
.af-tq .af-faq__item p { margin-bottom: 16px; padding-left: 48px; }
.af-tq .af-faq__item[open] p { animation: af-entra .4s ease both; }

/* ================= Tips de vísceras (blanco) ================= */
.af-tv__grid { list-style: none; margin: 0 auto clamp(20px, 3vh, 30px); padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--af-gap); }
.af-tv__card {
	position: relative; background: #fff; border: 2px solid #e6eefb; border-radius: 30px; padding: 34px 24px 22px; text-align: center;
	box-shadow: 0 24px 40px -30px rgba(15, 35, 80, .6); transition: border-color .25s, box-shadow .25s;
}
.af-tv__card:hover { border-color: var(--af-azul-p); box-shadow: 0 30px 50px -28px rgba(23, 105, 224, .6); }
.af-tv__card--n { background: var(--af-grano), radial-gradient(80% 80% at 100% 0%, #ffc15a, transparent 60%), linear-gradient(150deg, var(--af-naranja), var(--af-naranja-2)); border-color: transparent; color: #fff; transform: translateY(-12px); }
.af-tv__num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--af-azul-p); color: #fff; font-family: var(--af-f-titulo); font-size: 1.2rem; border: 4px solid #fff; }
.af-tv__card--n .af-tv__num { background: var(--af-oscuro); }
.af-tv__ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--af-azul); box-shadow: 0 0 0 8px rgba(23, 105, 224, .07); margin-bottom: 10px; }
.af-tv__ico span { font-size: 2.6rem; animation: af-bota 3s ease-in-out infinite; }
.af-tv__card:nth-child(2) .af-tv__ico span { animation-delay: -1s; }
.af-tv__card:nth-child(3) .af-tv__ico span { animation-delay: -2s; }
.af-tv__card--n .af-tv__ico { background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 8px rgba(255, 255, 255, .1); }
.af-tv__card h3 { font-family: var(--af-f-titulo); font-weight: 400; font-size: 1.65rem; color: var(--af-oscuro); margin: 4px 0 6px; }
.af-tv__card--n h3 { color: #fff; }
.af-tv__card p { margin: 0 0 14px; color: var(--af-gris); line-height: 1.5; }
.af-tv__card--n p { color: rgba(255, 255, 255, .92); }
.af-tv__card small { display: inline-block; font-family: var(--af-f-sub); font-weight: 600; font-size: .8rem; color: var(--af-oscuro); background: var(--af-azul); border-radius: 999px; padding: 5px 12px; }
.af-tv__card--n small { background: rgba(255, 255, 255, .22); color: #fff; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
	.af-thero__grid { grid-template-columns: 1fr; text-align: center; }
	.af-thero__p { margin-inline: auto; }
	.af-thero__nav { justify-content: center; }
	.af-tdia { width: min(100%, 420px); margin: 6px auto 0; }
	.af-tdia__item { align-items: center; text-align: center; }
	.af-tq__grid { grid-template-columns: 1fr; }
	.af-tq__perro { width: 150px; margin: 34px auto 12px; }
	.af-tq__globo { left: auto; right: -46%; top: -12%; font-size: .78rem; }
}
@media (max-width: 760px) {
	.af-tr__cuerpo { grid-template-columns: 1fr; text-align: center; }
	.af-tr__plato { width: min(44vw, 160px); }
	.af-tr__aro { inset: -18px; }
	.af-tr__panel p { margin-inline: auto; }
	.af-tr__ley { justify-content: center; }
	.af-tv__grid { grid-template-columns: 1fr; max-width: 440px; gap: 28px; }
	.af-tv__card--n { transform: none; }
	.af-tv__card { display: grid; grid-template-columns: auto 1fr; text-align: left; column-gap: 16px; padding: 24px 18px 18px; align-items: center; }
	.af-tv__ico { grid-row: 1 / 4; width: 66px; height: 66px; margin: 0; }
	.af-tv__ico span { font-size: 2rem; }
	.af-tv__card h3, .af-tv__card p { margin: 0; }
	.af-tv__card small { justify-self: start; margin-top: 8px; }
	.af-tv__num { left: 24px; transform: none; }
}
@media (max-width: 600px) {
	.af-thero { padding-bottom: 80px; }
	.af-thero__t { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
	.af-thero__p { font-size: .95rem; margin-bottom: 16px; }
	.af-thero__nav { gap: 6px; }
	.af-thero__nav a { font-size: .78rem; padding: 6px 12px 6px 6px; }
	.af-thero__nav a span { width: 22px; height: 22px; font-size: .8rem; }
	.af-tdia__items { min-height: 168px; }
	.af-tdia__em { width: 58px; height: 58px; font-size: 1.9rem; border-radius: 18px; }
	.af-tdia__item p { font-size: .9rem; }
	.af-tr__caja { border-radius: 26px; padding: 16px 12px; }
	.af-tr__caja::before { inset: 6px; border-radius: 20px; }
	.af-tr__pasos { gap: 4px; }
	.af-tr__pasos::before { top: 22px; }
	.af-tr__bola { width: 46px; height: 46px; font-size: 1.25rem; border-width: 3px; }
	.af-tr__paso strong { font-size: .72rem; }
	.af-tr__paso small { font-size: .85rem; }
	.af-tr__panel h3 { font-size: 1.5rem; margin: 8px 0 4px; }
	.af-tr__panel p { font-size: .9rem; }
	.af-tr__nota { font-size: .8rem; }
	.af-tq .af-faq__item summary { font-size: .92rem; gap: 10px; }
	.af-tq__n { width: 26px; height: 26px; font-size: .85rem; }
	.af-tq .af-faq__item p { padding-left: 0; font-size: .9rem; }
	.af-tq__q { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
	.af-tdia, .af-tdia *, .af-tr__pasos::before, .af-tr__aro, .af-tr__paso.is-on .af-tr__bola, .af-tq__perro *, .af-tv__ico span, .af-thero__nav a { animation: none !important; }
}
