/*
Theme Name: Comunicar Divi
Theme URI: https://comunicar.pe
Author: COMUNICAR EIRL
Description: Tema WordPress para COMUNICAR, preparado para Hostinger y compatible con Divi Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: comunicar-divi
*/

:root {
  --com-black: #111111;
  --com-carbon: #181818;
  --com-white: #ffffff;
  --com-light: #f3f3f3;
  --com-gray: #666666;
  --com-dark-gray: #333333;
  --com-gold: #d9a441;
  --com-line-dark: rgba(255,255,255,.14);
  --com-line-light: rgba(17,17,17,.12);
  --com-shadow: 0 26px 80px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--com-black);
  color: var(--com-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
*:focus-visible { outline: 2px solid var(--com-gold); outline-offset: 4px; }

.com-header {
  align-items: center;
  background: rgba(17,17,17,.96);
  border-bottom: 1px solid var(--com-line-dark);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto auto;
  padding: 18px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.com-brand { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 950; letter-spacing: .04em; }
.com-nav { align-items: center; display: flex; gap: clamp(16px, 2.4vw, 30px); justify-content: center; }
.com-nav a, .com-quote, .com-mobile-panel a, .com-btn {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.com-nav a { color: rgba(255,255,255,.72); }
.com-nav a:hover { color: var(--com-white); }
.com-quote, .com-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform .22s ease;
  white-space: nowrap;
}
.com-quote, .com-btn-light { background: var(--com-white); color: var(--com-black); }
.com-btn-dark { background: var(--com-black); color: var(--com-white); }
.com-btn-outline { border: 1px solid rgba(17,17,17,.32); color: var(--com-black); }
.com-btn-ghost { border: 1px solid rgba(255,255,255,.42); color: var(--com-white); }
.com-btn:hover, .com-quote:hover { transform: translateY(-3px); }
.com-mobile-menu { display: none; position: relative; }
.com-mobile-menu summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 5px;
  height: 42px;
  justify-items: center;
  list-style: none;
  width: 42px;
}
.com-mobile-menu summary::-webkit-details-marker { display: none; }
.com-mobile-menu summary span { background: var(--com-white); height: 2px; width: 22px; }
.com-mobile-panel {
  background: rgba(17,17,17,.98);
  border: 1px solid var(--com-line-dark);
  border-radius: 8px;
  display: grid;
  min-width: 230px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: 50px;
}
.com-mobile-panel a { padding: 13px 8px; }

.com-video-first {
  background: var(--com-black);
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}
.com-video-first video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.com-brand-intro {
  align-items: center;
  background: var(--com-light);
  color: var(--com-black);
  display: grid;
  gap: clamp(34px, 6vw, 86px);
  grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr);
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}
.com-logo-card {
  align-items: center;
  aspect-ratio: 1;
  background: var(--com-white);
  border: 1px solid var(--com-line-light);
  border-radius: 8px;
  box-shadow: var(--com-shadow);
  display: flex;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
}
.com-logo-card img { height: auto; max-width: 260px; object-fit: contain; width: 100%; }
.com-eyebrow {
  color: var(--com-gold);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.com-brand-copy h1,
.com-section-heading h2,
.com-inner-hero h1 {
  font-size: clamp(3rem, 8vw, 7.6rem);
  letter-spacing: -.055em;
  line-height: .86;
  margin: 0;
}
.com-brand-copy > p {
  color: var(--com-gray);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.7;
  max-width: 760px;
}
.com-feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 34px;
}
.com-feature {
  background: var(--com-white);
  border: 1px solid var(--com-line-light);
  border-radius: 8px;
  min-height: 210px;
  padding: 24px;
}
.com-feature span {
  color: var(--com-gold);
  display: block;
  font-size: .78rem;
  font-weight: 950;
  margin-bottom: 34px;
}
.com-feature strong {
  display: block;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  letter-spacing: -.025em;
  line-height: 1.05;
}
.com-feature p { color: var(--com-gray); line-height: 1.6; }
.com-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.com-section {
  padding: clamp(76px, 10vw, 134px) clamp(18px, 5vw, 72px);
}
.com-section-light { background: var(--com-white); color: var(--com-black); }
.com-section-dark { background: var(--com-black); color: var(--com-white); }
.com-section-gray { background: var(--com-light); color: var(--com-black); }
.com-section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(190px,.28fr) minmax(0,.72fr);
  margin-bottom: clamp(38px, 6vw, 72px);
}
.com-section-heading p:not(.com-eyebrow) { color: var(--com-gray); line-height: 1.7; }
.com-project-grid, .com-service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.com-card {
  background: var(--com-light);
  border: 1px solid var(--com-line-light);
  border-radius: 8px;
  overflow: hidden;
}
.com-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(217,164,65,.16), rgba(17,17,17,.88)), var(--com-carbon);
  overflow: hidden;
  position: relative;
}
.com-card-media img, .com-card-media video {
  height: 100%;
  object-fit: cover;
  opacity: .68;
  transition: opacity .24s ease, transform .62s ease;
  width: 100%;
}
.com-card:hover .com-card-media img,
.com-card:hover .com-card-media video {
  opacity: .86;
  transform: scale(1.07);
}
.com-card-body { padding: 24px; }
.com-card-body span { color: var(--com-gold); display: block; font-size: .74rem; font-weight: 950; letter-spacing: .13em; margin-bottom: 10px; text-transform: uppercase; }
.com-card-body h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1; margin: 0; }
.com-card-body p { color: var(--com-gray); line-height: 1.6; }
.com-services-list { border-top: 1px solid var(--com-line-dark); }
.com-service-row {
  align-items: center;
  border-bottom: 1px solid var(--com-line-dark);
  display: grid;
  gap: 24px;
  grid-template-columns: 54px minmax(220px,.35fr) minmax(0,.65fr);
  min-height: 126px;
  padding: 28px 0;
}
.com-service-row > span { color: rgba(255,255,255,.42); font-weight: 950; }
.com-service-row h3 { font-size: clamp(1.2rem, 2.2vw, 2rem); line-height: 1; margin: 0 0 10px; }
.com-service-row p { color: rgba(255,255,255,.66); line-height: 1.6; margin: 0; }

