/* ==========================================================================
   Dolce Tropea - Estilos
   ========================================================================== */

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
	--font-base: 'Montserrat', Arial, sans-serif;
	--color-text: #929292;
	--color-heading: #333333;
	--color-accent: #a160ff;
	--color-accent-dark: #8224e3;
	--color-gray-bg: #f4f4f5;
	--color-input-bg: #f7f7f7;
	--color-input-border: #d3d3d3;
	--color-footer-bg: #f2f2f2;
	--color-footer-text: #848484;
	--color-white: #ffffff;
	--header-height: 100px;
	--container: 1140px;
	--gutter: 30px;
}

@media (max-width: 767px) {
	:root {
		--gutter: 20px;
	}
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: .2px;
	color: var(--color-text);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-heading);
}

h1 { font-size: 23px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }

p {
	margin: 0 0 20px;
}

a {
	color: var(--color-heading);
	text-decoration: none;
	transition: color .3s;
}

a:hover {
	color: var(--color-accent);
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

iframe {
	display: block;
	border: 0;
}

button {
	font-family: inherit;
}

.sr-only,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100000;
	top: 6px;
	left: 6px;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto;
	background: #f1f1f1;
	color: #21759b;
	font-size: 14px;
	font-weight: 600;
}

/* El padding lateral solo se nota en pantallas angostas: en PC el ancho útil
   sigue siendo 1140 px (1100 px en presupuesto), igual que el sitio original. */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container-1100 {
	max-width: calc(1100px + 2 * var(--gutter));
}

/* Compensa el header fijo al saltar a las anclas */
.anchor {
	position: relative;
	top: calc(var(--header-height) * -1);
	visibility: hidden;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: var(--header-height);
	background-color: transparent;
	transition: background-color .3s, opacity .3s;
}

.site-header.is-sticky {
	position: fixed;
	background-color: #000000;
	opacity: .9;
	animation: header-fade .3s ease;
}

@keyframes header-fade {
	from { opacity: 0; }
	to   { opacity: .9; }
}

.header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1400px;
	max-width: 90%;
	height: 100%;
	margin: 0 auto;
}

.main-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
}

.menu-right {
	justify-content: flex-end;
}

.menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	display: block;
	padding: 0 28px;
	font-size: 12px;
	font-weight: 600;
	line-height: var(--header-height);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-white);
}

.menu a:hover {
	color: var(--color-white);
}

.menu a span {
	position: relative;
	display: inline-block;
	line-height: 1;
}

.menu a span::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: 4px;
	background-color: var(--color-accent-dark);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
}

.menu a:hover span::after {
	opacity: 1;
	transform: translateY(0);
}

.header-logo {
	display: block;
	padding: 0 10px;
}

.header-logo img,
.header-logo-mobile img {
	display: block;
	width: 200px;
	max-width: 500px;
	height: auto;
}

.header-logo-mobile {
	display: none;
}

/* Botón hamburguesa */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--color-white);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

.hamburger {
	position: relative;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

.menu-toggle[aria-expanded="true"] .hamburger::before {
	transform: translateY(8px);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
	transform: translateY(-8px);
}

/* Menú mobile (panel lateral) */
.mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	width: 300px;
	max-width: 85%;
	height: 100%;
	overflow-y: auto;
	background-color: #333333;
	transform: translateX(-100%);
	transition: transform .3s ease;
}

.mobile-nav.is-open {
	transform: translateX(0);
}

.mobile-nav-close {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	font-size: 15px;
	line-height: 1;
	text-align: left;
	color: #cccccc;
	background-color: #222222;
	border: 0;
	cursor: pointer;
}

.mobile-nav-close:hover {
	color: var(--color-white);
}

.mobile-nav-close .close-icon {
	font-size: 22px;
	line-height: 1;
}

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

.mobile-nav li {
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav a {
	display: block;
	padding: 12px 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #cccccc;
}

.mobile-nav a:hover {
	color: var(--color-white);
}

.mobile-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background-color: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.mobile-nav-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.menu-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	overflow: hidden;
}

.hero-slideshow,
.hero-slide,
.hero-overlay {
	position: absolute;
	inset: 0;
}

.hero-slide {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	opacity: 0;
	transition: opacity .5s ease;
}

.hero-slide.is-active {
	opacity: 1;
}

.hero-overlay {
	background-color: #000000;
	opacity: .6;
}

.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--container);
	padding: 0 15px;
	text-align: center;
}

.hero-title {
	margin: 0 0 20px;
	font-size: 45px;
	font-weight: 600;
	line-height: 1;
	color: var(--color-white);
}

