/* =========================================================================
   Ophtalmic Center – estilos del header, footer y ajustes sobre Astra
   ====================================================================== */

/* ---- Ajustes generales sobre el tema Astra (solo en páginas del layout) ---- */
/* Astra subraya todos los enlaces del contenido; el diseño no los lleva. */
body.ocl-page .entry-content a { text-decoration: none; }
body.ocl-page .entry-content a.underline,
body.ocl-page .entry-content .underline { text-decoration: underline; }

/* Bandas de llamado a la acción en azul (reemplazan los fondos negros). */
.ocl-cta {
	position: relative;
	overflow: hidden;
	background-color: #005eb8;
	color: #fff;
}
.ocl-cta::before,
.ocl-cta::after {
	content: '';
	position: absolute;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}
.ocl-cta::before { width: 360px; height: 360px; left: -110px; bottom: -190px; }
.ocl-cta::after  { width: 260px; height: 260px; right: -80px; top: -120px; }
.ocl-cta > * { position: relative; z-index: 1; }
body.ocl-page .entry-content .ocl-cta :where(h1, h2, h3, h4) { color: #fff; }
.ocl-cta p { color: #eaf2fb; }
.ocl-btn-white {
	background: #fff; color: #005eb8 !important;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
	transition: background-color .2s ease, transform .2s ease;
}
.ocl-btn-white:hover { background: #f3f5f6; transform: translateY(-1px); }
.ocl-btn-outline {
	border: 1px solid #fff; color: #fff !important;
	transition: background-color .2s ease, color .2s ease;
}
.ocl-btn-outline:hover { background: #fff; color: #005eb8 !important; }

/* ---- Contenedor del header ---- */
.ocl-container {
	width: 100%;
	max-width: 1720px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.ocl-container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---- Barra superior ---- */
.ocl-topbar a { text-decoration: none !important; }

/* ---- Header ---- */
.ocl-header { top: 0; }
body.admin-bar .ocl-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ocl-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .ocl-header { top: 0; } }

.ocl-header a,
.ocl-footer a { text-decoration: none !important; }
.ocl-header button {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	color: inherit;
}
.ocl-header .ocl-search-toggle,
.ocl-header .ocl-burger { color: #374151; }
.ocl-header .ocl-search-toggle:hover,
.ocl-header .ocl-burger:hover { color: #005eb8; }

.ocl-logo { margin-right: 1rem; }
.ocl-logo img { display: block; max-width: none; }

.ocl-nav .ocl-nav-link { color: #374151; white-space: nowrap; }
.ocl-nav .ocl-nav-link.text-oc-blue { color: #004a8e; }
.ocl-nav .ocl-nav-link:hover,
.ocl-nav .ocl-nav-link.ocl-active { color: #005eb8; }
.ocl-nav .ocl-dropdown:hover > .ocl-nav-link { color: #005eb8; }

/* Submenús (mismo estilo que en Inicio) */
.ocl-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #fff;
	min-width: 240px;
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
	z-index: 100;
	border-top: 3px solid #005eb8;
	padding: 0;
	margin: 0;
}
.ocl-dropdown-menu::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	height: 20px;
}
.ocl-dropdown:hover .ocl-dropdown-menu,
.ocl-dropdown:focus-within .ocl-dropdown-menu { display: block; }
.ocl-dropdown-menu a {
	color: #374151;
	padding: 12px 16px;
	display: block;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	border-bottom: 1px solid #f3f4f6;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.ocl-dropdown-menu a:last-child { border-bottom: none; }
.ocl-dropdown-menu a:hover,
.ocl-dropdown-menu a.ocl-current {
	background-color: #f3f5f6;
	color: #005eb8;
	padding-left: 20px;
}

/* Buscador */
.ocl-search-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.ocl-search-panel[hidden] { display: none; }
.ocl-search-panel input[type="search"] { width: 100%; }

/* Menú móvil */
.ocl-mobile {
	border-top: 1px solid #e5e7eb;
	background: #fff;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}
.ocl-mobile[hidden] { display: none; }
.ocl-header .ocl-m-link {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	padding: 14px 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #374151;
	border-bottom: 1px solid #f3f4f6;
	text-align: left;
}
.ocl-header .ocl-m-link.text-zeiss-blue { color: #005eb8; }
.ocl-header .ocl-m-link.text-oc-blue { color: #004a8e; }
.ocl-m-toggle i { transition: transform .2s ease; }
.ocl-m-group.ocl-open .ocl-m-toggle i { transform: rotate(180deg); }
.ocl-m-sub { display: none; padding: 4px 0 8px 12px; border-bottom: 1px solid #f3f4f6; }
.ocl-m-group.ocl-open .ocl-m-sub { display: block; }
.ocl-m-sub a {
	display: block;
	padding: 10px 4px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}
.ocl-m-sub a:hover,
.ocl-m-sub a.ocl-current { color: #005eb8; }
.ocl-m-cta {
	display: block;
	margin: 16px 0 8px;
	text-align: center;
	background: #005eb8;
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: 9999px;
}
.ocl-m-contact { padding: 8px 4px 16px; font-size: 13px; }
.ocl-m-contact a { display: flex; gap: 8px; align-items: center; padding: 6px 0; color: #374151; }

/* ---- Footer ---- */
.ocl-footer ul { list-style: none; margin: 0; padding: 0; }
.ocl-footer li { margin-left: 0; }
.ocl-footer .ocl-libro {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
/* Copyright alineado a la derecha, dejando espacio para los botones flotantes */
.ocl-copy {
	max-width: 28rem;
	margin-left: auto;
	text-align: right;
	padding-right: 5.5rem;
}
.ocl-copy-links { justify-content: flex-end; }
@media (max-width: 767px) {
	.ocl-copy { max-width: none; text-align: center; padding-right: 0; }
	.ocl-copy-links { justify-content: center; }
}

/* ---- Botón flotante de WhatsApp: justo encima de la flecha "subir" de Astra ---- */
.ocl-whatsapp {
	position: fixed;
	right: 18px;
	bottom: 78px;
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	background: #22c55e;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .2), 0 4px 6px -4px rgba(0, 0, 0, .2);
	z-index: 9999;
	text-decoration: none !important;
	transition: transform .2s ease, background-color .2s ease;
}
.ocl-whatsapp:hover { background: #16a34a; transform: scale(1.1); }

/* ---- Bloque de contacto ---- */
.ocl-contacto label.ocl-robot { margin: 0; }
.ocl-contacto select { appearance: auto; }

/* Las anclas (#contacto, #especialistas…) no quedan tapadas por el header fijo */
body.ocl-page [id] { scroll-margin-top: 110px; }

/* Ancho completo: sin el margen de 20 px que Astra agrega al artículo */
body.ocl-full .site-main > article.ast-article-single,
body.ocl-full.ast-page-builder-template .site-main > article {
	padding: 0 !important;
	margin: 0 !important;
}
body.ocl-full .entry-content { margin: 0 !important; }
body.ocl-full .entry-content > *:first-child { margin-top: 0; }

/* Astra anula los anchos máximos dentro del contenido (max-width:none).
 * Esto devuelve a los contenedores su ancho previsto para que el contenido quede centrado. */
body.ocl-page .entry-content[data-ast-blocks-layout] .container { width: 100%; }
@media (min-width: 640px) { body.ocl-page .entry-content[data-ast-blocks-layout] .container { max-width: 640px; } }
@media (min-width: 768px) { body.ocl-page .entry-content[data-ast-blocks-layout] .container { max-width: 768px; } }
@media (min-width: 1024px) { body.ocl-page .entry-content[data-ast-blocks-layout] .container { max-width: 1024px; } }
@media (min-width: 1280px) { body.ocl-page .entry-content[data-ast-blocks-layout] .container { max-width: 1280px; } }
@media (min-width: 1536px) { body.ocl-page .entry-content[data-ast-blocks-layout] .container { max-width: 1536px; } }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-xl { max-width: 36rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-lg { max-width: 32rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-2xl { max-width: 42rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-3xl { max-width: 48rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-4xl { max-width: 56rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-5xl { max-width: 64rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-6xl { max-width: 72rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-7xl { max-width: 80rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-xs { max-width: 20rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-sm { max-width: 24rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-md { max-width: 28rem; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-\[1600px\] { max-width: 1600px; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-\[250px\] { max-width: 250px; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-\[260px\] { max-width: 260px; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-\[280px\] { max-width: 280px; }
body.ocl-page .entry-content[data-ast-blocks-layout] .max-w-\[1200px\] { max-width: 1200px; }
