/* Soinse – estilos principales. Paleta derivada del logo (azul #0058A8) con azul marino y grafito.
   Diseno oscuro sobre fotografias: el unico fondo blanco es el del area del logo original. */

:root {
	--navy: #0b2545;
	--navy-2: #12335f;
	--blue: #0058a8;
	--blue-hover: #1b6fc2;
	--sky: #9fcbff;
	--text: #e8eef6;
	--text-soft: #cdd9e8;
	--line: rgba(255, 255, 255, .22);
	--panel: rgba(7, 20, 40, .6);
	--panel-solid: #0a1d38;
	--radius: 10px;
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--navy); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--navy);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid #ffbf2f; outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue); color: #fff;
	padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* Botones */
.btn {
	display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
	font-weight: 650; font-size: 1rem; line-height: 1.2; padding: 14px 26px;
	border: 2px solid var(--blue); border-radius: 6px; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Encabezado: fondo azul marino; solo el recuadro del logo es blanco */
.site-header {
	position: sticky; top: 0; z-index: 50; background: var(--navy);
	border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: block; flex: none; background: #fff; padding: 4px 10px; border-radius: 6px; }
.brand__logo { height: 50px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
	display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 6px;
}
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0; background: transparent; border: 1.5px solid var(--line);
	border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; content: ""; position: relative;
	transition: transform .2s, background .2s;
}
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Fondos fotograficos: foto + capa/degradado oscuro para mantener el contraste del texto */
.bg-photo {
	background-color: var(--navy);
	background-image: var(--ov, linear-gradient(180deg, rgba(11, 37, 69, .78), rgba(11, 37, 69, .7))), var(--bg-img);
	background-size: cover;
	background-position: center;
	color: var(--text);
}
.bg-photo--hero { --ov: linear-gradient(90deg, rgba(8, 24, 47, .9) 0%, rgba(8, 24, 47, .7) 45%, rgba(8, 24, 47, .22) 100%); }
.bg-photo--cta { --ov: linear-gradient(90deg, rgba(11, 37, 69, .86), rgba(11, 37, 69, .6)); }
.bg-photo--strip { --ov: linear-gradient(180deg, rgba(10, 29, 56, .9), rgba(10, 29, 56, .88)); }
.bg-photo--footer { --ov: linear-gradient(180deg, rgba(6, 18, 36, .9), rgba(6, 18, 36, .94)); }

/* Portada */
.hero { padding: clamp(72px, 12vw, 150px) 0; }
.hero-inner { max-width: 1160px; }
.hero-copy { max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sky); margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Franja de sectores */
.sectors { color: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectors-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 22px 0; }
.sectors-title { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); font-weight: 600; }
.sectors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sectors li { font-weight: 650; padding-left: 14px; position: relative; }
.sectors li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--sky); border-radius: 50%; }

/* Secciones */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-head { max-width: 740px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--text-soft); margin-bottom: 0; }

/* Paneles oscuros translucidos (dejan ver la fotografia) */
.card, .steps li, .contact-card, .form-box {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
	.card, .steps li, .contact-card, .form-box { background: var(--panel-solid); }
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border-top: 4px solid var(--blue); padding: 26px 22px; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px;
	background: var(--blue); color: #fff;
}
.card__num { font-weight: 800; font-size: 1.6rem; color: rgba(255, 255, 255, .5); letter-spacing: -.02em; }
.card p { color: var(--text-soft); margin: 0; }

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy p { color: var(--text-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 72px; }
.steps li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-weight: 800; font-size: 1.35rem; color: var(--sky);
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--text-soft); }

.gallery { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-weight: 650;
	background: linear-gradient(180deg, rgba(11, 37, 69, 0), rgba(7, 20, 40, .92));
}

/* Llamada a la accion */
.cta { padding: 64px 0; }
.cta h2, .cta p { margin-bottom: .35em; }
.cta p { color: var(--text-soft); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card {
	display: flex; gap: 18px; align-items: center; border-left: 5px solid var(--blue); padding: 24px; margin-bottom: 20px;
}
.contact-card__avatar {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
	background: var(--blue); color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em;
}
.contact-card p { margin: 0; }
.contact-card__name { font-size: 1.2rem; font-weight: 750; color: #fff; }
.contact-card__role { color: var(--text-soft); margin-bottom: 6px !important; }
.contact-card__mail { font-weight: 650; word-break: break-word; }
.contact-note { color: var(--text-soft); font-size: .95rem; }

/* Formulario: panel oscuro translucido y campos oscuros con buen contraste */
.form-box { padding: clamp(20px, 4vw, 32px); color-scheme: dark; }
.form-box h3 { font-size: 1.3rem; margin-bottom: .2em; }
.form-hint { color: var(--text-soft); font-size: .92rem; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; color: #fff; }
.field .optional { font-weight: 400; color: var(--text-soft); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px solid #9db4cf; border-radius: 6px; padding: 12px 14px;
}
.field select option { background: var(--panel-solid); color: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
	border-color: var(--sky); background: rgba(255, 255, 255, .14); outline: 3px solid rgba(159, 203, 255, .45); outline-offset: 0;
}
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; border: 1px solid; }
.notice--success { background: rgba(22, 101, 52, .45); color: #dcfce7; border-color: #4ade80; }
.notice--error { background: rgba(127, 29, 29, .5); color: #fee2e2; border-color: #f87171; }

/* Pie */
.site-footer { color: var(--text-soft); padding: 30px 0; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Paginas internas / 404 */
.page-content { padding: clamp(40px, 7vw, 80px) 0; max-width: 820px; }

/* Tableta */
@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.about, .contact { grid-template-columns: 1fr; }
	.bg-photo--hero { --ov: linear-gradient(180deg, rgba(8, 24, 47, .84), rgba(8, 24, 47, .7)); }
}

/* Movil */
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--line);
		box-shadow: 0 14px 24px rgba(0, 0, 0, .5); display: none; padding: 8px 16px 16px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav .btn { margin: 8px 0 0; text-align: center; }
	.site-nav a:not(.btn) { padding: 14px; }
}
@media (max-width: 640px) {
	.cards { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr; }
	.quote-form { grid-template-columns: 1fr; }
	.brand__logo { height: 44px; }
	.contact-card { flex-direction: column; align-items: flex-start; }
	.cta-inner .btn, .hero-actions .btn { width: 100%; text-align: center; }
}

@media print { .site-header, .nav-toggle { display: none; } }
