@charset "utf-8";

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

:root {
	--primary: #1a1614;
	--accent: #957C62;
	--accent-light: #b09686;
	--accent-dark: #7a6350;
	--bg-cream: #faf8f6;
	--bg-white: #ffffff;
	--bg-light: #f5f1ed;
	--text-primary: #1a1614;
	--text-secondary: #4e4741;
	--text-muted: #766e67;
	--border: rgba(149, 124, 98, 0.22);
}

[data-theme="dark"] {
	--primary: #faf8f6;
	--accent: #d4a574;
	--accent-light: #e6c9a8;
	--accent-dark: #b8935f;
	--bg-cream: #0f0e0d;
	--bg-white: #1a1816;
	--bg-light: #252320;
	--text-primary: #faf8f6;
	--text-secondary: #c8c1b8;
	--text-muted: #98928a;
	--border: rgba(212, 165, 116, 0.22);
}

html,
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg-cream);
	color: var(--text-primary);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	max-width: 100%;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 950;
	background: var(--bg-white);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 14px 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text-primary);
	flex-shrink: 0;
}

.brand-hex {
	width: 38px;
	height: 38px;
	background: var(--primary);
	color: var(--bg-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	border: 2px solid var(--accent);
}

.brand-text-wrap {
	display: flex;
	flex-direction: column;
}

.brand-name {
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: -0.3px;
	color: var(--text-primary);
	line-height: 1.15;
}

.brand-sub {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--accent-dark);
	font-weight: 600;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.main-nav a {
	text-decoration: none;
	color: var(--text-secondary);
	font-size: 0.86rem;
	font-weight: 600;
	padding: 6px 10px;
	transition: color 0.2s ease, border-color 0.2s ease;
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--text-primary);
	border-bottom-color: var(--accent);
}

.main-nav a.nav-cta {
	background: var(--accent);
	color: #ffffff;
	padding: 8px 16px;
	border-bottom: none;
	font-weight: 600;
	letter-spacing: 0.4px;
}

.main-nav a.nav-cta:hover {
	background: var(--accent-dark);
	color: #ffffff;
}

.header-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.theme-toggle {
	background: var(--bg-light);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 3px;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.3s ease;
}

.theme-option {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	opacity: 0.45;
}

.light-option {
	background: #e8e5e1;
	color: #1a1614;
}

.dark-option {
	background: #3a3632;
	color: #faf8f6;
}

.theme-option.active {
	opacity: 1;
	border-color: var(--accent);
	transform: scale(1.08);
}

.bg-shapes {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.shape {
	position: absolute;
	opacity: 0.1;
	transition: opacity 0.3s ease;
}

.shape-1 {
	width: 580px;
	height: 580px;
	background: radial-gradient(circle, var(--accent), transparent);
	top: -180px;
	right: -100px;
	border-radius: 50%;
}

.shape-2 {
	width: 380px;
	height: 380px;
	background: linear-gradient(135deg, var(--accent-light), transparent);
	bottom: -140px;
	left: -90px;
	border-radius: 40% 60% 50% 50%;
}

.shape-3 {
	width: 280px;
	height: 280px;
	border: 2px solid var(--accent);
	top: 40%;
	left: 8%;
	border-radius: 30% 70% 70% 30%;
	transform: rotate(45deg);
}

.container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0;
	overflow-x: hidden;
}

.hero-section > *,
.feature-split > *,
.grid-3-cards > *,
.grid-2-cards > *,
.prose-cols > *,
.calc-controls-grid > *,
.countdown > *,
.step-timeline > *,
.footer-grid > * {
	min-width: 0;
}

.hero-section {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	min-height: 76vh;
	align-items: center;
	gap: 56px;
	padding: 64px 48px;
	position: relative;
}

.hero-section::after {
	content: '';
	position: absolute;
	right: 48%;
	top: 10%;
	width: 1px;
	height: 80%;
	background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 16px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--accent-dark);
	text-transform: uppercase;
	letter-spacing: 1.8px;
	margin-bottom: 20px;
}

