/* =========================================================
   Dintelec Centro del Oído — main.css
   Paleta: azul marino (#163a5c) + gris claro (#f2f2f2) + blanco
   ========================================================= */

:root {
	--navy: #163a5c;
	--navy-dark: #0f2a44;
	--navy-light: #1d5384;
	--accent: #e08328;
	--bg-light: #f1f2f3;
	--text-dark: #2c2c2c;
	--text-muted: #6b6b6b;
	--white: #ffffff;
	--radius: 4px;
	--container: 1180px;
}

* { box-sizing: border-box; }

body {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--text-dark);
	margin: 0;
	background: var(--white);
	line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 12px; }

.section-title {
	text-transform: uppercase;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .5px;
	position: relative;
	padding-top: 14px;
	margin-bottom: 20px;
}
.section-title::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 40px;
	height: 3px;
	background: var(--navy);
}
.section-title.center { text-align: center; }
.section-title.center::before { left: 50%; transform: translateX(-50%); }
.section-title.on-dark { color: var(--white); }
.section-title.on-dark::before { background: var(--white); }

.btn {
	display: inline-block;
	padding: 12px 30px;
	border: 2px solid var(--navy);
	color: var(--navy);
	background: transparent;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .5px;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all .2s ease;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-dark); }
.btn-white { border-color: var(--white); color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--navy); }

/* -------------------- Header -------------------- */
.site-header {
	background: var(--bg-light);
	border-bottom: 1px solid #e4e4e4;
	position: sticky;
	top: 0;
	z-index: 500;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	max-width: var(--container);
	margin: 0 auto;
	gap: 20px;
}
.site-logo img { max-height: 50px; }
.site-logo .logo-text {
	font-size: 24px;
	font-weight: 800;
	color: var(--navy);
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.site-logo .logo-text small {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 2px;
	color: var(--text-muted);
	margin-top: 3px;
}
.primary-nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}
.primary-nav a {
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: var(--text-dark);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--navy); }

