/**
 * Landing Sorteo MAKITA Poda 2026/27 — CSS principal.
 * Basado en la maquetación de la landing actual (www/index.php).
 * No usa Bootstrap; convive con él solo en el panel admin.
 */

:root {
	--makita-teal: #00859a;
	--makita-teal-dark: #00697c;
	--navy-dark: #005f6d;
	--placeholder-blue: #cde7eb;
	--form-grey: #e4e4e4;
	--container-width: 1240px;
	--container-padding: 100px;
	--gap-h-orla: 40px;
}

@media (max-width: 750px) {

	:root {
		--container-padding: 40px;
		--gap-h-orla: 20px;
	}

}

html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background: #5e554b;
	background: #222;
	color: #000;
}

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

a,
a:hover {
	color: inherit;
}

/* ---------- HERO + BARRA PREMIO ---------- */
.hero img {
	width: 100%;
}

.prize-bar {
	background: var(--navy-dark);
	color: #fff;
	text-align: center;
	padding: 20px 16px;
	font-size: clamp(18px, 2.7vw, 31px);
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.02em;
	text-wrap: balance;
}

/* ---------- CONTENT FRAME (esquinas decorativas) ---------- */
.content-frame {
	position: relative;
	max-width: var(--container-width);
	margin: 36px auto 44px;
	padding: 0 var(--container-padding) 24px;
}

/* Esquina superior-derecha */
.content-frame::before {
	content: '';
	position: absolute;

	top: 15px;
	right: var(--gap-h-orla);
	width: calc(100% - var(--gap-h-orla) * 2);
	height: clamp(160px, 32%, 300px);
	border-top: 6px solid var(--makita-teal);
	border-right: 6px solid var(--makita-teal);
	pointer-events: none;
	z-index: 1;
}

/* Esquina inferior-izquierda */
.content-frame::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: var(--gap-h-orla);
	/*width: clamp(200px, 58%, 560px);*/
	width: 60%;

	height: clamp(160px, 30%, 260px);
	border-bottom: 6px solid var(--makita-teal);
	border-left: 6px solid var(--makita-teal);
	pointer-events: none;
	z-index: 1;
}

/* ---------- INTRO ---------- */
.intro {
	padding: 0 0 8px;
}

.campaign-tag {
	display: inline-block;
	background: var(--makita-teal);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	font-style: italic;
	padding: 8px var(--container-padding);
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	margin-bottom: 24px;
	margin-left: calc(-1 * var(--container-padding));
	position: relative;
	z-index: 2;
}

.intro h1 {
	color: var(--makita-teal);
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 16px;
}

.intro p {
	font-size: 16px;
	line-height: 1.55;
	font-weight: 500;
	margin-bottom: 20px;
}

.intro h2 {
	color: var(--makita-teal);
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 10px;
}

/* ---------- ACCORDEÓN Y BLOQUES DE COMBINACIÓN (MOBILE FIRST) ---------- */
.opciones-placeholder {
	margin: 28px 0;
}

.opciones-placeholder > h2 {
	color: var(--makita-teal);
	font-size: clamp(18px, 4vw, 22px);
	font-weight: 800;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bloques-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bloque-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ---------- CTA "INSCRÍBETE" EN CADA BLOQUE ---------- */
.bloque-cta {
	display: block;
	width: 100%;
	margin-top: 20px;
	background: var(--makita-teal);
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
	font-size: 18px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.04em;
	padding: 14px 24px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bloque-cta:hover {
	background: var(--makita-teal-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 133, 154, 0.3);
	color: #ffffff;
	text-decoration: none;
}

.bloque-cta:focus-visible {
	outline: 3px solid var(--makita-teal);
	outline-offset: 2px;
}

.bloque-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--makita-teal-dark);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--placeholder-blue);
}

.bloque-columns {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 750px) {
	.bloque-columns {
		flex-direction: row;
		align-items: flex-start;
	}

	.bloque-col-left,
	.bloque-col-right {
		flex: 1;
		min-width: 0;
	}
}

.bloque-col-right {
	display: flex;
	flex-direction: column;
}

/* ---------- KIT DE POTENCIA CARD ---------- */
.kit-card {
	background: #ffffff;
	border: 1px solid #cde7eb;
	border-radius: 6px;
	padding: 16px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 6px rgba(0, 133, 154, 0.08);
}

