/* =====================================================================
   ChiloeDigital — Base + formulario
   El diseño usa estilos en línea (importados de Claude Design); aquí solo
   va el reset base, la tipografía global y el formulario de contacto.
   ===================================================================== */

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--cd-fuente-texto);
	color: var(--cd-texto);
	background: var(--cd-crema-2);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button { font-family: inherit; }

/* ---------- Placeholder de imágenes (zonas "Fotografía real") ---------- */
.cd-imgph {
	font-family: var(--cd-fuente-texto);
}

/* ---------- Formulario de contacto (estilo del diseño) ---------- */
.cd-form {
	background: var(--cd-crema);
	border: 1px solid var(--cd-borde);
	padding: 36px 34px;
}

.cd-form__title {
	font-family: var(--cd-fuente-titulo);
	font-weight: 500;
	font-size: 22px;
	color: var(--cd-primario);
	margin: 0 0 24px;
}

.cd-form__row { margin-bottom: 16px; }

.cd-form label {
	display: block;
	font-family: var(--cd-fuente-texto);
	font-size: 13px;
	font-weight: 600;
	color: var(--cd-texto-suave);
	margin-bottom: 7px;
}

.cd-form input,
.cd-form select,
.cd-form textarea {
	width: 100%;
	font-family: var(--cd-fuente-texto);
	font-size: 15px;
	color: var(--cd-texto);
	background: var(--cd-crema);
	border: 1px solid var(--cd-borde-input);
	border-radius: var(--cd-radio);
	padding: 13px 15px;
	transition: border-color var(--cd-trans), box-shadow var(--cd-trans);
}

.cd-form input::placeholder,
.cd-form textarea::placeholder { color: #9A968D; }

.cd-form input:focus,
.cd-form select:focus,
.cd-form textarea:focus {
	outline: none;
	border-color: var(--cd-acento);
	box-shadow: 0 0 0 3px rgba(197, 107, 69, 0.14);
}

.cd-form textarea { min-height: 120px; resize: vertical; }

/* Select con flecha propia */
.cd-select { position: relative; }
.cd-form .cd-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	cursor: pointer;
}
.cd-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 9px;
	height: 9px;
	transform: translateY(-65%) rotate(45deg);
	border-right: 1.5px solid var(--cd-primario);
	border-bottom: 1.5px solid var(--cd-primario);
	pointer-events: none;
}

.cd-form__submit {
	border: none;
	cursor: pointer;
	font-family: var(--cd-fuente-texto);
	font-size: 15px;
	font-weight: 600;
	color: var(--cd-crema);
	background: var(--cd-acento);
	padding: 15px 24px;
	border-radius: var(--cd-radio);
	margin-top: 4px;
	transition: filter var(--cd-trans);
}
.cd-form__submit:hover { filter: brightness(1.07); }

/* Honeypot anti-spam */
.cd-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Avisos de envío */
.cd-alert {
	font-family: var(--cd-fuente-texto);
	font-size: 14px;
	padding: 13px 16px;
	border-radius: var(--cd-radio);
	margin-bottom: 18px;
}
.cd-alert--ok { background: #E6F1E9; color: #1F5130; border: 1px solid #BFE0C9; }
.cd-alert--error { background: #F7E7E3; color: #8A3B26; border: 1px solid #E6C3B8; }

.cd-required { color: var(--cd-acento); }

/* ---------- Header responsive: nav que se adapta ---------- */
@media (max-width: 600px) {
	.cd-header-inner { flex-direction: column; align-items: flex-start !important; }
	.cd-nav { width: 100%; }
}