.hero-badge::before {
	content: '';
	width: 36px;
	height: 2px;
	background: var(--accent);
}

.hero-title {
	font-size: 2.95rem;
	font-weight: 300;
	color: var(--text-primary);
	line-height: 1.12;
	margin-bottom: 24px;
	letter-spacing: -1px;
}

.hero-title strong {
	font-weight: 700;
	display: block;
	color: var(--accent-dark);
	margin-top: 6px;
}

[data-theme="dark"] .hero-title strong {
	color: var(--accent);
}

.hero-description {
	font-size: 1.08rem;
	font-weight: 400;
	color: var(--text-secondary);
	line-height: 1.75;
	max-width: 560px;
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.btn-primary-eibar {
	display: inline-block;
	background: var(--accent);
	color: #ffffff;
	text-decoration: none;
	padding: 15px 28px;
	font-weight: 600;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	transition: all 0.25s ease;
}

.btn-primary-eibar:hover {
	background: var(--accent-dark);
	transform: translateY(-2px);
}

.btn-outline-eibar {
	display: inline-block;
	background: transparent;
	color: var(--text-primary);
	border: 2px solid var(--accent);
	text-decoration: none;
	padding: 13px 26px;
	font-weight: 600;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	transition: all 0.25s ease;
}

.btn-outline-eibar:hover {
	background: var(--accent);
	color: #ffffff;
}

.hero-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-right: 16px;
}

.detail-card {
	background: var(--bg-white);
	padding: 28px 32px;
	border-left: 4px solid var(--accent);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
	transition: all 0.35s ease;
	position: relative;
	overflow: hidden;
}

.detail-card::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	width: 100px;
	height: 100%;
	background: linear-gradient(135deg, transparent 0%, var(--accent) 100%);
	opacity: 0.12;
	transform: skewX(-15deg) translateX(35px);
}

.detail-card:nth-child(2) {
	margin-left: 32px;
}

.detail-card:nth-child(3) {
	margin-left: 64px;
}

.detail-card:hover {
	transform: translateX(-6px);
	border-left-width: 7px;
}

.detail-header {
	display: flex;
	align-items: center;
	gap: 20px;
	position: relative;
	z-index: 1;
}

.detail-icon {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	border-radius: 12px;
	flex-shrink: 0;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
}

.detail-icon svg {
	width: 26px;
	height: 26px;
	stroke: #ffffff;
	stroke-width: 2;
}

.detail-info {
	flex: 1;
	min-width: 0;
}

.detail-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1.3px;
	margin-bottom: 4px;
}

.detail-value {
	font-size: 1.28rem;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: -0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.detail-subtext {
	font-size: 0.88rem;
	color: var(--text-secondary);
	margin-top: 8px;
	line-height: 1.55;
}

.countdown-wrapper {
	background: #1a1614;
	color: #faf8f6;
	padding: 72px 48px;
	position: relative;
	overflow: hidden;
}

.countdown-inner {
	max-width: 1240px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.countdown-label {
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
	margin-bottom: 14px;
	color: #d4a574;
}

.calc-heading {
	text-align: center;
	font-size: 2.1rem;
	font-weight: 300;
	color: #faf8f6;
	margin-bottom: 14px;
}

.calc-intro {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 36px;
	color: #c8c1b8;
	font-size: 0.98rem;
}

.calc-controls-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 36px;
	background: rgba(255, 255, 255, 0.04);
	padding: 28px;
	border: 1px solid rgba(212, 165, 116, 0.25);
}

.calc-field label {
	color: #d4a574;
	font-size: 0.76rem;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
}

.calc-field select {
	color: #faf8f6;
	background-color: rgba(26, 22, 20, 0.85);
	border: 1px solid rgba(212, 165, 116, 0.38);
	padding: 12px 34px 12px 14px;
	font-size: 0.95rem;
	font-weight: 500;
}

.calc-field select option {
	background: #1a1614;
	color: #faf8f6;
}

.countdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1120px;
	margin: 0 auto;
}

.countdown-item {
	text-align: center;
	padding: 26px 18px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	border: 1px solid rgba(212, 165, 116, 0.26);
	overflow: hidden;
}

