/*
Theme Name: RDA Project Management
Theme URI: https://rdapm.com/
Author: RDA PM
Description: Tema custom fiel a la web corporativa de RDA Project Management.
Version: 1.0.0
Text Domain: rdapm
*/

:root {
  --rdapm-black: #0b0b0b;
  --rdapm-header: #1a1a1a;
  --rdapm-dark: #111111;
  --rdapm-red: #c8102e;
  --rdapm-text: #222222;
  --rdapm-muted: #666666;
  --rdapm-light: #f5f5f5;
  --rdapm-white: #ffffff;
  --rdapm-max: 1180px;
  --rdapm-header-h: 72px;
  --font-body: "Mulish", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--rdapm-text);
  background: var(--rdapm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* WP admin bar + sticky header (Chrome/Firefox/Safari) */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--rdapm-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  position: relative;
  max-width: var(--rdapm-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo-text {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
}

.site-logo-text span {
  color: var(--rdapm-red);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.primary-menu {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-menu a {
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: #fff;
}

.primary-menu .current-menu-item > a::before,
.primary-menu .current_page_item > a::before {
  content: "- ";
}

.hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.hero--image {
  background-size: cover;
  background-position: center;
}

.hero--image::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.38));
}

/* Home: video solo (como GoDaddy), sin texto encima */
.home-video {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #000;
  line-height: 0;
  isolation: isolate;
  overflow: hidden;
}

.home-video__frame {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--rdapm-header-h));
  height: calc(100dvh - var(--rdapm-header-h));
  min-height: 420px;
  max-height: 100%;
  overflow: hidden;
  background: #111;
}

.home-video__frame iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  pointer-events: none;
}

.home-intro {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
  clear: both;
}

.home-intro__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.home-intro h1 {
  position: relative;
  margin: 0 0 1.25rem;
  color: #58585a;
  font-size: 1.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.home-intro__lead {
  position: relative;
  margin: 0 0 2rem;
  color: #5e5e5e;
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-intro__why {
  position: relative;
  margin: 0 0 1rem;
  color: #5e5e5e;
  font-size: 1.05rem;
}

.home-intro__list {
  position: relative;
  list-style: disc;
  list-style-position: outside;
  margin: 0 auto 1.75rem;
  padding: 0 0 0 1.4rem;
  max-width: 760px;
  text-align: left;
  color: #5e5e5e;
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-intro__list li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}

.home-intro__cta {
  position: relative;
}

.home-intro__cta a {
  color: #787575;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
}

.home-intro__cta a:hover {
  color: var(--rdapm-red);
}

.home-intro__social {
  position: relative;
  margin-top: 1.5rem;
}

.social-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-linkedin svg {
  display: block;
}

.social-linkedin--brand {
  color: #0a66c2;
}

.social-linkedin--light {
  color: #fff;
}

.social-linkedin:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-social {
  margin-bottom: 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto 1.5rem;
  max-width: 720px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--rdapm-red);
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #a50d25;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #111 !important;
}

.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--rdapm-max);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.section-lead {
  max-width: 760px;
  color: var(--rdapm-muted);
  margin-bottom: 2rem;
}

.section--dark {
  background: var(--rdapm-dark);
  color: #fff;
}

.section--muted {
  background: var(--rdapm-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.why-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--rdapm-red);
  border-radius: 50%;
}

.team-card,
.service-card,
.project-card {
  background: #fff;
}

.team-card__photo {
  display: block;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1);
}

.team-card__photo:hover img {
  filter: grayscale(0.35);
}

.team-card h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card .role {
  font-style: italic;
  color: var(--rdapm-muted);
  margin: 0 0 0.75rem;
}

.team-card p {
  font-size: 0.92rem;
  color: #444;
}

.team-card__more {
  margin: 1.1rem 0 0;
}

.team-card__more a {
  display: inline-block;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.team-card__more a:hover {
  color: var(--rdapm-red);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  border-left: 3px solid var(--rdapm-red);
  padding: 0.75rem 0 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.service-block h3 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rdapm-red);
}

.service-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-block li {
  margin: 0.35rem 0;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  color: #fff;
  background: #222;
}

.project-card a {
  color: inherit;
  display: block;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  inset: auto 0 0 0;
  padding: 1.25rem 1.5rem 1.4rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  text-align: left;
}