.com-contact {
  background: var(--com-light);
  color: var(--com-black);
  display: grid;
  gap: clamp(34px, 6vw, 86px);
  grid-template-columns: minmax(0,.56fr) minmax(320px,.44fr);
  padding: clamp(76px, 10vw, 134px) clamp(18px, 5vw, 72px);
}
.com-contact p, .com-contact li { color: var(--com-gray); line-height: 1.7; }
.com-contact-form {
  background: var(--com-white);
  border: 1px solid var(--com-line-light);
  border-radius: 8px;
  box-shadow: var(--com-shadow);
  color: var(--com-black);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  padding: clamp(22px, 4vw, 36px);
}
.com-contact-form label { color: var(--com-dark-gray); display: grid; font-size: .82rem; font-weight: 850; gap: 8px; }
.com-contact-form input,
.com-contact-form select,
.com-contact-form textarea {
  background: var(--com-light);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--com-black);
  min-height: 46px;
  padding: 12px 14px;
}
.com-full, .com-contact-form button { grid-column: 1/-1; }
.com-contact-form button {
  background: var(--com-black);
  border: 0;
  border-radius: 999px;
  color: var(--com-white);
  cursor: pointer;
  min-height: 48px;
  text-transform: uppercase;
}

.com-footer {
  background: var(--com-carbon);
  border-top: 1px solid var(--com-line-dark);
  color: var(--com-white);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0,.56fr) minmax(320px,.44fr);
  padding: clamp(56px, 8vw, 90px) clamp(18px, 5vw, 72px);
}
.com-footer h2 { font-size: clamp(2rem, 4.6vw, 4.8rem); letter-spacing: -.045em; line-height: .94; margin: 0; }
.com-footer-grid { display: grid; gap: 18px; }
.com-footer-grid div { border-bottom: 1px solid var(--com-line-dark); display: grid; gap: 8px; padding-bottom: 18px; }
.com-footer-grid span { color: rgba(255,255,255,.66); }
.com-whatsapp {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  color: #072512;
  display: flex;
  font-size: .82rem;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 120;
}

@media (max-width: 1120px) {
  .com-nav, .com-quote { display: none; }
  .com-header { grid-template-columns: 1fr auto; }
  .com-mobile-menu { display: block; }
  .com-brand-intro, .com-contact, .com-footer { grid-template-columns: 1fr; }
  .com-logo-card { justify-self: start; max-width: 360px; width: 100%; }
  .com-feature-grid, .com-project-grid, .com-service-grid { grid-template-columns: 1fr; }
  .com-section-heading { grid-template-columns: 1fr; }
  .com-service-row { grid-template-columns: 46px 1fr; }
  .com-service-row p { grid-column: 2; }
}
@media (max-width: 720px) {
  .com-header { padding: 14px 16px; }
  .com-video-first { min-height: 72svh; }
  .com-brand-intro, .com-section, .com-contact { padding: 58px 16px; }
  .com-logo-card { max-width: 250px; padding: 38px; }
  .com-brand-copy h1, .com-inner-hero h1 { font-size: clamp(3.1rem, 18vw, 5.4rem); }
  .com-contact-form { grid-template-columns: 1fr; }
  .com-btn, .com-contact-form button { width: 100%; }
  .com-actions { width: 100%; }
  .com-whatsapp { bottom: 16px; height: 54px; right: 16px; width: 54px; }
}
