/*
Theme Name: Taller Urbano
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five con los colores de marca del Taller del Ciclista Urbano (turquesa y amarillo), comunidad ciclista de Tijuana.
Version: 2.0.0
Text Domain: taller-urbano
*/

/* Franja de marca: "carril bici" turquesa / amarillo */
.tu-stripe {
	height: 8px;
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--accent-1) 0 44px, var(--wp--preset--color--accent-2) 44px 88px);
}

/* Encabezado y pie */
.tu-header .wp-block-site-logo img { border-radius: 50%; box-shadow: 0 0 0 3px var(--wp--preset--color--accent-1); }
.tu-header .wp-block-site-title a,
.tu-footer .wp-block-site-title a { text-decoration: none; }
.wp-block-navigation a { text-decoration: none; }
.tu-header .wp-block-navigation a:hover,
.tu-header .wp-block-navigation a:focus,
.tu-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-1); }
.tu-header .wp-block-navigation .current-menu-item > a,
.tu-header .wp-block-navigation a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--wp--preset--color--accent-1); }

/* Tarjetas */
.tu-card {
	border-top: 5px solid var(--wp--preset--color--accent-2);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(11, 79, 76, .08), 0 6px 18px rgba(11, 79, 76, .06);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tu-card:hover { transform: translateY(-3px); border-top-color: var(--wp--preset--color--accent-1); box-shadow: 0 10px 26px rgba(11, 79, 76, .14); }
.tu-card h3 { margin-top: 0; }

/* Botones contorno sobre fondos oscuros / claros */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--accent-1); }
.wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--accent-1); outline-offset: 3px; }

/* Héroe: textura sutil de rayos (como el engrane del logo) */
.tu-hero {
	background-image: radial-gradient(circle at 92% 12%, rgba(252, 207, 3, .12) 0 15%, transparent 15.3%),
		repeating-conic-gradient(from 0deg at 92% 12%, rgba(33, 171, 164, .10) 0 5deg, transparent 5deg 15deg);
}
@media (max-width: 781px) {
	.tu-hero { background-image: radial-gradient(circle at 100% 0%, rgba(252, 207, 3, .12) 0 22%, transparent 22.5%); }
}
/* Secciones de ancho completo pegadas entre sí (sin huecos blancos) */
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.tu-hero h1 mark { color: var(--wp--preset--color--accent-1); }

/* Banda de llamada a la acción */
.tu-cta { border-radius: 18px; }

/* Marcadores de posición */
.tu-placeholder { border: 2px dashed var(--wp--preset--color--accent-4); border-radius: 8px; }

/* Lista de consejos */
.wp-block-latest-posts.tu-posts li { border-left: 4px solid var(--wp--preset--color--accent-2); padding-left: 1rem; margin-bottom: 1rem; }
.wp-block-latest-posts.tu-posts a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--accent-3); }
.wp-block-latest-posts.tu-posts a:hover { color: var(--wp--preset--color--accent-7); text-decoration: underline; }

/* Noticias */
.tu-news-list .wp-block-post-template { gap: var(--wp--preset--spacing--30); }
.tu-news-item .wp-block-post-date { color: var(--wp--preset--color--accent-7); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.tu-news-item .wp-block-post-title { margin-top: .25rem; }
.tu-news-item .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--accent-3); }
.tu-news-item .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-7); text-decoration: underline; }
.tu-news-item .wp-block-post-excerpt__more-link { font-weight: 700; }
.tu-fuente { margin-top: .5rem; color: var(--wp--preset--color--contrast); }
.tu-fuente a { color: var(--wp--preset--color--accent-7); }
.tu-empty { border-left: 4px solid var(--wp--preset--color--accent-1); padding: .75rem 1rem; background: var(--wp--preset--color--white); border-radius: 8px; }
.tu-news-section { margin-top: var(--wp--preset--spacing--50); padding-bottom: .4rem; border-bottom: 4px solid var(--wp--preset--color--accent-1); }