.countdown-number {
	font-size: 2.15rem;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 10px;
	letter-spacing: -0.5px;
	color: #e6c9a8;
	white-space: nowrap;
}

.countdown-unit {
	font-size: 0.78rem;
	font-weight: 600;
	color: #c8c1b8;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.calc-note-bar {
	margin-top: 26px;
	text-align: center;
	font-size: 0.88rem;
	color: #d4a574;
}

.section-block {
	padding: 76px 48px;
}

.section-block.alt-bg {
	background: var(--bg-light);
}

.section-header-wrap {
	max-width: 820px;
	margin-bottom: 44px;
}

.section-kicker {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: var(--accent-dark);
	margin-bottom: 10px;
	display: block;
}

.section-heading {
	font-size: 2.25rem;
	font-weight: 300;
	color: var(--text-primary);
	line-height: 1.2;
	margin-bottom: 16px;
	letter-spacing: -0.5px;
}

.section-heading strong {
	font-weight: 700;
	color: var(--accent-dark);
}

[data-theme="dark"] .section-heading strong {
	color: var(--accent);
}

.grid-3-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.grid-2-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.tech-card {
	background: var(--bg-white);
	border: 1px solid var(--border);
	border-top: 4px solid var(--accent);
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.tech-card img {
	width: 100%;
	height: 215px;
	object-fit: cover;
	margin-bottom: 20px;
	border: 1px solid var(--border);
}

.tech-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 12px;
	line-height: 1.3;
}

.tech-card p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-bottom: 16px;
	line-height: 1.68;
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-dark);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	margin-top: auto;
}

[data-theme="dark"] .card-link {
	color: var(--accent);
}

.card-link:hover {
	text-decoration: underline;
}

.spec-table-wrap {
	overflow-x: auto;
	margin: 28px 0;
	background: var(--bg-white);
	border: 1px solid var(--border);
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.92rem;
}

.spec-table th {
	background: #1a1614;
	color: #faf8f6;
	padding: 15px 18px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 1px;
	border-bottom: 2px solid var(--accent);
}

.spec-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
	color: var(--text-secondary);
}

.spec-table tr:hover td {
	background: var(--bg-light);
}

.prose-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 28px;
}

.prose-block p {
	margin-bottom: 18px;
	color: var(--text-secondary);
	font-size: 0.98rem;
	line-height: 1.75;
}

.prose-block h3 {
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 22px 0 12px;
}

.feature-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 44px;
	align-items: center;
}

.feature-split img {
	width: 100%;
	height: auto;
	border-left: 6px solid var(--accent);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.step-timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 32px;
}

.step-box {
	background: var(--bg-white);
	border: 1px solid var(--border);
	padding: 24px;
	position: relative;
}

.step-num {
	display: inline-block;
	background: var(--accent);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 4px 10px;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.step-box h4 {
	font-size: 1.08rem;
	margin-bottom: 10px;
	color: var(--text-primary);
}

.step-box p {
	font-size: 0.91rem;
	color: var(--text-secondary);
	line-height: 1.62;
}

.rsvp-section {
	padding: 88px 48px;
	background: var(--bg-white);
	position: relative;
	border-top: 1px solid var(--border);
}

.rsvp-inner {
	max-width: 860px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.form-header {
	margin-bottom: 44px;
}

.form-title {
	font-size: 2.5rem;
	font-weight: 300;
	color: var(--text-primary);
	margin-bottom: 14px;
	letter-spacing: -0.8px;
	line-height: 1.15;
}

.form-title strong {
	font-weight: 700;
	color: var(--accent-dark);
}

.form-subtitle {
	font-size: 1.04rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	margin-bottom: 24px;
}

.form-group {
	margin-bottom: 24px;
	position: relative;
}

label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent-dark);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1.1px;
}

[data-theme="dark"] label {
	color: var(--accent);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 13px 12px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--text-primary);
	background: var(--bg-cream);
	border: 1px solid var(--border);
	border-bottom: 2px solid var(--accent);
	transition: all 0.25s ease;
	outline: none;
}