.hero-subtitle {
	margin: 0;
	font-size: 15px;
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section {
	position: relative;
	padding: 80px 0;
}

.section-gray {
	background-color: var(--color-gray-bg);
}

.section-title {
	margin: 0 0 30px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   Presupuesto + Nuestra Historia
   -------------------------------------------------------------------------- */

.section-presupuesto {
	padding: 100px 0;
	background-color: var(--color-white);
}

.budget-form {
	margin-bottom: 20px;
	text-align: center;
	background-color: var(--color-white);
}

.form-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	color: var(--color-heading);
}

.form-description {
	margin: 0 0 10px;
}

.form-field {
	padding: 10px;
	text-align: left;
}

.budget-form input[type="text"],
.budget-form input[type="tel"],
.budget-form input[type="email"],
.budget-form textarea {
	display: block;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	color: #333333;
	background-color: var(--color-input-bg);
	border: 1px solid var(--color-input-border);
	border-radius: 3px;
	transition: border-color .3s;
	-webkit-appearance: none;
	appearance: none;
}

.budget-form textarea {
	min-height: 150px;
	resize: vertical;
}

.budget-form input:focus,
.budget-form textarea:focus {
	border-color: #bbbbbb;
	outline: 0;
}

.budget-form ::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.form-field.has-error input,
.form-field.has-error textarea {
	border-color: #b94a48;
}

.field-error {
	display: block;
	min-height: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #b94a48;
}

.field-error:not(:empty) {
	margin-top: 4px;
}

/* Honeypot: fuera de la vista pero accesible para bots */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-submit {
	padding: 10px;
}

.btn {
	display: inline-block;
	margin: 0;
	padding: 14px 20px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
	color: var(--color-white);
	background-color: var(--color-accent);
	border: 1px solid var(--color-white);
	border-radius: 0;
	cursor: pointer;
	transition: background-color .3s, opacity .3s;
}

.btn:hover,
.btn:focus {
	background-color: #333333;
	color: var(--color-white);
}

.btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.form-message {
	padding: 0 10px;
	font-size: 14px;
}

.form-message:empty {
	display: none;
}

.form-message.is-success {
	color: #468847;
}

.form-message.is-error {
	color: #b94a48;
}

.video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000000;
}

.video-wrapper iframe,
.video-facade,
.video-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.video-facade {
	display: block;
	padding: 0;
	background: #000000;
	border: 0;
	cursor: pointer;
}

.video-facade img {
	object-fit: cover;
}

.video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: .85;
	transition: opacity .2s;
}

.video-play path:first-child {
	fill: #212121;
	transition: fill .2s;
}

.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
	opacity: 1;
}

.video-facade:hover .video-play path:first-child,
.video-facade:focus-visible .video-play path:first-child {
	fill: #ff0000;
}

/* --------------------------------------------------------------------------
   Productos y Servicios
   -------------------------------------------------------------------------- */

.product-row {
	display: flex;
	align-items: center;
	max-width: 780px;
	margin: 0 auto;
}

.product-image {
	flex: 0 0 28%;
	max-width: 28%;
	text-align: center;
}

.product-image img {
	border-radius: 10px;
}

.product-text {
	flex: 0 0 72%;
	max-width: 72%;
}

.product-row--reverse {
	flex-direction: row-reverse;
}

.product-row--reverse .product-image {
	flex-basis: 30.952%;
	max-width: 30.952%;
}

.product-row--reverse .product-text {
	flex-basis: 69.048%;
	max-width: 69.048%;
}

.product-row--indent .product-text {
	padding-left: 20px;
}

.product-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--color-heading);
}

.product-text p {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.7em;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

.gallery {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -30px -30px 0;
}

.gallery-item {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
	margin: 0;
	padding: 0 30px 30px 0;
	text-align: center;
}

.gallery-item a {
	display: block;
}

.gallery-item img {
	display: block;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.section-contacto {
	padding: 100px 0;
}

.contact-info {
	text-align: center;
}

.contact-info h3 {
	margin: 0 0 20px;
	font-size: 18px;
	color: var(--color-heading);
}

.contact-map iframe {
	width: 100%;
	height: 600px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding: 15px 0;
	background-color: var(--color-footer-bg);
}

.footer-inner {
	width: 1400px;
	max-width: 90%;
	margin: 0 auto;
	text-align: center;
}

.copyright {
	margin: 0;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-footer-text);
}

/* --------------------------------------------------------------------------
   Botones flotantes
   -------------------------------------------------------------------------- */

.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 80px;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-white);
	background-color: rgba(0, 0, 0, .4);
	border-radius: 2px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s, background-color .3s;
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	color: var(--color-white);
	background-color: rgba(0, 0, 0, .8);
}

