/*
Theme Name: All Pets Hospital Veterinario
Theme URI: https://www.allpets-ec.com/
Author: All Pets Hospital Veterinario
Description: Tema de bloques para All Pets, hospital veterinario 24 horas en Quito. Editable desde el editor de WordPress.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allpets
*/

/* Lista con marcas de verificación */
ul.is-style-checks { list-style: none; padding-left: 0; }
ul.is-style-checks li { position: relative; padding-left: 34px; font-weight: 700; margin-bottom: 12px; }
ul.is-style-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6E96' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Preguntas frecuentes */
.wp-block-details summary { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 21px; cursor: pointer; padding: 6px 0; }
.wp-block-details > p { color: var(--wp--preset--color--texto); margin-top: 10px; }

/* Cifras 24 / 365 / 27 */
.ap-big { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(64px, 9vw, 92px); line-height: 1; color: var(--wp--preset--color--amarillo); margin: 0; }

/* Etiqueta "Abierto ahora" */
.ap-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--wp--preset--color--amarillo); color: var(--wp--preset--color--oscuro); font-weight: 800; padding: 10px 18px; border-radius: 999px; }
.ap-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--oscuro); }

/* Tarjetas: el enlace del título ocupa toda la tarjeta */
.ap-card { position: relative; }
.ap-card .ap-cardlink a::after { content: ""; position: absolute; inset: 0; }
.ap-card .ap-cardlink a { color: inherit; }
.ap-card:hover { box-shadow: 0 8px 24px rgba(35,41,46,.10); }

/* Imágenes de foto con esquinas redondeadas */
.wp-block-image.ap-photo img { border-radius: 24px; }

/* Barra superior y pie */
.ap-topbar a, .ap-footer a { color: var(--wp--preset--color--blanco); font-weight: 700; text-decoration: none; }
.ap-topbar a.ap-emergencia, .ap-topbar .ap-emergencia a { color: var(--wp--preset--color--amarillo); font-weight: 800; }
.ap-footer a:hover, .ap-topbar a:hover { text-decoration: underline; }

/* Barra fija inferior (solo celular) */
.ap-mobilebar { display: none; }
@media (max-width: 781px) {
  .ap-mobilebar { display: flex; z-index: 50; box-shadow: 0 -4px 16px rgba(35,41,46,.12); }
  .ap-mobilebar .wp-block-button { flex: 1 1 0; }
  .ap-mobilebar .wp-block-button__link { width: 100%; padding: 13px 6px; font-size: 15px; }
  .ap-hide-mobile { display: none !important; }
  .ap-topbar .ap-util { display: none; }
}

/* Encabezado fijo arriba en computadora */
.ap-header { border-bottom: 1px solid var(--wp--preset--color--borde); }

/* Formulario de citas */
.ap-form { display: flex; flex-direction: column; gap: 16px; }
.ap-form .ap-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ap-form .ap-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.ap-form label { font-weight: 700; }
.ap-form input, .ap-form select, .ap-form textarea { font: inherit; min-height: 52px; padding: 0 16px; border: 1.5px solid #8A959D; border-radius: 12px; box-sizing: border-box; width: 100%; background: #fff; }
.ap-form textarea { padding: 14px 16px; resize: vertical; }
.ap-form button { align-self: flex-start; min-height: 56px; padding: 0 32px; border-radius: 999px; background: var(--wp--preset--color--azul); color: #fff; font: inherit; font-weight: 800; font-size: 18px; border: 0; cursor: pointer; }
.ap-map iframe { width: 100%; height: 280px; border: 0; border-radius: 24px; }

/* Sin espacios entre secciones de color */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-block-image.ap-photo img { width: 100%; }
@media (max-width: 781px) {
  .ap-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; }
  body { padding-bottom: 72px; }
}

.ap-card .ap-cardlink a { text-decoration: none; }
.ap-card .ap-cardlink a:hover { text-decoration: underline; }

/* Franja oscura centrada */
.ap-band { text-align: center; }
.ap-band .wp-block-group, .ap-band p { text-align: center; }
.ap-band .wp-block-heading { text-align: center; }
@media (max-width: 781px) {
  .ap-mobilebar .wp-block-buttons { width: 100%; }
  .ap-mobilebar .wp-block-button__link { font-size: 14px; padding: 12px 4px; white-space: nowrap; }
}

/* Tablas de los artículos */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--wp--preset--color--azul); color: #fff; text-align: left; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--borde); padding: 12px 14px; }
/* Artículos: ancho de lectura cómodo */
.single .wp-block-post-content p, .single .wp-block-post-content li { font-size: 18px; }
