/*
Theme Name: Hello DAC
Template: hello-elementor
Description: Tema hijo de Hello Elementor para Dionisio Ácido Carbónico. Cabecera, pie, slider y estilos que reproducen la web original (Bridge + WPBakery).
Version: 1.0.0
Text Domain: hello-dac
*/

/* ---------- Base (valores de Bridge) ---------- */
:root { --dac-blue: #003494; --dac-footer: #1c3f80; --dac-text: #818181; --dac-bg: #f6f6f6; --dac-wrap: 1100px; }
html { scroll-behavior: smooth; }
body { background: var(--dac-bg); font-family: "Montserrat", sans-serif; font-size: 14px; line-height: 26px; color: var(--dac-text); }
body, button, input, select, textarea { font-family: "Montserrat", sans-serif; }
a { color: var(--dac-blue); }
a:hover, a:active { color: var(--dac-blue); }
.dac-wrap { width: 100%; max-width: var(--dac-wrap); margin: 0 auto; }
.elementor-widget-text-editor p { margin: 0; }
.elementor-widget-text-editor p + p { margin-top: 0; }
/* Páginas legales (plantilla por defecto) */
body:not(.elementor-page) .site-main { max-width: var(--dac-wrap); margin: 0 auto; padding: 60px 20px; background: #fff; }
body:not(.elementor-page) .site-main h1, body:not(.elementor-page) .site-main h2, body:not(.elementor-page) .site-main h3 { color: var(--dac-blue); }

/* ---------- Cabecera ---------- */
/* Fija y encogible como en Bridge: 100 px arriba, 57 px (logo 47 px) al hacer scroll. El hueco lo reserva el body. */
body { padding-top: 100px; }
.dac-header { position: fixed; top: 0; left: 0; right: 0; z-index: 990; background: #fff; height: 100px; transition: height .2s; }
.admin-bar .dac-header { top: 32px; }
.dac-header .dac-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.dac-logo { display: block; line-height: 0; }
.dac-logo img { height: 90px; width: auto; max-width: none; display: block; transition: height .2s; }
.dac-menu a { transition: color .15s, line-height .2s; }
.dac-header.is-scrolled { height: 57px; }
.dac-header.is-scrolled .dac-logo img { height: 47px; }
.dac-header.is-scrolled .dac-menu a { line-height: 57px; }
.dac-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.dac-menu li { margin: 0; }
.dac-menu a { display: block; padding: 0 17px; line-height: 100px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--dac-blue); text-decoration: none; }
.dac-menu a:hover { color: #2c6ad8; }
.dac-menu li:last-child a { padding-right: 0; }
.dac-burger, .dac-burger:hover, .dac-burger:focus { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.dac-burger span { display: block; width: 24px; height: 2px; background: var(--dac-blue); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Pie ---------- */
.dac-footer { position: relative; z-index: 5; background: var(--dac-footer); color: #fff; padding: 72px 0 52px; text-align: center; }
.dac-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 25px; }
.dac-footer p { margin: 0; font-size: 14px; line-height: 26px; color: #fff; }
.dac-footer a { color: #fff; text-decoration: none; }
.dac-fcol-logo img { width: 100px; height: 100px; position: relative; top: -18px; display: inline-block; }
.dac-footer .dac-ftel { font-size: 24px; line-height: 29px; }
.dac-fmenu { list-style: none; margin: 0; padding: 0; }
.dac-fmenu li { padding-bottom: 17px; font-size: 14px; line-height: 22px; text-transform: uppercase; }
.dac-fmenu a:hover { opacity: .8; }

/* ---------- Volver arriba ---------- */
#dac-top { position: fixed; right: 25px; bottom: 65px; z-index: 995; width: 56px; height: 56px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#dac-top.is-on { opacity: 1; visibility: visible; }
#dac-top span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid #e8e8e8; border-radius: 50%; color: #cdcdcd; background: rgba(255,255,255,.6); transition: all .2s; }
#dac-top:hover span { background: var(--dac-blue); border-color: var(--dac-blue); color: #fff; }

/* ---------- Slider de portada (antes Qode Slider) ---------- */
.dac-slider { position: relative; height: calc(100vh - 100px); min-height: 520px; overflow: hidden; background: #000; }
.admin-bar .dac-slider { height: calc(100vh - 132px); }
.dac-slide { position: absolute; inset: 0; display: none; overflow: hidden; }
.dac-slide.is-on { display: block; }
.dac-slide:first-child { display: block; }
.dac-slider.is-ready .dac-slide:first-child:not(.is-on) { display: none; }
.dac-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.dac-slide-inner { position: relative; height: 100%; max-width: var(--dac-wrap); margin: 0 auto; display: flex; align-items: center; }
.dac-slide-content { margin-left: 15%; width: 75%; color: #fff; will-change: opacity; }
.dac-sub { margin: 0 0 37px; font-size: 30px; line-height: 47px; font-weight: 400; color: #fff; }
.dac-title { margin: 0 0 35px; font-size: 65px; line-height: 56px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.dac-title span { display: block; border: 3px solid #fff; padding: 19.5px 71.5px; }
.dac-text { margin: 0 0 20px; font-size: 18px; line-height: 26px; font-weight: 500; color: #fff; }
.dac-slide.is-dark .dac-title, .dac-slide.is-dark .dac-text { color: #000; }
.dac-slide.is-dark .dac-title span { border-color: #000; }
.dac-btn, .dac-btn:visited { display: inline-block; height: 43px; line-height: 39px; padding: 0 23px; border: 2px solid var(--dac-blue); border-radius: 4px; background: var(--dac-blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all .2s; }
.dac-btn:hover { background: #fff; border-color: #fff; color: var(--dac-blue); }
.dac-ctrl, .dac-ctrl:hover, .dac-ctrl:focus, .dac-ctrl:active { position: absolute; top: 0; bottom: 0; width: 20%; z-index: 3; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; opacity: .35; transition: opacity .2s; display: flex; align-items: center; color: #fff; outline: none; box-shadow: none; }
.dac-ctrl:hover, .dac-ctrl:focus-visible { opacity: 1; }
.dac-ctrl:focus-visible span { outline: 2px solid #fff; outline-offset: 3px; }
.dac-ctrl.prev { left: 0; padding-left: 23px; justify-content: flex-start; }
.dac-ctrl.next { right: 0; padding-right: 23px; justify-content: flex-end; }
.dac-ctrl span { width: 58px; height: 58px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.dac-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 4; display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.dac-dots li { width: 8px; height: 8px; margin: 0 3px; border-radius: 10px; background: rgba(255,255,255,.5); cursor: pointer; }
.dac-dots li.is-active { background: #fff; }

/* ---------- Elementos de página ---------- */
/* Fotos de la galería «BURBUJAS» con capa negra y lupa al pasar el ratón */
.dac-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dac-gal a { position: relative; display: block; }
.dac-gal a::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.81) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") center / 30px no-repeat; opacity: 0; transition: opacity .3s; }
.dac-gal a:hover::after { opacity: 1; }

/* Productos: capa azul con el título al pasar el ratón */
.dac-prod { position: relative; overflow: hidden; }
.dac-prod img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.dac-prod .dac-prod-ov { position: absolute !important; inset: 0; width: auto !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(0,52,148,.8); opacity: 0; transition: opacity .3s; pointer-events: none; }
.dac-prod:hover .dac-prod-ov { opacity: 1; }
.dac-prod .dac-prod-ov .elementor-heading-title { text-align: center; }

/* Iconos que «aparecen» (como q_icon_animation de Bridge) */
.dac-pop .elementor-icon { transform: scale(0); transition: transform .4s cubic-bezier(.2,.8,.3,1.3); }
.dac-pop.is-in .elementor-icon { transform: scale(1); }
.elementor-editor-active .dac-pop .elementor-icon { transform: none; }

/* Formulario de contacto (Contact Form 7) */
.wpcf7 form p { margin: 0 0 20px; color: var(--dac-text); font-size: 14px; line-height: 26px; }
.wpcf7 label { display: block; color: var(--dac-text); }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; margin-top: 1px; border: 0; border-radius: 0; background: #fff; padding: 15px; font-size: 13px; line-height: 17px; color: var(--dac-text); box-shadow: none; }
.wpcf7 textarea { height: 200px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 1px solid #ddd; }
.wpcf7 input[type=submit] { height: 43px; line-height: 39px; padding: 0 23px; border: 2px solid var(--dac-blue); border-radius: 4px; background: var(--dac-blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.wpcf7 input[type=submit]:hover, .wpcf7 input[type=submit]:focus { background: #fff; border-color: var(--dac-blue); color: var(--dac-blue); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
	.dac-wrap { padding: 0 20px; }
}
@media (max-width: 1000px) {
	body { padding-top: 80px; }
	.dac-header, .dac-header.is-scrolled { height: 80px; }
	.dac-logo img, .dac-header.is-scrolled .dac-logo img { height: 64px; }
	.dac-burger { display: block; }
	.dac-nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 12px rgba(0,0,0,.08); display: none; }
	.dac-nav.is-open { display: block; }
	.dac-menu { flex-direction: column; }
	.dac-menu a, .dac-header.is-scrolled .dac-menu a { line-height: 48px; padding: 0 20px; border-top: 1px solid #eee; }
	.dac-burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.dac-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
	.dac-burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.dac-slider { height: calc(100vh - 80px); }
	.dac-slide-content { margin-left: 8%; width: 84%; }
	.dac-title { font-size: 44px; line-height: 44px; }
	.dac-title span { padding: 16px 30px; }
	.dac-sub { font-size: 24px; margin-bottom: 20px; }
	.dac-ctrl { width: 12%; }
	.dac-ctrl span { width: 44px; height: 44px; }
}
@media (max-width: 782px) { .admin-bar .dac-header { top: 0; } }
@media (max-width: 767px) {
	.dac-footer-cols { grid-template-columns: 1fr; row-gap: 30px; }
	.dac-fcol-logo img { top: 0; }
	.dac-title { font-size: 30px; line-height: 32px; }
	.dac-title span { padding: 12px 18px; border-width: 2px; }
	.dac-text { font-size: 15px; line-height: 22px; }
	.dac-sub { font-size: 20px; line-height: 28px; }
	.dac-ctrl { display: none; }
}