/* Fotos de noticias */
.tu-news-item .wp-block-post-featured-image { margin: calc(-1 * var(--wp--preset--spacing--30)) calc(-1 * var(--wp--preset--spacing--30)) .35rem; overflow: hidden; border-radius: 9px 9px 0 0; }
.tu-news-item .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.tu-news-item:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.tu-foto-credito { font-size: .75rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--wp--preset--color--contrast); opacity: .85; }
.tu-foto-credito a { color: var(--wp--preset--color--accent-7); }
.tu-single-hero .wp-block-post-featured-image { margin-bottom: .4rem; }
.tu-single-hero .wp-block-post-featured-image img { border-radius: 14px; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
@media (max-width: 600px) {
	.tu-single-hero .wp-block-post-featured-image img { border-radius: 10px; max-height: 300px; }
}
/* 2 columnas solo en la página Noticias (id 45); portada y Consejos quedan en 1 columna */
@media (min-width: 700px) {
	.page-id-45 .tu-news-list .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--30); }
	.page-id-45 .tu-news-list .wp-block-post-template > li { margin: 0 !important; }
	.page-id-45 .tu-news-list .tu-news-item { height: 100%; box-sizing: border-box; }
}
.tu-ig-handles { margin-top: .4rem; }
.tu-ig-handles a { font-weight: 600; color: var(--wp--preset--color--accent-7); }
/* Desde Instagram (/ig/) */
.tu-ig-list { list-style: none; padding: 0; display: grid; gap: var(--wp--preset--spacing--30); }
@media (min-width: 700px) { .tu-ig-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tu-ig-item { background: #fff; border-radius: 12px; overflow: hidden; margin: 0; }
.tu-ig-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto; }
.tu-ig-body { padding: var(--wp--preset--spacing--30); }
.tu-ig-cat { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wp--preset--color--accent-7); font-weight: 700; }
.tu-ig-title { margin: .3rem 0 .5rem; font-size: 1.15rem; }
.tu-ig-title a { text-decoration: none; }
.tu-ig-links { margin: 0; font-size: .9rem; }
.tu-ig-post a { font-weight: 600; }

/* Portada: Lo último en Instagram (mobile-first) */
.tu-ig-home { background: #14A0A0; color: #fff; padding: 2.25rem 1.25rem 2.5rem; margin-block-start: 0 !important; }
.tu-ig-home-in { max-width: 1100px; margin: 0 auto; }
.tu-ig-home-kicker { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #fff; opacity: .95; }
.tu-ig-home-title { margin: .2rem 0 1.25rem; color: #fff; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.1; }
.tu-ig-home-title::after { content: ""; display: block; width: 64px; height: 5px; margin-top: .5rem; border-radius: 3px; background: #F0C800; }
.tu-ig-home-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.tu-ig-home-card { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border-bottom: 4px solid #F0C800; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.tu-ig-home-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.tu-ig-home-body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.tu-ig-home-t { margin: 0; font-size: .92rem; line-height: 1.25; }
.tu-ig-home-t a { color: #0E2E2D; text-decoration: none; }
.tu-ig-home-t a:hover, .tu-ig-home-t a:focus { color: #0B6F6F; text-decoration: underline; }
.tu-ig-home-ig { margin-top: auto; align-self: flex-start; font-size: .78rem; font-weight: 700; color: #0B6F6F; text-decoration: none; border-bottom: 2px solid #F0C800; }
.tu-ig-home-ig::before { content: "📷 "; }
.tu-ig-home-ig:hover, .tu-ig-home-ig:focus { color: #0E2E2D; }
.tu-ig-home-more { margin: 1.5rem 0 0; text-align: center; }
.tu-ig-home-btn { display: inline-block; background: #F0C800; color: #0E2E2D; font-weight: 800; text-decoration: none; padding: .8rem 2.2rem; border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.tu-ig-home-btn:hover, .tu-ig-home-btn:focus { background: #fff; color: #0E2E2D; }
@media (min-width: 700px) {
	.tu-ig-home { padding: 3.25rem 2rem 3.5rem; }
	.tu-ig-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
	.tu-ig-home-t { font-size: 1.05rem; }
	.tu-ig-home-body { padding: 1rem 1.1rem 1.1rem; }
	.tu-ig-home-ig { font-size: .85rem; }
}