.kit-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.kit-badge {
	background: var(--navy-dark);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	letter-spacing: 0.05em;
}

.kit-ref {
	font-size: 13px;
	font-weight: 800;
	color: var(--makita-teal);
}

.kit-title {
	font-size: 15px;
	font-weight: 700;
	color: #111111;
	margin-bottom: 14px;
	line-height: 1.35;
}

.kit-img-wrapper {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: #fdfdfd;
	border-radius: 4px;
}

.kit-img-wrapper img {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
}

.product-accordion-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.product-accordion-item {
	background: #ffffff;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-accordion-item[open] {
	border-color: var(--makita-teal);
	box-shadow: 0 4px 14px rgba(0, 133, 154, 0.15);
}

.product-accordion-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #f9f9f9;
	cursor: pointer;
	user-select: none;
	list-style: none;
}

.product-accordion-header::-webkit-details-marker {
	display: none;
}

.product-accordion-item[open] .product-accordion-header {
	background: #f0f7f8;
	border-bottom: 1px solid #e2f0f2;
}

.product-ref-badge {
	background: var(--makita-teal);
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	padding: 4px 8px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	white-space: nowrap;
	flex-shrink: 0;
}

.product-title-text {
	font-size: 15px;
	font-weight: 700;
	color: #222222;
	flex-grow: 1;
}

.accordion-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--makita-teal);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.product-accordion-item[open] .accordion-chevron {
	transform: rotate(180deg);
}

.product-accordion-body {
	padding: 16px;
	background: #ffffff;
}

.product-img-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-img-wrapper img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}

/* ---------- MECÁNICA ---------- */
.mechanics {
	padding: 20px 0 8px;
}

.mechanics h2 {
	color: var(--makita-teal);
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 10px;
}

.mechanics p {
	font-size: 16px;
	line-height: 1.55;
	font-weight: 500;
	margin-bottom: 24px;
}

.mechanics .note {
	font-size: 14px;
	font-weight: 400;
	margin-top: -16px;
	margin-bottom: 0;
}

/* ---------- FONDO BOSQUE + FORMULARIO ---------- */
.signup-zone {
	background: #1e2d3d url('../img/bg_climb_1440_opt.jpg') center / cover no-repeat;
	padding: 100px 50px 40px;
	position: relative;
	display: flex;
	justify-content: center;
}

.signup-cta {
	display: block;
	width: fit-content;
	margin: 0 auto 56px;
	background: var(--makita-teal);
	color: #fff;
	text-decoration: none;
	font-size: clamp(30px, 4.3vw, 50px);
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.02em;
	padding: 18px 56px;
	text-align: center;
	position: relative;
}

/* Pico exterior verde azulado */
.signup-cta::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 55px solid transparent;
	border-right: 55px solid transparent;
	border-top: 42px solid var(--makita-teal);
	z-index: 1;
}

/* Triángulo interior blanco */
.signup-cta::after {
	content: '';
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 34px solid transparent;
	border-right: 34px solid transparent;
	border-top: 24px solid #ffffff;
	z-index: 2;
}

form.entry-form {
	max-width: 680px;
	margin: 0 auto;
	background: var(--form-grey);
	border-radius: 14px;
	padding: 40px 44px 44px;
}

.form-row-group {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 18px;
	margin-bottom: 22px;
}

.form-row-group .form-row {
	margin-bottom: 0;
}

.form-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.form-row label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	white-space: nowrap;
	flex-shrink: 0;
}

.form-row input[type="text"],
.form-row input[type="email"] {
	flex: 1 1 120px;
	min-width: 60px;
	border: none;
	border-bottom: 2px dotted #000;
	background: transparent;
	padding: 2px 4px;
	font-size: 16px;
	font-family: inherit;
	border-radius: 0;
	color: #000;
}

.form-row input:focus {
	outline: none;
	border-bottom-color: var(--makita-teal);
}

/* datalist para tienda */
.form-row input.cn-datalist {
	flex: 1 1 120px;
	min-width: 60px;
	border: none;
	border-bottom: 2px dotted #000;
	background: transparent;
	padding: 2px 4px;
	font-size: 16px;
	font-family: inherit;
	border-radius: 0;
	color: #000;
}