.whatsapp-float {
	position: fixed;
	right: 15px;
	bottom: 15px;
	z-index: 99990;
	display: block;
	width: 50px;
	height: 50px;
	cursor: pointer;
}

.whatsapp-float svg {
	display: block;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, .87);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
	user-select: none;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox-figure {
	margin: 0;
	text-align: center;
}

.lightbox-image {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	box-shadow: 0 0 30px rgba(0, 0, 0, .3);
}

.lightbox-counter {
	position: fixed;
	top: 0;
	left: 0;
	padding: 15px 20px;
	font-size: 15px;
	line-height: 1;
	color: rgba(238, 238, 238, .9);
}

.lightbox button {
	position: absolute;
	padding: 0;
	font-size: 40px;
	line-height: 1;
	color: rgba(238, 238, 238, .9);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color .3s;
}

.lightbox button:hover {
	color: var(--color-white);
}

.lightbox-close {
	top: 10px;
	right: 20px;
}

.lightbox-prev,
.lightbox-next {
	top: 50%;
	width: 60px;
	height: 80px;
	font-size: 60px !important;
	transform: translateY(-50%);
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet y celular: menú hamburguesa (breakpoint de OceanWP) */
@media (max-width: 959px) {
	.main-nav {
		display: none;
	}

	.header-inner {
		justify-content: space-between;
	}

	.header-logo-mobile {
		display: block;
	}

	.menu-toggle {
		display: flex;
	}
}

/* Tablet (breakpoint de Elementor) */
@media (max-width: 1024px) {
	.section {
		padding: 70px 0;
	}

	.section-presupuesto,
	.section-contacto {
		padding: 80px 0;
	}

	.product-image img {
		max-width: 170px;
	}

	.product-text {
		padding-left: 10px;
	}

	.product-row--reverse .product-text {
		padding-left: 0;
		padding-right: 10px;
	}

	.product-row + .product-row {
		margin-top: 30px;
	}

	.gallery {
		margin: 0 -20px -20px 0;
	}

	.gallery-item {
		padding: 0 20px 20px 0;
	}

	.contact-map iframe {
		height: 450px;
	}
}

/* Celular */
@media (max-width: 767px) {
	.hero {
		min-height: 100vh;
		min-height: 100svh;
		padding: 100px 0 50px;
	}

	.hero-content {
		padding: 0 var(--gutter);
	}

	.hero-title {
		font-size: 34px;
		line-height: 1.1;
	}

	.hero-subtitle {
		font-size: 13px;
		line-height: 1.6;
	}

	.section,
	.section-presupuesto,
	.section-contacto {
		padding: 60px 0;
	}

	.section-galeria {
		padding: 50px 0;
	}

	.section-title {
		margin-bottom: 25px;
		font-size: 24px;
	}

	.section-presupuesto .container-1100 {
		max-width: calc(500px + 2 * var(--gutter));
	}

	.form-field,
	.form-submit {
		padding: 8px 0;
	}

	.form-description {
		font-size: 14px;
		line-height: 1.6;
	}

	.btn {
		width: 100%;
		padding: 16px 20px;
	}

	/* Productos: ícono arriba, texto centrado */
	.product-row,
	.product-row--reverse {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.product-row + .product-row {
		margin-top: 45px;
	}

	.product-image,
	.product-text,
	.product-row--reverse .product-image,
	.product-row--reverse .product-text {
		flex-basis: auto;
		max-width: 100%;
		padding: 0;
	}

	.product-row--indent .product-text {
		padding: 0;
	}

	.product-image {
		margin-bottom: 18px;
	}

	.product-image img {
		width: 130px;
	}

	.product-title {
		margin-bottom: 10px;
		text-align: center;
	}

	/* Galería: misma grilla 3x3 que en PC, con separación chica */
	.gallery {
		margin: 0 -8px -8px 0;
	}

	.gallery-item {
		flex-basis: 33.3333%;
		max-width: 33.3333%;
		padding: 0 8px 8px 0;
	}

	/* Contacto */
	.contact-info h3 {
		margin-bottom: 14px;
		font-size: 16px;
		overflow-wrap: anywhere;
	}

	.section-contacto .contact-info {
		margin-top: 0;
	}

	.contact-map iframe {
		height: 350px;
	}

	.copyright {
		line-height: 1.6;
	}

	.whatsapp-float {
		right: 10px;
		bottom: 10px;
	}

	.scroll-top {
		right: 15px;
		bottom: 75px;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 40px;
		font-size: 44px !important;
	}

	.lightbox-prev { left: 0; }
	.lightbox-next { right: 0; }
}

/* Celulares chicos */
@media (max-width: 374px) {
	.hero-title {
		font-size: 28px;
	}

	.header-logo-mobile img {
		width: 160px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
