/*
Theme Name: Instalaciones Cenit
Theme URI: https://instalacionescenit.com
Author: Instalaciones Cenit
Description: Tema corporativo para Instalaciones Cenit, especialistas en soluciones de accesibilidad.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: instalaciones-cenit
*/

:root {
  --navy: #003b73;
  --navy-dark: #002a55;
  --blue: #087ce0;
  --blue-light: #eaf6ff;
  --orange: #ff6400;
  --green: #25d366;
  --ink: #123351;
  --muted: #5f7182;
  --line: #dce8f1;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 59, 115, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { background: var(--navy-dark); color: #dbeeff; font-size: .88rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-links { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); box-shadow: 0 4px 20px rgba(0,42,85,.08); backdrop-filter: blur(12px); }
.navbar { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 106px; height: 106px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 3px; background: var(--blue); transition: width .25s ease; }
.nav-links > a:hover::after { width: 100%; }
.nav-cta { padding: 12px 20px; background: var(--orange); color: #fff; border-radius: 999px; box-shadow: 0 8px 20px rgba(255,100,0,.25); }
.menu-toggle { display: none; width: 46px; height: 42px; border: 0; border-radius: 10px; background: var(--blue-light); padding: 9px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 3px; }

.hero { position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: center; background: linear-gradient(125deg, #fafdff 0%, #e9f7ff 55%, #d8efff 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--orange)); }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-one { width: 620px; height: 620px; right: -210px; top: -220px; border: 90px solid rgba(8,124,224,.08); }
.hero-shape-two { width: 260px; height: 260px; left: -160px; bottom: -60px; background: rgba(255,100,0,.08); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; padding-block: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.hero h1 { margin: 18px 0 22px; color: var(--navy); font-size: clamp(3.3rem, 6.8vw, 6rem); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--orange); box-shadow: 0 12px 28px rgba(255,100,0,.25); }
.button-primary:hover { background: #e85700; box-shadow: 0 15px 30px rgba(255,100,0,.32); }
.button-whatsapp { color: #fff; background: var(--navy); }
.button-whatsapp img { width: 26px; height: 26px; object-fit: contain; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 30px 0 0; padding: 0; font-size: .92rem; font-weight: 700; color: var(--navy); }
.hero-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; }
.hero-visual { position: relative; }
.hero-photo { overflow: hidden; border: 10px solid rgba(255,255,255,.85); border-radius: 46% 46% 18% 18% / 32% 32% 15% 15%; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: .9; object-fit: cover; }
.hero-badge { position: absolute; left: -35px; bottom: 30px; display: grid; background: #fff; border-left: 5px solid var(--orange); border-radius: 14px; padding: 15px 22px; box-shadow: var(--shadow); }
.hero-badge strong { color: var(--navy); font-size: 1.15rem; }
.hero-badge span { color: var(--muted); font-size: .86rem; }

.trust-strip { background: #fff; box-shadow: 0 12px 35px rgba(0,59,115,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 110px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border: 0; }
.trust-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--navy)); color: #fff; font-size: 1.45rem; }
.trust-grid p { display: grid; margin: 0; }
.trust-grid strong { color: var(--navy); font-size: 1.08rem; }
.trust-grid small { color: var(--muted); }

.section { padding-block: 110px; }
.section-heading { max-width: 710px; margin: 0 auto 54px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2, .why h2, .contact h2 { margin: 12px 0 16px; color: var(--navy); font-size: clamp(2.1rem, 4.3vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0,59,115,.09); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-image { overflow: hidden; }
.service-image img { width: 100%; aspect-ratio: 1.25; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-content { position: relative; padding: 30px; }
.service-number { position: absolute; right: 24px; top: -34px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; box-shadow: 0 8px 22px rgba(255,100,0,.25); }
.service-content h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.42rem; }
.service-content p { min-height: 105px; margin: 0 0 18px; color: var(--muted); }
.service-content a, .text-link { color: var(--blue); font-weight: 800; }
.featured { border-color: rgba(8,124,224,.35); }

.why { background: linear-gradient(135deg, #f5fbff, #e9f6ff); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-gallery { position: relative; min-height: 560px; }
.why-main { width: 82%; height: 510px; object-fit: cover; border: 10px solid #fff; border-radius: 30px; box-shadow: var(--shadow); }
.why-small { position: absolute; right: 0; bottom: 0; width: 45%; aspect-ratio: 1; object-fit: cover; border: 9px solid #fff; border-radius: 24px; box-shadow: var(--shadow); }
.lead { color: var(--muted); font-size: 1.08rem; }
.benefit-list { display: grid; gap: 20px; margin: 30px 0; }
.benefit-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.benefit-list > div > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; }
.benefit-list p { display: grid; margin: 0; color: var(--muted); }
.benefit-list strong { color: var(--navy); font-size: 1.05rem; }

.process { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.process::before { content: ""; position: absolute; inset: 0; opacity: .08; background: radial-gradient(circle at 90% 10%, #63c5ff 0 16%, transparent 16.2%), radial-gradient(circle at 10% 90%, #fff 0 11%, transparent 11.2%); }
.process .container { position: relative; }
.section-heading.light h2 { color: #fff; }
.section-heading.light .eyebrow { color: #75caff; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: item; }
.process-grid article { min-height: 235px; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px); }
.process-grid article > span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 50%; background: var(--orange); font-weight: 900; font-size: 1.2rem; }
.process-grid h3 { margin: 0 0 10px; font-size: 1.2rem; }
.process-grid p { margin: 0; color: #c9dfef; }

.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.contact-copy > p { color: var(--muted); font-size: 1.06rem; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; }
.contact-cards a { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.contact-cards a:hover { border-color: var(--blue); transform: translateX(4px); }
.contact-cards a > span { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: 1.25rem; }
.contact-cards div { display: grid; min-width: 0; }
.contact-cards small { color: var(--muted); }
.contact-cards strong { overflow-wrap: anywhere; color: var(--navy); }
.contact-form { padding: 36px; background: #f6fbff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; margin-bottom: 17px; color: var(--navy); font-size: .92rem; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #cbdbe7; border-radius: 11px; background: #fff; color: var(--ink); padding: 13px 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,124,224,.12); }
.contact-form textarea { resize: vertical; }
.consent { grid-template-columns: 20px 1fr; align-items: start; font-weight: 500 !important; color: var(--muted) !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.submit-button { width: 100%; }
.form-status { min-height: 24px; margin: 14px 0 0; text-align: center; font-weight: 700; }
.form-status.success { color: #11763b; }
.form-status.error { color: #b42318; }

.footer { padding: 64px 0 24px; background: var(--navy-dark); color: #d2e5f3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr; gap: 60px; }
.footer-brand img { width: 130px; height: 130px; object-fit: contain; margin-top: -24px; }
.footer-brand p { max-width: 310px; }
.footer h3 { margin: 0 0 16px; color: #fff; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }
.floating-whatsapp { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px); }
.floating-whatsapp img { width: 36px; height: 36px; object-fit: contain; }

@media (max-width: 980px) {
  .topbar-inner > span, .topbar-links a:last-child { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 120px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .nav-cta { text-align: center; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 610px; margin-inline: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); margin-inline: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-gallery { max-width: 650px; margin-inline: auto; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .navbar { height: 76px; }
  .brand img { width: 88px; height: 88px; }
  .nav-links { top: 104px; }
  .hero { min-height: auto; }
  .hero-grid { padding-block: 60px 80px; gap: 50px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-points { display: grid; text-align: left; }
  .hero-badge { left: 8px; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .trust-grid > div { min-height: 82px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 20px; }
  .section { padding-block: 78px; }
  .service-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; max-width: none; }
  .service-content p { min-height: auto; }
  .why-grid, .contact-grid { gap: 48px; }
  .why-gallery { min-height: 430px; }
  .why-main { height: 390px; }
  .why-small { width: 48%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .footer-grid { gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