.form-row input.cn-datalist:focus {
	outline: none;
	border-bottom-color: var(--makita-teal);
}

.form-row .invalid-msg {
	width: 100%;
	flex-basis: 100%;
}

.radio-group {
	margin-bottom: 22px;
}

.radio-group .radio-row {
	margin-bottom: 4px;
}

.radio-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.radio-row .spacer {
	width: 20px;
	display: inline-block;
}

.check-row {
	margin-bottom: 24px;
}

/* Radios y Checkboxes con texto a la izquierda y caja cuadrada a la derecha */
.reverse-check {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	user-select: none;
}

.reverse-check.reverse-check-wide {
	display: flex;
	justify-content: start;
	align-items: center;
	width: 100%;
	gap: 16px;
}

.reverse-check.reverse-check-wide span {
	line-height: 1.4;
}

.reverse-check input[type="radio"],
.reverse-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	border: 2px solid #000;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	display: inline-grid;
	place-content: center;
	transition: all 0.15s ease-in-out;
}

.reverse-check input[type="radio"]:checked,
.reverse-check input[type="checkbox"]:checked {
	background: #000;
	border-color: #000;
}

.reverse-check input[type="radio"]:checked::after,
.reverse-check input[type="checkbox"]:checked::after {
	content: '';
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	margin-top: -4px;
}

/* campos profesionales condicionados */
.row-profesional {
	display: none;
}

.row-profesional.visible {
	display: flex;
}

.file-btn {
	display: inline-block;
	background: #979797;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 24px;
	cursor: pointer;
	margin-bottom: 28px;
}

.file-btn input {
	display: none;
}

.file-btn-label {
	cursor: pointer;
}

.file-name {
	display: block;
	font-size: 13px;
	color: #555;
	margin-top: 6px;
}

.file-note {
	font-size: 12px;
	color: #555;
	margin-top: 4px;
}

.send-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: var(--makita-teal);
	color: #fff;
	border: none;
	font-size: clamp(26px, 3.9vw, 48px);
	font-weight: 800;
	font-style: italic;
	padding: 14px 38px;
	border-radius: 12px;
	cursor: pointer;
}

.send-btn .arrow {
	font-size: 0.7em;
	font-style: normal;
}

.send-btn:hover {
	background: var(--makita-teal-dark);
}

/* validación inline */
.entry-form .invalid-msg {
	display: none;
	color: #c00;
	font-size: 13px;
	margin-top: 4px;
}

.entry-form.was-validated .form-row input:invalid~.invalid-msg,
.entry-form.was-validated .check-row input:invalid~.invalid-msg,
.entry-form.was-validated .radio-group:has(input:invalid) .invalid-msg,
.entry-form.was-validated .consent-row:has(input:invalid) .invalid-msg,
.entry-form.was-validated .file-row:has(input:invalid) .invalid-msg {
	display: block;
}

.entry-form.was-validated .form-row input:invalid {
	border-bottom-color: #c00;
}

.entry-form.was-validated .file-row:has(input:invalid) .file-btn {
	background: #b82828;
}

/* consentimiento */
.consent-row {
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.consent-row label {
	display: flex;
	align-items: end;
	gap: 12px;
	cursor: pointer;
}

.consent-row input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #000;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 2px;
	display: inline-grid;
	place-content: center;
	transition: all 0.15s ease-in-out;
}

.consent-row input:checked {
	background: #000;
	border-color: #000;
}

.consent-row input:checked::after {
	content: '';
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-top: -2px;
}

.consent-row a {
	color: var(--makita-teal);
	text-decoration: underline;
}

/* ---------- FOOTER LEGAL ---------- */
.legal-footer {
	background: #000;
	color: #e0e0e0;
	font-size: 12.5px;
	line-height: 1.5;
	padding: 20px 24px 28px;
}

/* ---------- GRACIAS ---------- */
.gracias-zone {
	background: white;
	padding: 72px 20px 60px;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--makita-teal);
}

.gracias-zone h1 {

	font-size: clamp(30px, 4.3vw, 50px);
	font-weight: 800;
	font-style: italic;
	margin-bottom: 20px;
}

.gracias-zone p {
	font-size: 18px;
	line-height: 1.6;
	max-width: 600px;
}