.header-extra {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.header-extra .phone-icon { margin-right: 6px; }
.header-social { display: flex; gap: 10px; border-left: 1px solid #ccc; padding-left: 16px; }
.header-social a {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px;
}

.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }

@media (max-width: 900px) {
	.header-inner { flex-wrap: wrap; }
	.primary-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		gap: 0;
		order: 3;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav a { display: block; padding: 10px 0; border-top: 1px solid #e0e0e0; }
	.menu-toggle { display: block; }
	.header-extra { margin-left: auto; }
}

/* -------------------- Hero genérico con imagen + franja de título -------------------- */
.page-hero {
	position: relative;
	min-height: 320px;
	background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
	display: flex;
	align-items: center;
	overflow: hidden;
}
.page-hero .container { width: 100%; display: flex; justify-content: flex-end; }
.page-hero-title {
	background: rgba(10, 30, 50, .82);
	color: var(--white);
	padding: 30px 40px;
	max-width: 420px;
}
.page-hero-title h1 {
	font-size: 32px;
	text-transform: uppercase;
	border-bottom: 3px solid var(--white);
	display: inline-block;
	padding-bottom: 10px;
	margin: 0;
}
.page-hero-title p { margin: 10px 0 0; font-size: 14px; opacity: .9; }

/* -------------------- Home hero -------------------- */
.home-hero {
	background: linear-gradient(120deg, #1a5c94, var(--navy-dark));
	color: var(--white);
	padding: 90px 24px;
	position: relative;
	overflow: hidden;
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero h1 { font-size: 40px; text-transform: none; line-height: 1.25; margin-bottom: 24px; }
.home-hero .partner-badge {
	position: absolute;
	top: 30px; right: 40px;
	background: var(--white);
	color: var(--navy);
	padding: 10px 18px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 13px;
}

/* -------------------- Franjas de 3 imágenes / servicios -------------------- */
.triple-banner { display: grid; grid-template-columns: repeat(3, 1fr); }
.triple-banner .panel {
	position: relative;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: 20px;
}
.triple-banner .panel::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(10,30,50,.35);
}
.triple-banner .panel span {
	position: relative;
	z-index: 1;
	color: var(--white);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
}
@media (max-width: 700px) { .triple-banner { grid-template-columns: 1fr; } }

/* -------------------- Bandas oscuras -------------------- */
.dark-strip {
	background: var(--navy);
	color: var(--white);
	padding: 26px 24px;
	text-align: center;
}
.dark-strip .eyebrow { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.dark-strip h2 { font-size: 22px; text-transform: uppercase; margin-top: 6px; }

.cta-banner {
	background: var(--navy-dark);
	color: var(--white);
	padding: 40px 24px;
	text-align: center;
}
.cta-banner h2 { font-size: 20px; text-transform: uppercase; margin-bottom: 20px; }

/* -------------------- Split (imagen + texto) -------------------- */
.split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	background: var(--bg-light);
}
.split-section .split-img { background-size: cover; background-position: center; min-height: 320px; }
.split-section .split-text {
	background: var(--navy);
	color: var(--white);
	padding: 50px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.split-section .split-text h3 { text-transform: uppercase; font-size: 20px; }
@media (max-width: 800px) { .split-section { grid-template-columns: 1fr; } }

.text-block { padding: 60px 24px; max-width: 900px; margin: 0 auto; }
.text-block p { color: var(--text-muted); }

/* -------------------- Grids de contenido (servicios, audífonos, equipo) -------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section { padding: 60px 24px; }
.section.bg-light { background: var(--bg-light); }
.section.bg-white { background: var(--white); }

.service-row {
	display: grid;
	grid-template-columns: 260px 1fr;
	align-items: stretch;
	margin-bottom: 30px;
	background: var(--white);
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.service-row.reverse { grid-template-columns: 1fr 260px; }
.service-row.reverse .service-media { order: 2; }
.service-media {
	background: var(--navy);
	color: var(--white);
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
}
.service-body { padding: 24px 28px; }
.service-body h3 { text-transform: uppercase; font-size: 16px; margin-bottom: 8px; }
.service-body p { color: var(--text-muted); font-size: 14px; margin: 0; }
@media (max-width: 700px) {
	.service-row, .service-row.reverse { grid-template-columns: 1fr; }
	.service-row.reverse .service-media { order: 0; }
}

.card {
	background: var(--white);
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	text-align: center;
	padding: 20px;
}
.card .placeholder-img {
	background: var(--bg-light);
	border: 1px dashed #c8c8c8;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 12px;
	margin-bottom: 14px;
}
.card h4 { font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* -------------------- Carrusel simple (Equipo) -------------------- */
.simple-carousel { display: flex; align-items: center; gap: 16px; }
.simple-carousel .carousel-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	flex: 1;
	scrollbar-width: none;
}
.simple-carousel .carousel-track::-webkit-scrollbar { display: none; }
.simple-carousel .carousel-track .card { min-width: 200px; flex: 1; }
.carousel-arrow {
	background: var(--navy);
	color: var(--white);
	border: none;
	width: 40px; height: 40px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
}
.carousel-arrow:hover { background: var(--navy-dark); }

/* -------------------- Timeline (Nosotros) -------------------- */
.timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--navy-light);
	color: var(--white);
}
.timeline .stage {
	padding: 40px 30px;
	position: relative;
	border-right: 1px solid rgba(255,255,255,.15);
}
.timeline .stage:last-child { border-right: none; }
.timeline .stage h3 {
	font-size: 26px;
	text-transform: uppercase;
	display: inline-block;
	border-bottom: 3px solid var(--white);
	padding-bottom: 8px;
	margin-bottom: 14px;
}
.timeline .stage.active { background: var(--navy-dark); }
.timeline .stage p { font-size: 13px; opacity: .9; margin: 0; }
@media (max-width: 900px) {
	.timeline { grid-template-columns: 1fr; }
	.timeline .stage { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
}

.value-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 60px 24px; max-width: var(--container); margin: 0 auto; }
.value-cols h3 { text-transform: uppercase; font-size: 16px; }
.value-cols p { color: var(--text-muted); font-size: 14px; }
@media (max-width: 800px) { .value-cols { grid-template-columns: 1fr; } }

/* -------------------- Contacto -------------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; }
.contact-form-col { padding: 60px 40px; background: var(--bg-light); }
.contact-map-col iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.dintelec-form input,
.dintelec-form textarea {
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 16px;
	border: 1px solid #c9c9c9;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 14px;
	background: var(--white);
}
.dintelec-form textarea { min-height: 120px; resize: vertical; }
.contact-info { margin-top: 40px; }
.contact-info h3 { text-transform: uppercase; font-size: 18px; padding-top: 14px; position: relative; }
.contact-info h3::before {
	content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--navy);
}
.contact-info p { font-size: 14px; color: var(--text-muted); }
.form-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); font-size: 14px; }
.form-notice.ok { background: #e4f6e8; color: #1e6b32; }
.form-notice.error { background: #fbe6e6; color: #9b2323; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy); color: var(--white); padding: 50px 24px 20px; text-align: center; }
.site-footer .footer-logo { max-width: 220px; margin: 0 auto 20px; }
.site-footer .footer-logo img { margin: 0 auto; }
.site-footer .tagline { max-width: 640px; margin: 0 auto 24px; font-size: 14px; opacity: .9; }
.site-footer .footer-meta {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	font-size: 13px;
	margin-bottom: 24px;
	opacity: .95;
}
.site-footer .footer-meta span { display: inline-flex; align-items: center; gap: 6px; }
.site-footer hr { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 20px 0; }
.site-footer .footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	opacity: .85;
}
.site-footer .footer-social { display: flex; gap: 10px; }
.site-footer .footer-social a {
	width: 26px; height: 26px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.5);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px;
}

/* -------------------- Utilidades -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-divider { width: 40px; height: 3px; background: var(--navy); margin-bottom: 16px; }
.small-divider.on-dark { background: var(--white); }
