/*
Theme Name: SIPEM Pro
Theme URI: https://sipem.com.ar
Author: SIPEM
Description: Tema institucional limpio para SIPEM, reconstruido desde contenido WordPress saneado.
Version: 1.0.0
Text Domain: sipem-pro
*/

:root {
  --ink: #10242d;
  --muted: #617680;
  --line: #d9e6ea;
  --navy: #052230;
  --navy2: #0b3344;
  --brand: #079bbb;
  --brand2: #12b8c8;
  --accent: #f2b84b;
  --mist: #eef7f8;
  --paper: #fff;
  --shadow: 0 22px 70px rgba(5, 34, 48, .16);
  --topbar-height: 42px;
  --header-height: 92px;
  --mobile-menu-top: calc(var(--topbar-height) + var(--header-height));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: linear-gradient(180deg, #f7fbfc 0, #fff 420px);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1280px, calc(100% - 44px)); margin: 0 auto; }

.topbar { background: var(--navy); color: #d8f4f6; font-size: 14px; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.topbar strong { color: #fff; }
.topbar-alert { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-transform: uppercase; }
.topbar-alert:before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(242, 184, 75, .16); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(217,230,234,.9); box-shadow: 0 14px 46px rgba(5,34,48,.09); backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 0; }
.brand { min-width: 0; display: flex; align-items: center; gap: 16px; color: var(--navy); text-decoration: none; }
.brand img { width: 194px; height: auto; flex: 0 0 auto; }
.brand-copy { display: none; }
.header-rail { min-width: 0; display: block; }
.main-nav { min-width: 0; display: flex; justify-content: space-between; gap: 3px; padding: 8px; border: 1px solid #deeaef; border-radius: 16px; background: linear-gradient(180deg, #fbfdfe, #f4fafb); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.main-nav a { position: relative; flex: 0 1 auto; min-width: 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 12px; color: #2b4954; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.main-nav a:hover { transform: translateY(-1px); color: var(--navy); background: #ffffff; box-shadow: 0 8px 20px rgba(5,34,48,.08); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: #fff; background: linear-gradient(180deg, var(--navy), var(--navy2)); box-shadow: 0 14px 28px rgba(5,34,48,.18); }
.header-cta { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 15px; background: linear-gradient(180deg, var(--brand2), var(--brand)); color: #fff; font-size: 15px; font-weight: 900; text-decoration: none; box-shadow: 0 12px 28px rgba(7,155,187,.24); transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(7,155,187,.3); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero-wash { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); filter: saturate(1.08); }
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(5,34,48,.96) 0%, rgba(5,34,48,.86) 46%, rgba(7,155,187,.18) 100%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 92px); }
.hero-grid { min-height: 660px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,470px); gap: 64px; align-items: center; padding: 86px 0 112px; }
.hero-copy, .hero-media { animation: rise .65s ease both; }
.hero-media { position: relative; }
.eyebrow, .section-kicker { margin: 0 0 13px; color: var(--accent); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.section-kicker { color: var(--brand); }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: 0; }
h1 { max-width: 820px; margin-bottom: 20px; font-size: clamp(46px, 6vw, 76px); }
h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 46px); }
h3 { margin-bottom: 10px; font-size: 21px; }
.hero p:not(.eyebrow) { max-width: 720px; margin: 0 0 30px; color: #dff5f8; font-size: 21px; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--brand); border-radius: 5px; background: var(--brand); color: #fff; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7,155,187,.25); }
.button.light { color: var(--navy); background: #fff; border-color: #fff; }
.button.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.72); }
.text-link { color: var(--brand); font-weight: 900; text-decoration: none; }
.hero-proof { width: min(780px,100%); margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.hero-proof span { padding: 17px 18px; border-right: 1px solid rgba(255,255,255,.18); color: #d4f0f4; }
.hero-proof span:last-child { border-right: 0; }
.hero-proof strong { display: block; color: #fff; font-size: 22px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 34px 90px rgba(0,0,0,.36); }
.hero-status, .hero-badge { position: absolute; border-radius: 7px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-status { left: -34px; bottom: 34px; width: min(310px,78%); padding: 20px; }
.hero-status span { color: var(--brand); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.hero-status strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.15; }
.hero-badge { right: -18px; top: 34px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.hero-badge strong, .hero-badge span { display: block; }
.hero-badge span { color: var(--muted); font-size: 14px; }

.emergency-strip { position: relative; z-index: 3; margin-top: -50px; }
.emergency-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 28px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.emergency-inner span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.emergency-inner strong { color: var(--navy); font-size: clamp(24px, 3vw, 36px); }
.emergency-inner a { color: var(--brand); font-weight: 900; text-decoration: none; }

.split { display: grid; grid-template-columns: minmax(0,1fr) 460px; gap: 58px; align-items: center; padding: 92px 0; }
.split p, .prose p { color: #405861; font-size: 18px; }
.image-stack { position: relative; }
.image-stack img, .split > img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.image-note { position: absolute; left: -24px; bottom: 24px; max-width: 300px; padding: 19px; border-radius: 7px; background: var(--navy); color: #fff; }
.image-note strong, .image-note span { display: block; }
.image-note span { color: #c5e5eb; font-size: 14px; }
.band { padding: 80px 0; background: linear-gradient(180deg, #eef7f8 0%, #fff 100%); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 78px 0 24px; }
.section-head.flush { margin-top: 0; }
.cards, .news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cards article, .news-card, .info-panel, .form, .pdf-panel, .pathway { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cards article { min-height: 238px; position: relative; overflow: hidden; padding: 28px; box-shadow: 0 16px 42px rgba(5,34,48,.07); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cards article:after { content: ""; position: absolute; right: 0; top: 0; width: 92px; height: 92px; background: linear-gradient(135deg, rgba(7,155,187,.17), rgba(242,184,75,.17)); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.cards article:hover, .pathway:hover, .news-card:hover { transform: translateY(-5px); box-shadow: 0 26px 70px rgba(5,34,48,.13); }
.service-mark { width: 46px; height: 46px; margin-bottom: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--navy); background: #e7f7f9; font-weight: 900; }
.cards article h3 { color: var(--navy); }
.cards article p { color: #526a73; }
.pathways { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; padding: 50px 0 10px; }
.pathway { position: relative; min-height: 178px; padding: 26px; overflow: hidden; text-decoration: none; box-shadow: 0 16px 42px rgba(5,34,48,.07); transition: transform .18s ease, box-shadow .18s ease; }
.pathway:before { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.pathway span { color: var(--brand); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.pathway strong, .pathway small { display: block; }
.pathway strong { margin: 10px 0 8px; color: var(--navy); font-size: 25px; line-height: 1.12; }
.pathway small { color: var(--muted); font-size: 15px; }
.service-grid { margin-top: 8px; }
.news-card { overflow: hidden; box-shadow: 0 16px 42px rgba(5,34,48,.07); transition: transform .18s ease, box-shadow .18s ease; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--mist); }
.news-card div { padding: 21px; }
.news-card time { color: var(--muted); font-size: 14px; font-weight: 800; }
.news-card h3 { margin-top: 8px; }
.content-page { padding: 82px 0; }
.prose { max-width: 920px; }
.cta-row { margin-top: 34px; }
.pdf-panel { padding: 18px; box-shadow: var(--shadow); }
.pdf-panel iframe { width: 100%; height: min(72vh,760px); border: 1px solid var(--line); margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; padding: 82px 0; }
.info-panel, .form { padding: 30px; box-shadow: var(--shadow); }
.big { color: var(--navy); font-size: 25px; font-weight: 900; }
.form { display: grid; gap: 15px; }
.form h2 { margin-bottom: 0; font-size: 24px; }
.form-divider { height: 1px; margin: 10px 0 2px; background: var(--line); }
.form label { display: grid; gap: 7px; color: #2d4650; font-weight: 900; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 13px 12px; color: var(--ink); background: #fbfdfe; font: inherit; }
.form input:focus, .form textarea:focus { border-color: var(--brand); outline: 3px solid rgba(7,155,187,.13); }
.form .wpcf7 { width: 100%; }
.form .wpcf7-form { display: grid; gap: 15px; }
.form .wpcf7-form p { margin: 0; }
.form .wpcf7-form label { display: grid; gap: 7px; color: #2d4650; font-weight: 900; }
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7 input[type="text"],
.form .wpcf7 input[type="email"],
.form .wpcf7 input[type="tel"],
.form .wpcf7 textarea,
.form .wpcf7 select { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 13px 12px; color: var(--ink); background: #fbfdfe; font: inherit; }
.form .wpcf7 input[type="text"]:focus,
.form .wpcf7 input[type="email"]:focus,
.form .wpcf7 input[type="tel"]:focus,
.form .wpcf7 textarea:focus,
.form .wpcf7 select:focus { border-color: var(--brand); outline: 3px solid rgba(7,155,187,.13); }
.form .wpcf7-submit { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--brand); border-radius: 5px; background: var(--brand); color: #fff; font: inherit; font-weight: 900; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.form .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7,155,187,.25); }
.form .wpcf7-spinner { margin: 10px 0 0; }
.form .wpcf7-response-output { margin: 8px 0 0 !important; border-radius: 5px; }
.narrow { max-width: 780px; padding: 82px 0; }
.thanks { min-height: 52vh; padding: 90px 0; }

footer { margin-top: 70px; padding: 58px 0; color: #e6f7f9; background: linear-gradient(135deg, #052230, #0b3344); }
footer p { color: #bed9df; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 36px; }
.footer-logo { width: 136px; padding: 8px; border-radius: 5px; background: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; }
  .brand img { width: 146px; }
  .header-rail { grid-column: 1 / -1; }
  .header-cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid #d0e2e8; border-radius: 10px; padding: 0 14px; background: #fff; cursor: pointer; position: relative; z-index: 21; }
  .menu-toggle__line { display: block; width: 20px; height: 2px; border-radius: 20px; background: var(--navy); margin: 0 0 4px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle__line:last-of-type { margin-bottom: 0; }
  .menu-toggle__text { color: var(--navy); font-weight: 900; font-size: 13px; text-transform: uppercase; margin-left: 4px; }
  .menu-toggle.is-open .menu-toggle__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open .menu-toggle__line:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open .menu-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-rail { position: fixed; top: var(--mobile-menu-top); left: 0; right: 0; z-index: 19; display: grid; gap: 12px; padding: 16px; border-bottom: 1px solid #ddeaf0; background: #fff; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .header-rail.is-open { pointer-events: auto; transform: translateY(0); opacity: 1; box-shadow: 0 20px 42px rgba(5,34,48,.2); }
  .main-nav { width: 100%; justify-content: flex-start; border-radius: 12px; padding: 9px; flex-direction: column; border: 1px solid #e2eff4; background: #fff; max-height: calc(100vh - var(--mobile-menu-top) - 140px); overflow: auto; box-shadow: none; }
  .main-nav a { width: 100%; border-radius: 9px; font-size: 14px; justify-content: flex-start; white-space: normal; }
  .main-nav a::after { left: 0; right: 0; bottom: 4px; }
  .header-cta { display: none; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(5, 34, 48, .46); z-index: 18; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; min-height: 0; }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards, .news-grid, .pathways { grid-template-columns: repeat(2,1fr); }
  .image-note { left: 18px; }
}
@media (max-width: 680px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .brand { min-width: 0; }
  .header-inner { grid-template-columns: 1fr; }
  .header-inner .header-rail { top: calc(var(--topbar-height) + 84px); }
  .menu-toggle__line { width: 18px; }
  .menu-toggle__text { display: none; }
  .main-nav { max-height: calc(100vh - calc(var(--topbar-height) + 84px) - 124px); }
  .hero-grid { padding: 62px 0 96px; }
  h1 { font-size: 42px; }
  .hero p:not(.eyebrow) { font-size: 18px; }
  .hero-proof, .cards, .news-grid, .pathways { grid-template-columns: 1fr; }
  .hero-proof span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero-status, .hero-badge { position: static; width: auto; margin-top: 12px; }
  .emergency-inner, .section-head { align-items: flex-start; flex-direction: column; }
  .split, .content-page, .contact-grid, .narrow { padding: 58px 0; }
}