/* ---------- MODAL BASES DEL SORTEO (sin Bootstrap) ---------- */
body.modal-open {
	overflow: hidden;
}

.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.modal-overlay.active {
	display: flex;
}

.modal-box {
	background: #fff;
	border-radius: 12px;
	max-width: 700px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 32px;
	position: relative;
}

/* variante a pantalla completa (bases del sorteo) */
.modal-box.modal-fullscreen {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border-radius: 0;
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-fullscreen .modal-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px clamp(16px, 4vw, 48px);
	background: #fff;
	border-bottom: 1px solid var(--form-grey);
}

.modal-fullscreen .modal-header h2 {
	margin: 0;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--makita-teal);
}

.modal-fullscreen .modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: clamp(20px, 3.5vw, 48px) clamp(16px, 4vw, 48px);
}

.modal-body-inner {
	max-width: 860px;
	margin: 0 auto;
}

.modal-fullscreen .modal-footer {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	padding: 14px clamp(16px, 4vw, 48px);
	background: #fff;
	border-top: 1px solid var(--form-grey);
}

.modal-fullscreen .modal-footer .modal-btn {
	width: auto;
	min-width: 220px;
	margin: 0;
}

.modal-box .modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #333;
}

.modal-fullscreen .modal-header .modal-close {
	position: static;
	flex: 0 0 auto;
	padding: 0 4px;
	font-size: 34px;
	line-height: 1;
}

.modal-fullscreen .modal-header .modal-close:hover,
.modal-fullscreen .modal-header .modal-close:focus-visible {
	color: var(--makita-teal);
	outline: 2px solid var(--makita-teal);
	outline-offset: 2px;
}

.modal-box h2 {
	color: var(--makita-teal);
	font-size: 20px;
	margin-bottom: 16px;
}

.modal-box p {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.modal-box .modal-btn {
	display: block;
	width: 100%;
	background: var(--makita-teal);
	color: #fff;
	border: none;
	font-size: 18px;
	font-weight: 700;
	padding: 12px;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 16px;
}

.modal-box .modal-btn:hover {
	background: var(--makita-teal-dark);
}

/* ---------- TEXTO LEGAL (bases del sorteo) ---------- */
.modal-body-inner .bases-subtitle {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--makita-teal-dark);
	margin-bottom: 24px;
}

.modal-body-inner h3 {
	font-size: 17px;
	font-weight: 800;
	color: var(--makita-teal);
	margin: 28px 0 10px;
}

.modal-body-inner p {
	font-size: 14px;
	line-height: 1.65;
	text-align: justify;
	margin-bottom: 12px;
}

.modal-body-inner ul {
	list-style: disc;
	margin: 0 0 12px 22px;
	padding: 0;
}

.modal-body-inner li {
	font-size: 14px;
	line-height: 1.65;
	margin-bottom: 6px;
}

.modal-body-inner a {
	color: var(--makita-teal-dark);
	text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
	.form-row-group {
		display: block;
	}

	.form-row-group .form-row:first-child {
		margin-bottom: 22px;
	}

	.form-row {
		gap: 6px;
	}

	.reverse-check.reverse-check-wide {
		align-items: flex-start;
		gap: 12px;
	}

	form.entry-form {
		padding: 28px 22px 32px;
	}

	.signup-zone {
		padding-top: 48px;
	}

	.signup-cta {
		font-size: 28px;
		padding: 14px 32px;
		margin-bottom: 44px;
	}

	.signup-cta::before {
		border-left-width: 38px;
		border-right-width: 38px;
		border-top-width: 28px;
	}

	.signup-cta::after {
		top: calc(100% + 3px);
		border-left-width: 24px;
		border-right-width: 24px;
		border-top-width: 16px;
	}
}


#wrapper {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	color: #000;
}

.footer-img img {
	width: 80%;
	max-width: 450px;
	height: auto;
	margin-left: auto;
	margin: 50px 30px 50px auto;
}

#promoConsent span {
	line-height: 1.8;
}

.file-row {
	padding: 20px;
	border: 1px solid #c7c7c7;
	border-radius: 10px;
	margin-bottom: 30px;
}



.file-row label {
	margin-bottom: 0px;
	text-align: center;
	width: 100%;
}

@media (min-width: 750px) {
	.file-row label {
		width: auto;
	}
}