/* =========================================================
   ANIMAL FOOD · CONTACTO
   ========================================================= */
.af-contacto-pg .af-wrap { width: min(1320px, 100% - 2 * clamp(16px, 3.2vw, 56px)); }
.af-contacto-pg .af-sec { padding-block: clamp(40px, 7vh, 84px); }
.af-contacto-pg .af-head { margin-bottom: clamp(18px, 3.4vh, 36px); }

/* ================= Encabezado ================= */
.af-chero {
	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(37, 211, 102, .22), transparent 60%), linear-gradient(150deg, #1769e0 0%, #1155c9 45%, #0c3c8c 100%);
}
.af-chero .af-deco { color: #fff; opacity: .1; }
.af-chero .af-burbujas span { opacity: .35; }
.af-chero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.af-chero__t { font-family: var(--af-f-titulo); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; color: #fff; margin: 0 0 16px; text-shadow: 0 6px 30px rgba(12, 60, 140, .35); }
.af-chero__t em { font-style: normal; color: var(--af-naranja); }
.af-chero__p { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .9); margin: 0 0 24px; max-width: 560px; }
.af-chero__media { position: relative; display: grid; place-items: center; }

/* Teléfono con chat */
.af-tel {
	position: relative; width: min(100%, 340px); border-radius: 36px; background: #0f2350; padding: 10px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(5, 20, 60, .9); transform: rotate(3deg);
	animation: af-flota2 6s ease-in-out infinite;
}
.af-tel__barra { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; border-radius: 28px 28px 8px 8px; padding: 12px 14px; }
.af-tel__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; }
.af-tel__avatar picture, .af-tel__avatar img { display: block; width: 34px; height: 34px; }
.af-tel__barra strong { display: block; font-family: var(--af-f-sub); font-size: .95rem; }
.af-tel__barra small { font-size: .74rem; opacity: .85; }
.af-tel__chat {
	display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 14px 12px 16px; border-radius: 8px 8px 28px 28px;
	background: #ece5dd radial-gradient(circle at 1px 1px, rgba(7, 94, 84, .08) 1px, transparent 1.5px) 0 0/16px 16px;
}
.af-tel__msg {
	max-width: 82%; margin: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #fff; color: #222;
	font-family: var(--af-f-texto); font-size: .86rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
	opacity: 0; transform: translateY(10px) scale(.96); animation: af-tel-msg 12s ease-in-out infinite; animation-delay: calc(var(--i) * 1.4s);
}
.af-tel__msg--yo { align-self: flex-end; background: #dcf8c6; border-radius: 14px 4px 14px 14px; }
.af-tel__escribe { align-self: flex-start; margin: 0; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #fff; opacity: 0; animation: af-tel-msg 12s ease-in-out infinite; animation-delay: calc(var(--i) * 1.4s); }
.af-tel__escribe i { width: 7px; height: 7px; border-radius: 50%; background: #9aa; animation: af-tel-punto 1s ease-in-out infinite; }
.af-tel__escribe i:nth-child(2) { animation-delay: .15s; }
.af-tel__escribe i:nth-child(3) { animation-delay: .3s; }
@keyframes af-tel-msg { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 5%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes af-tel-punto { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.af-chero__flot { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 8px 10px rgba(5, 20, 60, .35)); animation: af-ingflot 4s ease-in-out infinite; }
.af-chero__flot--1 { top: 4%; left: 6%; }
.af-chero__flot--2 { bottom: 8%; right: 6%; animation-delay: -2s; }

/* ================= Canales + formulario ================= */
.af-cf__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.af-cf__info .af-lead { margin-bottom: 20px; }
.af-cf__canales { display: grid; gap: 12px; }
.af-cf__canal {
	--c: var(--af-naranja); position: relative; display: flex; align-items: center; gap: 16px; text-decoration: none !important;
	background: #fff; border: 2px solid #e6eefb; border-radius: 24px; padding: 14px 18px 14px 14px; color: var(--af-oscuro) !important;
	box-shadow: 0 18px 30px -26px rgba(15, 35, 80, .6); transition: border-color .25s, transform .25s, box-shadow .25s;
	animation: af-pill 3.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .35s);
}
.af-cf__canal--wa { --c: #25d366; }
.af-cf__canal--fb { --c: #1877f2; }
.af-cf__canal--ig { --c: #dd2a7b; }
.af-cf__canal--mail { --c: var(--af-azul-p); }
.af-cf__canal--zona { --c: var(--af-naranja); animation: none; }
a.af-cf__canal:hover { border-color: var(--c); transform: translateX(6px); box-shadow: 0 22px 34px -22px color-mix(in srgb, var(--c) 70%, #0f2350); }
.af-cf__ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 10px 18px -10px var(--c); }
.af-cf__ico .af-ico { width: 26px; height: 26px; font-size: 1.4rem; display: grid; place-items: center; }
.af-cf__canal--ig .af-cf__ico { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.af-cf__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-cf__txt small { font-family: var(--af-f-sub); font-size: .74rem; color: var(--af-gris); }
.af-cf__txt strong { font-family: var(--af-f-sub); font-size: 1.12rem; line-height: 1.2; }
.af-cf__txt em { font-style: normal; font-size: .8rem; color: var(--c); font-weight: 600; }
.af-cf__canal--zona .af-cf__txt em { color: var(--af-naranja-2); }
.af-cf__ir { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); transition: transform .25s, background .25s, color .25s; }
.af-cf__ir .af-ico { width: 18px; height: 18px; }
a.af-cf__canal:hover .af-cf__ir { background: var(--c); color: #fff; transform: translateX(3px); }

/* Formulario */
.af-cf__form { position: relative; border-top: 0 !important; border-radius: 32px !important; padding: clamp(20px, 2.6vw, 32px) !important; box-shadow: 0 40px 70px -40px rgba(15, 35, 80, .6) !important; border: 2px solid #e6eefb !important; overflow: hidden; }
.af-cf__form::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--af-naranja), var(--af-naranja-2), #25d366); }
.af-cf__form-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.af-cf__form-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; background: linear-gradient(145deg, #fff, #ffe9c9); box-shadow: inset 0 -4px 0 rgba(255, 122, 0, .15); animation: af-bota 3s ease-in-out infinite; }
.af-cf__form h3 { margin: 0 0 2px !important; }
.af-cf__form .af-form__sub { margin: 0 !important; font-size: .92rem; }
.af-cf__form label { margin-bottom: 10px !important; }

/* Campos: alto suficiente para que el texto nunca se corte */
.af-cf__form input,
.af-cf__form select,
.af-cf__form textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
	height: auto !important; min-height: 48px; line-height: 1.4 !important; padding: 12px 16px !important;
	font-family: var(--af-f-texto); font-size: 1rem !important; color: var(--af-oscuro) !important;
	background: #f6f9ff !important; border: 2px solid #dbe7f8 !important; border-radius: 14px !important; box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.af-cf__form textarea { min-height: 76px; resize: vertical; }
.af-cf__form input::placeholder, .af-cf__form textarea::placeholder { color: #8a96ad; opacity: 1; }
.af-cf__form input:focus, .af-cf__form select:focus, .af-cf__form textarea:focus { outline: none; background: #fff !important; border-color: var(--af-naranja) !important; box-shadow: 0 0 0 4px rgba(255, 156, 0, .15) !important; }
.af-cf__sel { position: relative; display: block; }
.af-cf__sel select { -webkit-appearance: none; appearance: none; padding-right: 44px !important; cursor: pointer; background-image: none !important; }
.af-cf__sel::after {
	content: ''; position: absolute; right: 16px; top: calc(50% + 3px); width: 10px; height: 10px; pointer-events: none;
	border-right: 2.5px solid var(--af-azul-p); border-bottom: 2.5px solid var(--af-azul-p); transform: translateY(-75%) rotate(45deg);
}

/* ================= Preguntas rápidas ================= */
.af-cq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1080px; margin: 0 auto clamp(18px, 3vh, 28px); align-items: start; }
.af-cq__item { border: 2px solid #e6eefb; box-shadow: 0 18px 30px -26px rgba(15, 35, 80, .6) !important; }
.af-cq__item[open] { border-color: var(--af-naranja); }
.af-cq__item summary { justify-content: flex-start; padding: 16px 0 !important; }
.af-cq__item summary .af-faq__mas { margin-left: auto; }
.af-cq__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-size: 1rem; }
.af-cq__item[open] .af-cq__n { background: var(--af-naranja); color: #fff; }
.af-cq__item p { margin-bottom: 16px !important; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
	.af-chero__grid, .af-cf__grid { grid-template-columns: 1fr; }
	.af-chero__txt { text-align: center; }
	.af-chero__p { margin-inline: auto; }
	.af-chero .af-btns { justify-content: center; }
	.af-tel { width: min(86vw, 300px); }
	.af-tel__chat { min-height: 250px; }
	.af-cf__info { text-align: center; }
	.af-cf__canales { text-align: left; max-width: 560px; width: 100%; margin-inline: auto; }
	.af-cf__grid { row-gap: 0; }
	.af-cf__info { display: contents; }
	.af-cf__info > .af-kicker { justify-self: center; }
	.af-cf__info > .af-h2, .af-cf__info > .af-lead { text-align: center; }
	.af-cf__canales { margin-bottom: 24px; }
	.af-cf__lado { order: 2; }
	.af-cq__grid { grid-template-columns: 1fr; max-width: 680px; }
}
@media (max-width: 600px) {
	.af-chero { padding-bottom: 80px; }
	.af-chero__t { font-size: clamp(2rem, 9vw, 2.7rem); }
	.af-chero__p { font-size: .95rem; }
	.af-tel__msg { font-size: .78rem; }
	.af-chero__flot { font-size: 1.8rem; }
	.af-cf__canal { padding: 10px 12px 10px 10px; gap: 12px; border-radius: 18px; }
	.af-cf__ico { width: 44px; height: 44px; border-radius: 14px; }
	.af-cf__txt strong { font-size: 1rem; }
	.af-cf__form-ico { width: 46px; height: 46px; font-size: 1.4rem; }
	.af-cf__form .af-form__row { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
	.af-cf__form input, .af-cf__form select, .af-cf__form textarea { min-height: 46px; padding: 10px 12px !important; font-size: .95rem !important; }
	.af-cf__sel select { padding-right: 34px !important; }
	.af-cf__sel::after { right: 12px; }
	.af-cq__item summary { font-size: .92rem !important; gap: 10px; }
	.af-cq__n { width: 26px; height: 26px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
	.af-tel, .af-tel *, .af-cf__canal, .af-cf__form-ico, .af-chero__flot { animation: none !important; }
	.af-tel__msg, .af-tel__escribe { opacity: 1; transform: none; }
}