.project-card h3 {
  margin: 0 0 0.2rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: normal;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-card p {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-more {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  opacity: 0.95;
}

.project-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-cat {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.project-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  transition: transform 0.45s ease;
}

.project-cat:hover img {
  transform: scale(1.04);
}

.project-cat__meta {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.38);
  text-align: center;
}

.project-cat__meta h2 {
  margin: 0 0 0.35rem;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.375rem); /* ~22px like original */
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.023em;
  color: #fff;
}

.project-cat__meta p {
  margin: 0 0 0.85rem;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.92;
  color: #fff;
}

.project-cat__cta {
  display: inline-block;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #fff;
}

.project-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.project-detail__media img {
  width: 100%;
  object-fit: cover;
  max-height: 520px;
}

.project-carousel {
  position: relative;
  background: #111;
  overflow: hidden;
}

.project-carousel__viewport {
  position: relative;
  min-height: 280px;
}

.project-carousel__slide {
  margin: 0;
  display: none;
}

.project-carousel__slide.is-active {
  display: block;
}

.project-carousel__slide img {
  width: 100%;
  height: 420px;
  height: clamp(280px, 52vh, 560px);
  object-fit: cover;
  display: block;
  max-height: none;
}

.project-carousel__btn {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.project-carousel__btn:hover {
  background: var(--rdapm-red);
}

.project-carousel__btn--prev {
  left: 0.75rem;
}

.project-carousel__btn--next {
  right: 0.75rem;
}

.project-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}

.project-carousel__dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.project-carousel__dot.is-active,
.project-carousel__dot:hover {
  background: #fff;
}

.project-detail__subtitle {
  color: var(--rdapm-muted);
  margin-top: -0.4rem;
}

.project-detail__facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  color: #444;
}

.project-detail__facts li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-form {
  position: relative;
}

.contact-form label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ccc;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .g-recaptcha {
  margin-top: 1rem;
}

.form-notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #e8f5e9;
  border-left: 3px solid #2e7d32;
}

.form-notice--ok {
  font-weight: 600;
}

.form-notice.error {
  background: #fdecea;
  border-left-color: #c62828;
}

.site-footer {
  background: var(--rdapm-header);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--rdapm-max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-footer .footer-meta {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-meta a {
  color: #fff;
}

.contact-info {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

.contact-info a {
  color: var(--rdapm-red);
  text-decoration: underline;
}

.contact-info a:hover {
  color: #a50d25;
}

.about-block h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

.about-block h3:first-child {
  margin-top: 0;
}

.about-block p,
.about-block ul {
  color: var(--rdapm-muted);
  margin: 0;
}

.about-block ul {
  list-style: none;
  padding: 0;
}

.about-block li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1rem;
}

.about-block li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #888;
}

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a9a9a;
  font-size: 0.85rem;
  margin: 0 0 2rem;
  font-weight: 700;
}

.services-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 1.25rem;
  color: var(--rdapm-muted);
}

.services-brochure-wrap {
  text-align: center;
  margin: 0 0 2.5rem;
}

.services-brochure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #787575;
  text-decoration: none;
  margin: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.3px solid currentColor;
  background: transparent;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.section-inner > p:has(> .services-brochure) {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.services-brochure:hover {
  color: var(--rdapm-red);
  border-color: var(--rdapm-red);
  background: rgba(200, 16, 46, 0.04);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.service-card-phase {
  text-align: left;
}

.service-card-phase h3 {
  margin: 0 0 0.75rem;
  color: var(--rdapm-red);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.service-card-phase .service-icon {
  width: min(100%, 220px);
  height: auto;
  margin: 0 0 1rem;
  filter: grayscale(1);
  opacity: 0.85;
}

.service-card-phase ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #666;
}

.service-card-phase li {
  margin: 0.35rem 0;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 2000;
  max-width: 340px;
  width: calc(100% - 2rem);
  background: #ececec;
  color: #333;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

@media (max-width: 600px) {
  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    width: auto;
  }
}

.cookie-banner h4 {
  margin: 0 0 0.5rem;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  flex: 1;
  border: 1px solid #999;
  background: #ddd;
  padding: 0.45rem;
  cursor: pointer;
}

.page-content {
  max-width: 800px;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .values,
  .services-grid,
  .project-cats,
  .project-detail,
  .contact-grid,
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--rdapm-header);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-menu.is-open {
    display: flex;
  }

  .hero {
    min-height: 42vh;
  }

  .home-video__frame {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    min-height: 280px;
  }

  .home-intro {
    padding: 2.5rem 1.1rem 3rem;
  }

  .home-intro h1 {
    font-size: 1.45rem;
  }

  .primary-menu {
    z-index: 1100;
  }
}
