/*
Theme Name: Gutenberg Theme GEA
Theme URI: https://staging.gea-srl.com.ar
Author: Nikim Agencia
Author URI: https://www.nikim.ar
Description: Tema FSE nativo de bloques para GEA SRL. Sin dependencias de plugins.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: geatheme
*/

/* ============================================================
   1. FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	color: #222221;
	background-color: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

/* ── Reset margin-top en bloques FSE ──────────────────────────
   Gutenberg agrega margin-top por defecto a casi todos los
   bloques. Usamos padding interno para espaciar, nunca margin,
   ya que el margen colapsa entre secciones y genera blancos.
   ─────────────────────────────────────────────────────────── */
.wp-block-group,
.wp-block-cover,
.wp-block-columns,
.wp-block-column,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-image,
.wp-block-gallery,
.wp-block-heading,
.wp-block-paragraph,
.wp-block-buttons,
.wp-block-button,
.wp-block-list,
.wp-block-spacer,
.wp-block-query,
.wp-block-latest-posts,
.wp-block-post-template,
div[class^="wp-block-"],
.entry-content > * {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* ── Override crítico: WordPress Core inyecta esto en global-styles ──
   :where(.wp-site-blocks) > * { margin-block-start: 24px; }
   Como :where() tiene especificidad 0, lo pisamos sin !important.
   ─────────────────────────────────────────────────────────── */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* ============================================================
   3. HEADER
   ============================================================ */
.gea-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	z-index: 9999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.gea-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	gap: 24px;
}

/* Logo */
.gea-header__logo a { display: block; line-height: 0; }
.gea-header__logo img { width: 107px; height: 63px; }

/* Menú principal */
.gea-header__nav { flex: 1; }

.gea-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
}

.gea-nav__item { position: relative; }

.gea-nav__link {
	display: block;
	padding: 6px 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #222221;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.gea-nav__link:hover { color: #fee201; }

/* Submenús */
.gea-nav__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	min-width: 200px;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 100;
}

.gea-nav__item--has-children:hover .gea-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gea-nav__submenu li a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #222221;
	transition: background 0.2s, color 0.2s;
}

.gea-nav__submenu li a:hover {
	background-color: #fee201;
	color: #222221;
}

/* Teléfonos y Redes */
.gea-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.gea-header__phones {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: #222221;
}

.gea-header__phones a {
	color: #222221;
	transition: color 0.2s;
}