textarea {
	min-height: 130px;
	resize: vertical;
}

.rsvp-options {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.rsvp-option {
	position: relative;
	flex: 1;
	min-width: 150px;
}

.rsvp-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.rsvp-option label {
	display: block;
	padding: 14px 18px;
	text-align: center;
	background: var(--bg-cream);
	border: 2px solid var(--border);
	cursor: pointer;
	transition: all 0.25s ease;
	font-weight: 600;
	font-size: 0.9rem;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	color: var(--text-primary);
}

.rsvp-option input[type="radio"]:checked+label {
	background: var(--accent);
	color: #ffffff;
	border-color: var(--accent);
}

.rgpd-check-wrap {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 22px 0 28px;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.rgpd-check-wrap input[type="checkbox"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	flex-shrink: 0;
}

.rgpd-check-wrap label {
	text-transform: none;
	font-weight: 400;
	font-size: 0.9rem;
	letter-spacing: 0;
	color: var(--text-secondary);
	margin: 0;
}

.rgpd-check-wrap a {
	color: var(--accent-dark);
	font-weight: 600;
}

.submit-btn {
	width: 100%;
	padding: 20px 36px;
	font-size: 0.96rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--accent);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1.6px;
}

.submit-btn:hover {
	background: var(--accent-dark);
}

.eibar-tornilleria-albaran {
	margin-top: 28px;
	padding: 24px 28px;
	background: var(--bg-light);
	border-left: 5px solid var(--accent);
	border-top: 1px solid var(--border);
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
}

.eibar-tornilleria-albaran h4 {
	font-size: 1.15rem;
	margin-bottom: 8px;
	color: var(--accent-dark);
}

.eibar-tornilleria-albaran p {
	font-size: 0.94rem;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

footer {
	background: #1a1614;
	color: #c8c1b8;
	padding: 64px 48px 40px;
	font-weight: 400;
}

.footer-grid {
	max-width: 1320px;
	margin: 0 auto 40px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 36px;
	text-align: left;
}

.footer-col h4 {
	color: #faf8f6;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 8px;
	display: inline-block;
}

.footer-col p,
.footer-col li {
	font-size: 0.88rem;
	line-height: 1.68;
	color: #c8c1b8;
}

.footer-col ul {
	list-style: none;
}

.footer-col li {
	margin-bottom: 8px;
}

footer a {
	color: #e6c9a8;
	text-decoration: none;
	font-weight: 500;
}

footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.footer-bottom {
	max-width: 1320px;
	margin: 0 auto;
	padding-top: 24px;
	border-top: 1px solid rgba(212, 165, 116, 0.22);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.83rem;
	color: #a8a096;
}

@media (max-width: 1024px) {
	.hero-section,
	.feature-split,
	.prose-cols,
	.grid-3-cards,
	.calc-controls-grid,
	.step-timeline,
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.hero-section::after {
		display: none;
	}
	.detail-card:nth-child(2),
	.detail-card:nth-child(3) {
		margin-left: 0;
	}
	.countdown {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header-inner {
		padding: 12px 16px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.main-nav {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
	}
	.main-nav a {
		font-size: 0.8rem;
		padding: 5px 8px;
		background: var(--bg-light);
	}
	.hero-section,
	.section-block,
	.countdown-wrapper,
	.rsvp-section,
	footer {
		padding: 36px 16px;
	}
	.hero-content,
	.hero-details,
	.calc-field,
	.detail-card,
	.tech-card {
		padding-left: 0;
		padding-right: 0;
		min-width: 0;
		max-width: 100%;
	}
	.detail-card,
	.tech-card,
	.calc-controls-grid {
		padding: 20px 16px;
	}
	.detail-value {
		font-size: 1.08rem;
		white-space: normal;
	}
	.hero-title {
		font-size: 2.05rem;
	}
	.countdown {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.countdown-number {
		font-size: 1.48rem;
	}
	.form-row,
	.grid-2-cards {
		grid-template-columns: 1fr;
	}
}
