/*
Theme Name: Expectrum Calentadores
Theme URI: https://calentadoressolares.com.mx
Description: Tema hijo de Twenty Twenty-Five para la tienda de Calentadores Solares Expectrum. Identidad de Expectrum (azul marino y verde del logo) con acento naranja de «agua caliente».
Author: Expectrum Energía Solar
Template: twentytwentyfive
Version: 1.0.4
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: expectrum-calentadores
*/

/* Ajustes que theme.json no cubre */

.xc-eyebrow {
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Encabezado fijo con sombra suave */
.xc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(0, 64, 104, 0.08), 0 6px 18px rgba(0, 64, 104, 0.06);
}
.admin-bar .xc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .xc-header { top: 46px; } }

.xc-badge {
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: var(--wp--preset--color--naranja);
	color: var(--wp--preset--color--marino-oscuro);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Tarjetas */
.xc-card {
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.xc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 64, 104, 0.12);
}
.xc-card .wp-block-image img { border-radius: 10px; }

/* Ilustración de la portada */
.xc-hero-art svg { width: 100%; height: auto; display: block; }

/* Tabla de capacidades */
.xc-tabla table { border-collapse: collapse; width: 100%; }
.xc-tabla th { background: var(--wp--preset--color--marino); color: #fff; }
.xc-tabla th, .xc-tabla td { padding: 0.65em 0.9em; text-align: center; border: 1px solid #dbe4ec; }
.xc-tabla tbody tr:nth-child(even) td { background: var(--wp--preset--color--gris-claro); }

/* Selector «¿Qué calentador necesito?» */
.xc-selector {
	background: #fff;
	border: 1px solid #e4ebf1;
	border-radius: 16px;
	padding: clamp(1.2rem, 3vw, 2.2rem);
	box-shadow: 0 10px 30px rgba(0, 64, 104, 0.08);
}
.xc-selector fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
.xc-selector legend {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--wp--preset--color--marino);
	margin-bottom: 0.6rem;
}
.xc-selector .xc-opciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.xc-selector label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border: 2px solid #dbe4ec;
	border-radius: 10px;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1.3;
	background: #fff;
}
.xc-selector label:hover { border-color: var(--wp--preset--color--naranja); }
.xc-selector input[type="radio"] { accent-color: var(--wp--preset--color--marino); width: 1.1rem; height: 1.1rem; }
.xc-selector label:has(input:checked) { border-color: var(--wp--preset--color--marino); background: #eef5fa; }
.xc-selector input:focus-visible + span { outline: 2px solid var(--wp--preset--color--naranja); outline-offset: 3px; }
.xc-selector [hidden] { display: none !important; }
.xc-resultado {
	margin-top: 0.6rem;
	border-radius: 12px;
	padding: 1.3rem 1.4rem;
	background: var(--wp--preset--color--crema);
	border-left: 6px solid var(--wp--preset--color--naranja);
}
.xc-resultado h3 { margin: 0 0 0.4rem; }
.xc-resultado p { margin: 0.35rem 0; }
.xc-resultado .xc-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.xc-resultado .xc-acciones a {
	display: inline-block;
	padding: 0.7rem 1.2rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}
.xc-btn-primario { background: var(--wp--preset--color--naranja); color: var(--wp--preset--color--marino-oscuro) !important; }
.xc-btn-secundario { background: var(--wp--preset--color--marino); color: #fff !important; }
.xc-nota { font-size: 0.85rem; color: var(--wp--preset--color--texto-suave); }

/* Botón flotante de WhatsApp */
.xc-whatsapp {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.xc-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* Móvil */
@media (max-width: 600px) {
	.xc-hide-mobile { display: none !important; }
	.xc-tabla th, .xc-tabla td { padding: 0.5em 0.4em; font-size: 0.9rem; }
}

/* Pie de página */
.xc-lista-limpia { list-style: none; padding-left: 0; font-size: 0.92rem; }
.xc-lista-limpia li { margin: 0.35rem 0; }
.xc-sep { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--30); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.xc-hero-art img { width: 100%; height: auto; display: block; }

/* Portada con foto */
.xc-hero .wp-block-cover__inner-container p { color: #fff; }
.xc-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
@media (max-width: 600px) { .xc-hero { min-height: 480px !important; } }

/* Foto de producto en tarjetas */
.xc-card-img { margin: 0 0 1rem; }
.xc-card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; }
@media (max-width: 781px) { .xc-card-img img { aspect-ratio: 4 / 3; } }
.xc-foto img { width: 100%; height: auto; border-radius: 14px; display: block; }

/* Marcas */
.xc-marcas {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.5rem;
	align-items: center;
}
@media (min-width: 782px) { .xc-marcas { grid-template-columns: repeat(4, 1fr); } }
.xc-marcas img { width: 100%; max-width: 170px; height: auto; margin: 0 auto; display: block; }

/* Mapa */
.xc-mapa { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #dbe4ec; }
.xc-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Borradores: marca lo que falta por definir (quitar al publicar) */
mark.xc-pendiente { background: #FFE58F; color: #5a3b00; padding: 0 0.3em; border-radius: 4px; font-weight: 600; }
mark.xc-revisar { background: #FFD3D3; color: #6b0000; padding: 0 0.3em; border-radius: 4px; font-weight: 600; }
.xc-aviso-borrador { border-left: 6px solid #B54E08; }
.xc-legal h2 { margin-top: 2.2rem; }