.gea-header__phones a:hover { color: #fee201; }

.gea-header__social { display: flex; align-items: center; gap: 12px; }

.gea-header__social a {
	color: #222221;
	transition: color 0.2s;
	display: flex;
	align-items: center;
}

.gea-header__social a:hover { color: #fee201; }

/* Hamburguesa */
.gea-header__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.gea-header__burger span {
	display: block;
	width: 26px;
	height: 2px;
	background: #222221;
	transition: all 0.3s ease;
}

.gea-header__burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.gea-header__burger.is-active span:nth-child(2) {
	opacity: 0;
}
.gea-header__burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Menú mobile */
.gea-mobile-menu {
	background: #ffffff;
	border-top: 1px solid #eee;
	padding: 16px 24px 24px;
}

.gea-mobile-menu ul { display: flex; flex-direction: column; gap: 0; }

.gea-mobile-menu li a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: #222221;
	border-bottom: 1px solid #f0f0f0;
}

.gea-mobile-menu li a:hover { color: #fee201; }

.gea-mobile-menu__phones { padding-top: 16px !important; }
.gea-mobile-menu__phones a { border-bottom: none !important; }

/* ============================================================
   4. FOOTER
   ============================================================ */
.gea-footer {
	background-color: #222221;
	color: #797979;
}

.gea-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-size: 14px;
}

.gea-footer__copy { margin: 0; }

.gea-footer__credit { margin: 0; }

.gea-footer__credit a {
	color: #797979;
	transition: color 0.2s;
}

.gea-footer__credit a:hover { color: #fee201; }

/* Botón flotante WhatsApp */
.gea-whatsapp-float {
	position: fixed;
	bottom: 28px;
	right: 20px;
	z-index: 9998;
	width: 52px;
	height: 52px;
	background-color: #fee201;
	color: #222221;
	border-radius: 15px 15px 15px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #4c4c4c;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gea-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
	.gea-header__nav,
	.gea-header__actions { display: none; }

	.gea-header__burger { display: flex; }

	.gea-footer__inner {
		flex-direction: column;
		text-align: center;
		gap: 8px;
		padding: 20px 0 50px;
	}
}

/* ============================================================
   6. PATRONES / BLOQUES ESPECÍFICOS
   ============================================================ */

/* Pillar icons (grid-pillars) */
.gea-pillar-image { text-align: center; }
.gea-pillar-image img { width: 170px; min-height: 150px; max-width: 170px; margin: 0 auto; object-fit: contain; }

/* Hero offset (grid-hero) */
.gea-hero-offset { margin-left: 11%; max-width: 550px; }

/* Products grid */
.gea-grid-products .wp-block-column {
	padding: 80px 15px 50px !important;
}

/* ============================================================
   7. FORMULARIOS (Contact Form 7)
   ============================================================ */
.wpcf7-form input,
.wpcf7-form textarea,
.gea-form-group input,
.gea-form-group textarea {
	width: 100%;
	padding: 18px;
	border: none;
	background-color: #f2f2f2;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	box-sizing: border-box;
	transition: background 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.gea-form-group input:focus,
.gea-form-group textarea:focus {
	outline: none;
	background-color: #ffffff;
	box-shadow: inset 0 0 0 2px #fee201;
}

.wpcf7-form input[type="submit"],
.gea-form-submit button {
	background-color: #222221 !important;
	color: #fee201 !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	padding: 15px 40px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.gea-form-submit button:hover {
	background-color: #444444 !important;
}

/* ============================================================
   8. BOTONES GLOBALES
   ============================================================ */
.gea-btn {
	display: inline-block;
	padding: 12px 30px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.gea-btn--yellow {
	background-color: #fee201;
	color: #222221;
}
.gea-btn--yellow:hover { background-color: #e6cc00; }

.gea-btn--dark {
	background-color: #222221;
	color: #ffffff;
}
.gea-btn--dark:hover { background-color: #444444; }

/* ============================================================
   9. HERO
   ============================================================ */
.gea-hero {
	position: relative;
	width: 100%;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.gea-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.gea-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.gea-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

.gea-hero__content {
	position: relative;
	z-index: 2;
	margin-left: 11%;
	max-width: 550px;
	padding: 80px 0 300px;
}

.gea-hero__title {
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.15;
	margin: 0 0 32px;
}

@media (max-width: 980px) {
	.gea-hero { min-height: 400px; }
	.gea-hero__content {
		margin-left: 5%;
		margin-right: 5%;
		padding-bottom: 60px;
	}
}

/* ============================================================
   10. PILARES (Productos, Servicios, Empresa)
   ============================================================ */
.gea-pillars {
	padding: 70px 0;
	background: #ffffff;
}

.gea-pillars__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
}

.gea-pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.gea-pillar__icon-link { display: block; line-height: 0; }

.gea-pillar__icon {
	width: 133px;
	min-height: 122px;
	object-fit: contain;
	margin: 0 auto;
}

.gea-pillar__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #222221;
}

.gea-pillar__title a { color: inherit; }

.gea-pillar__desc {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 44px;
	flex: 1;
}

@media (max-width: 768px) {
	.gea-pillars__inner { grid-template-columns: 1fr; gap: 50px; }
}

/* ============================================================
   11. GRID DE PRODUCTOS (Gas, Diesel, Duales, Torres)
   ============================================================ */
.gea-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.gea-product-card {
	display: block;
	text-decoration: none;
	padding: 80px 15px 50px;
	transition: filter 0.2s ease;
}

.gea-product-card:hover { filter: brightness(0.92); }

.gea-product-card--dark {
	background-color: #222221;
	color: #ffffff;
}

.gea-product-card--yellow {
	background-color: #fee201;
	color: #222221;
}

.gea-product-card__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.gea-product-card__title {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
	margin: 0;
	line-height: 1.4;
}

.gea-product-card__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid currentColor;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.gea-product-card:hover .gea-product-card__arrow { transform: translateX(4px); }

@media (max-width: 768px) {
	.gea-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   12. CONTADORES SVG
   ============================================================ */
.gea-stats { padding: 70px 0; background: #ffffff; }

.gea-stats__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	width: 90%;
	max-width: 900px;
	margin: 0 auto;
}

.gea-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.gea-stat__circle-wrap {
	position: relative;
	width: 230px;
	height: 230px;
	flex-shrink: 0;
}

.gea-stat__ring {
	transform: rotate(-90deg);
	display: block;
}

.gea-stat__track {
	fill: none;
	stroke: rgba(0, 0, 0, 0.1);
	stroke-width: 5;
}

.gea-stat__bar {
	fill: none;
	stroke: #fee201;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-dasharray: 326.726; /* 2π×52 */
	stroke-dashoffset: 326.726;
	transition: stroke-dashoffset 0.1s linear;
}

.gea-stat__number {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 32px;
	font-weight: 800;
	color: #222221;
	display: flex;
	align-items: baseline;
	gap: 2px;
}

.gea-stat__prefix { font-size: 24px; }

.gea-stat__label {
	font-size: 15px;
	font-weight: 600;
	color: #222221;
	text-align: center;
	margin: 0;
}

@media (max-width: 768px) {
	.gea-stats__inner { grid-template-columns: 1fr; }
	.gea-stat__circle-wrap { width: 180px; height: 180px; }
}

/* ============================================================
   13. MAPA
   ============================================================ */
.gea-map-section { background: #ffffff; }

.gea-map-section__header {
	text-align: center;
	padding: 60px 20px 40px;
}

.gea-map-section__title {
	font-size: clamp(18px, 2.5vw, 26px);
	font-weight: 700;
	color: #222221;
	margin: 0 auto;
	max-width: 700px;
	line-height: 1.4;
}

.gea-map-section__map iframe {
	display: block;
	width: 100%;
	height: 500px;
	border: none;
}

/* ============================================================
   14. CTA FINAL
   ============================================================ */
.gea-cta {
	background: #ffffff;
	padding: 80px 20px;
}

.gea-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 32px;
}

.gea-cta__title {
	font-size: clamp(20px, 2.5vw, 30px);
	font-weight: 700;
	color: #222221;
	margin: 0;
	line-height: 1.4;
}

/* ============================================================
   15. PÁGINAS INTERNAS — TIPOGRAFÍA Y LAYOUT
   Correcciones visuales para que coincidan con producción Divi
   ============================================================ */

/* ── Citas / Quote sections (fondo gris claro) ──────────────
   En producción las citas tienen font-size 18–22px, no el
   tamaño full de h1/h2 de FSE (que llega a 48+px)
   ─────────────────────────────────────────────────────────── */
.wp-block-group.has-background h1.wp-block-heading,
.wp-block-group.has-background h2.wp-block-heading {
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.5;
	/* ⚠ Sin color: lo controla Gutenberg inline para respetar edición visual */
}

/* ── Headings de sección (h2 sin fondo) ────────────────────
   En producción los H2 de sección (ej: "Nuestra Empresa",
   "Opcionales") son uppercase, tamaño medio, sin serif.
   ─────────────────────────────────────────────────────────── */
.wp-block-group:not(.has-background) > .wp-block-heading,
.wp-block-group > div > .wp-block-heading {
	font-size: clamp(14px, 1.4vw, 18px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	/* ⚠ Sin color: lo controla Gutenberg inline */
}

/* ── Columnas de texto interior (párrafos cuerpo) ──────────
   En producción el cuerpo de párrafos es font-size 14px
   con color gris oscuro, no negro puro
   ─────────────────────────────────────────────────────────── */
.wp-block-columns .wp-block-paragraph,
.wp-block-column > .wp-block-paragraph {
	font-size: 14px;
	line-height: 1.75;
	/* ⚠ Sin color: lo controla Gutenberg inline */
}

/* ── Sección Misión / Visión / Valores ─────────────────────
   MISIÓN y VISIÓN en producción son labels pequeños en bold
   seguidos del texto, sin grandes separaciones
   ─────────────────────────────────────────────────────────── */
.wp-block-column > .wp-block-paragraph strong:first-child {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ── Galería de 4 imágenes (full-bleed) ─────────────────────
   La galería en producción no tiene padding lateral —
   las imágenes tocan los bordes del viewport
   ─────────────────────────────────────────────────────────── */
.wp-block-gallery.alignfull {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.wp-block-gallery.alignfull .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

/* ── Botones Gutenberg nativos ──────────────────────────────
   Aplica estilo GEA a wp:button para que coincidan
   con los botones del theme (.gea-btn)
   ─────────────────────────────────────────────────────────── */
.wp-block-button__link.wp-element-button {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 0 !important;
	padding: 12px 30px;
	transition: background 0.2s ease, color 0.2s ease;
}

/* ── Espaciado entre columnas en sección texto / misión ─────*/
.wp-block-columns {
	gap: 32px;
}

@media (max-width: 768px) {
	.wp-block-gallery.alignfull .wp-block-image img {
		aspect-ratio: 16 / 9;
	}
}

