/*
 Theme Name: Rayma Child Corporativa
 Template: hello-elementor
 Version: 2.0.0
*/

:root {
  --rayma-blue: #234563;
  --rayma-blue-dark: #132738;
  --rayma-grey: #555555;
  --rayma-light: #f5f6f8;
  --rayma-metal: #777a80;
  --rayma-white: #ffffff;
  --rayma-border: #d8dfe6;
  --rayma-muted: #6f7b86;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: var(--rayma-white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
header.site-header { display: none !important; }
.container { width: min(1180px, 90vw); margin: 0 auto; }
.screen-reader-text { position:absolute; left:-999em; }

/* Header */
.site-header-rayma {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--rayma-border);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo-img { width: auto; height: 78px; }
.rayma-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.rayma-nav a {
  color: var(--rayma-blue-dark);
  font-size: .95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.rayma-nav a:hover,
.rayma-nav .current-menu-item > a,
.rayma-nav .current_page_item > a { border-color: var(--rayma-blue); }
.rayma-btn--header-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: .92rem;
  white-space: nowrap;
}

/* Hero */
.rayma-hero {
  color: var(--rayma-white);
  background: linear-gradient(rgba(19,39,56,.72),rgba(19,39,56,.8)), radial-gradient(circle at top left, #314d67 0, #132738 55%, #0b1823 100%);
  background-size: cover;
  background-position: center;
  padding: 108px 0 118px;
}
.rayma-hero--compact { padding: 82px 0 88px; }
.rayma-hero__inner { display: flex; align-items: center; min-height: 320px; }
.rayma-hero__content { max-width: 760px; }
.rayma-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .8rem;
  color: #c5d0dc;
}
.rayma-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
}
.rayma-hero__text {
  max-width: 720px;
  font-size: 1.06rem;
  color: #e7edf4;
  margin: 0 0 28px;
}
.rayma-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rayma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .18s ease;
}
.rayma-btn--primary {
  background: var(--rayma-white);
  color: var(--rayma-blue-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}
.rayma-btn--primary:hover { transform: translateY(-1px); }
.rayma-btn--brand,
.rayma-btn--header-cta,
.rayma-btn--footer-cta {
  background: var(--rayma-blue);
  color: var(--rayma-white);
  border-color: var(--rayma-blue);
  box-shadow: 0 12px 26px rgba(35,69,99,.22);
}
.rayma-btn--brand:hover,
.rayma-btn--header-cta:hover,
.rayma-btn--footer-cta:hover {
  background: var(--rayma-blue-dark);
  border-color: var(--rayma-blue-dark);
  color: var(--rayma-white);
  transform: translateY(-1px);
}
.rayma-btn--full { width: 100%; }
.rayma-btn--ghost {
  background: transparent;
  color: var(--rayma-white);
  border-color: rgba(255,255,255,.48);
}
.rayma-btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Generic sections */
.rayma-section { padding: 82px 0; }
.rayma-section--light { background: var(--rayma-light); }
.rayma-section__head { max-width: 760px; margin-bottom: 34px; }
.rayma-section__head--center { margin: 0 auto 34px; text-align: center; }
.rayma-section__eyebrow {
  margin: 0 0 10px;
  color: var(--rayma-blue);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.rayma-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  color: var(--rayma-blue-dark);
}
.rayma-section__lead {
  margin: 0;
  font-size: 1rem;
  color: var(--rayma-muted);
}
.rayma-intro-grid,
.rayma-contact-grid,
.rayma-two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
}

.rayma-contact-grid,
.rayma-two-col {
  align-items: start;
}

.rayma-intro-grid {
  align-items: center;
}

.rayma-panel {
  background: var(--rayma-white);
  border: 1px solid var(--rayma-border);
  border-radius: 10px;
  padding: 28px;
}

.rayma-panel--dark {
  background: var(--rayma-blue-dark);
  color: var(--rayma-white);
  border-color: rgba(255,255,255,.08);
}

.rayma-intro-grid .rayma-panel--dark {
  align-self: center;
  max-width: 460px;
  margin-left: auto;
}

.rayma-panel--dark p,
.rayma-panel--dark li {
  color: #d6dfea;
}

.rayma-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rayma-metric {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 16px;
}

.rayma-metric strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 5px;
}

/* Specialities */
.speciality-list { display: grid; gap: 28px; }
.speciality-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.speciality-row--reverse .speciality-row__media { order: 2; }
.speciality-row--reverse .speciality-row__content { order: 1; }
.speciality-row__media img,
.speciality-row__placeholder,
.rayma-visual-block img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 10px;
}
.speciality-row__placeholder,
.project-card__placeholder,
.single-project__placeholder {
  background: linear-gradient(135deg,#dbe3eb,#b7c2cf);
}
.speciality-row__content h3 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  color: var(--rayma-blue-dark);
}
.speciality-row__content p { margin: 0 0 14px; color: var(--rayma-muted); }
.rayma-text-link {
  color: var(--rayma-blue);
  font-weight: 700;
}
.rayma-text-link:hover { text-decoration: underline; }

.rayma-brand-text {
  color: var(--rayma-blue);
  font-weight: 600;
}

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card {
  background: var(--rayma-white);
  border: 1px solid var(--rayma-border);
  border-radius: 10px;
  overflow: hidden;
}
.project-card__media img,
.project-card__placeholder {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.project-card__placeholder,
.single-project__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rayma-blue-dark);
  font-weight: 700;
}
.project-card__body { padding: 22px; }
.project-card__body h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--rayma-blue-dark); }

.project-card__body h3 a,
.project-card__body h3 a:visited,
.project-card__body h3 a:hover,
.project-card__body h3 a:focus,
.project-card__body h3 a:active {
  color: var(--rayma-blue-dark) !important;
  text-decoration: none;
}

.project-card__body p { margin: 0 0 14px; color: var(--rayma-muted); }
.project-card__link { font-weight: 700; color: var(--rayma-blue); }

/* Project slider */
.rayma-project-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rayma-project-slider__viewport {
  overflow: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

.rayma-project-slider__track {
  display: flex;
  gap: 24px;
}

.rayma-project-slider__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: calc((100% - 48px) / 3);
}

.rayma-project-slider__slide .project-card {
  height: 100%;
}

.rayma-project-slider__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--rayma-border) !important;
  background: var(--rayma-white) !important;
  color: var(--rayma-blue-dark) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(19,39,56,.08);
  transition: .18s ease;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rayma-project-slider__arrow:hover,
.rayma-project-slider__arrow:focus {
  background: var(--rayma-blue) !important;
  color: var(--rayma-white) !important;
  border-color: var(--rayma-blue) !important;
  outline: none;
}

.rayma-project-slider__arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: var(--rayma-white) !important;
  color: var(--rayma-blue-dark) !important;
  border-color: var(--rayma-border) !important;
}

/* Contact */
.rayma-notice {
  margin: 0 0 18px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 600;
}
.rayma-notice--ok {
  background: #eef3f8;
  color: var(--rayma-blue-dark);
  border: 1px solid #cfd8e2;
}
.rayma-notice--error {
  background: #f5f6f8;
  color: var(--rayma-blue-dark);
  border: 1px solid var(--rayma-border);
}
.rayma-form {
  background: var(--rayma-white);
  border: 1px solid var(--rayma-border);
  border-radius: 10px;
  padding: 28px;
}
.rayma-form--corporate {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border-color: #cfd8e2;
  box-shadow: 0 18px 34px rgba(19,39,56,.08);
}
.rayma-form h3 { margin: 0 0 18px; color: var(--rayma-blue-dark); }
.rayma-form__row { margin-bottom: 14px; }
.rayma-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--rayma-blue-dark);
  font-weight: 600;
  font-size: .92rem;
}
.rayma-form input,
.rayma-form textarea {
  width: 100%;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}
.rayma-form textarea { min-height: 140px; resize: vertical; }
.rayma-contact-stack { display: grid; gap: 24px; }
.rayma-contact-card h3,
.rayma-form-stack h3 { margin-top: 0; }
.rayma-contact-card p { margin: 0 0 14px; color: var(--rayma-muted); }
.rayma-contact-logo { max-width: 260px; }
.rayma-form-stack { display: grid; gap: 24px; }

/* CTA corporativos para formularios */
.rayma-form button,
.rayma-form input[type="submit"],
.rayma-form input[type="button"],
.rayma-form .wpcf7-submit,
.rayma-form .wpforms-submit,
.rayma-form .frm_button_submit,
.rayma-form .gform_button,
.rayma-form .nf-form-content input[type="button"],
.rayma-form .nf-form-content input[type="submit"],
.rayma-form .mc4wp-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--rayma-blue) !important;
  background: var(--rayma-blue) !important;
  color: var(--rayma-white) !important;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(35,69,99,.22);
  cursor: pointer;
  transition: .18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.rayma-form button:hover,
.rayma-form input[type="submit"]:hover,
.rayma-form input[type="button"]:hover,
.rayma-form .wpcf7-submit:hover,
.rayma-form .wpforms-submit:hover,
.rayma-form .frm_button_submit:hover,
.rayma-form .gform_button:hover,
.rayma-form .nf-form-content input[type="button"]:hover,
.rayma-form .nf-form-content input[type="submit"]:hover,
.rayma-form .mc4wp-form input[type="submit"]:hover {
  background: var(--rayma-blue-dark) !important;
  border-color: var(--rayma-blue-dark) !important;
  color: var(--rayma-white) !important;
  transform: translateY(-1px);
}
.rayma-form button:focus,
.rayma-form input[type="submit"]:focus,
.rayma-form input[type="button"]:focus,
.rayma-form .wpcf7-submit:focus,
.rayma-form .wpforms-submit:focus,
.rayma-form .frm_button_submit:focus,
.rayma-form .gform_button:focus,
.rayma-form .nf-form-content input[type="button"]:focus,
.rayma-form .nf-form-content input[type="submit"]:focus,
.rayma-form .mc4wp-form input[type="submit"]:focus {
  outline: 2px solid rgba(35,69,99,.28);
  outline-offset: 2px;
}
.rayma-form button[disabled],
.rayma-form input[type="submit"][disabled],
.rayma-form input[type="button"][disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Empresa */
.page-template-page-empresa .rayma-two-col,
.page-template-page-empresa-rayma .rayma-two-col,
body.page-template-page-empresa .rayma-two-col,
body.page-template-page-empresa-rayma .rayma-two-col {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 44px;
  align-items: start;
}

.page-template-page-empresa .entry-content,
.page-template-page-empresa-rayma .entry-content,
body.page-template-page-empresa .entry-content,
body.page-template-page-empresa-rayma .entry-content {
  min-height: 520px;
}

.page-template-page-empresa .entry-content > *,
.page-template-page-empresa-rayma .entry-content > *,
body.page-template-page-empresa .entry-content > *,
body.page-template-page-empresa-rayma .entry-content > * {
  max-width: 860px;
}

.page-template-page-empresa .entry-content p,
.page-template-page-empresa-rayma .entry-content p,
body.page-template-page-empresa .entry-content p,
body.page-template-page-empresa-rayma .entry-content p {
  margin: 0 0 18px;
  color: var(--rayma-grey);
  font-size: 1.02rem;
}

.page-template-page-empresa .entry-content h2,
.page-template-page-empresa .entry-content h3,
.page-template-page-empresa .entry-content h4,
.page-template-page-empresa-rayma .entry-content h2,
.page-template-page-empresa-rayma .entry-content h3,
.page-template-page-empresa-rayma .entry-content h4,
body.page-template-page-empresa .entry-content h2,
body.page-template-page-empresa .entry-content h3,
body.page-template-page-empresa .entry-content h4,
body.page-template-page-empresa-rayma .entry-content h2,
body.page-template-page-empresa-rayma .entry-content h3,
body.page-template-page-empresa-rayma .entry-content h4 {
  margin: 0 0 14px;
  color: var(--rayma-blue-dark);
}

.page-template-page-empresa .entry-content ul,
.page-template-page-empresa .entry-content ol,
.page-template-page-empresa-rayma .entry-content ul,
.page-template-page-empresa-rayma .entry-content ol,
body.page-template-page-empresa .entry-content ul,
body.page-template-page-empresa .entry-content ol,
body.page-template-page-empresa-rayma .entry-content ul,
body.page-template-page-empresa-rayma .entry-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--rayma-grey);
}

.page-template-page-empresa .entry-content li + li,
.page-template-page-empresa-rayma .entry-content li + li,
body.page-template-page-empresa .entry-content li + li,
body.page-template-page-empresa-rayma .entry-content li + li {
  margin-top: 8px;
}

.page-template-page-empresa .rayma-panel--dark,
.page-template-page-empresa-rayma .rayma-panel--dark,
body.page-template-page-empresa .rayma-panel--dark,
body.page-template-page-empresa-rayma .rayma-panel--dark {
  position: sticky;
  top: 128px;
  padding: 34px 30px;
  box-shadow: 0 18px 34px rgba(19,39,56,.18);
}

.page-template-page-empresa .rayma-panel--dark h3,
.page-template-page-empresa-rayma .rayma-panel--dark h3,
body.page-template-page-empresa .rayma-panel--dark h3,
body.page-template-page-empresa-rayma .rayma-panel--dark h3 {
  margin: 0 0 16px;
  font-size: 1.95rem;
  line-height: 1.15;
  color: var(--rayma-white);
}

.page-template-page-empresa .rayma-panel--dark p,
.page-template-page-empresa-rayma .rayma-panel--dark p,
body.page-template-page-empresa .rayma-panel--dark p,
body.page-template-page-empresa-rayma .rayma-panel--dark p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #d6dfea;
}

.page-template-page-empresa .rayma-panel--dark ul,
.page-template-page-empresa-rayma .rayma-panel--dark ul,
body.page-template-page-empresa .rayma-panel--dark ul,
body.page-template-page-empresa-rayma .rayma-panel--dark ul {
  margin: 0;
  padding-left: 20px;
}

.page-template-page-empresa .rayma-panel--dark li,
.page-template-page-empresa-rayma .rayma-panel--dark li,
body.page-template-page-empresa .rayma-panel--dark li,
body.page-template-page-empresa-rayma .rayma-panel--dark li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.page-template-page-empresa .rayma-section:first-of-type,
.page-template-page-empresa-rayma .rayma-section:first-of-type,
body.page-template-page-empresa .rayma-section:first-of-type,
body.page-template-page-empresa-rayma .rayma-section:first-of-type {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Single project */
.single-project__media img,
.single-project__placeholder {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 10px;
}
.single-project__body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.02rem;
}
.single-project__body p,
.single-project__body li { color: var(--rayma-grey); }
.single-project__meta {
  color: var(--rayma-muted);
  margin-bottom: 24px;
  font-size: .95rem;
}

/* Legal pages */
.rayma-legal-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 42px;
}

.rayma-legal-panel h1 {
  color: var(--rayma-blue-dark);
  margin-top: 0;
}

.rayma-legal-panel h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--rayma-blue-dark);
}

.rayma-legal-panel p,
.rayma-legal-panel li {
  color: var(--rayma-grey);
}

.rayma-legal-panel ul,
.rayma-legal-panel ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.rayma-legal-panel a,
.rayma-legal-panel a:visited,
.rayma-legal-panel a:hover,
.rayma-legal-panel a:focus,
.rayma-legal-panel a:active {
  color: var(--rayma-blue) !important;
  text-decoration: underline;
}

.rayma-legal-panel a:hover,
.rayma-legal-panel a:focus {
  color: var(--rayma-blue-dark) !important;
}

.page-template-page-aviso-legal .site-main,
.page-template-page-politica-privacidad .site-main,
.page-template-page-politica-cookies .site-main,
body[class*="aviso-legal"] .site-main,
body[class*="privacidad"] .site-main,
body[class*="cookies"] .site-main {
  background: var(--rayma-light);
}

/* Footer */
.rayma-footer {
  background: #2f5374;
  color: #d6dfeb;
  padding: 42px 0 34px;
  margin-top: 60px;
}
.footer-inner--v2 {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  align-items: start;
}
.footer-logo { max-height: 72px; width: auto; margin-bottom: 16px; }
.footer-brand-text,
.footer-contact-list li,
.footer-menu li { color: #d6dfeb; }
.footer-brand-text { margin: 0 0 16px; max-width: 360px; }
.footer-copy { color: #ffffff; font-size: .9rem; }
.footer-title { margin: 0 0 14px; color: #ffffff; font-size: 1rem; }
.footer-menu,
.footer-contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-menu a,
.footer-contact-list a { color: #ffffff; }
.footer-menu a:hover,
.footer-contact-list a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: .92rem;
}

.rayma-footer .footer-legal-links a,
.rayma-footer .footer-legal-links a:visited,
.rayma-footer .footer-legal-links a:hover,
.rayma-footer .footer-legal-links a:focus,
.rayma-footer .footer-legal-links a:active {
  color: #fff !important;
  text-decoration: none;
}

.rayma-footer .footer-legal-links a:hover,
.rayma-footer .footer-legal-links a:focus {
  opacity: 0.85;
}

.footer-separator {
  color: rgba(255,255,255,.75);
}

/* Cookie banner */
.rayma-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: rgba(19, 39, 56, 0.98);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
}

.rayma-cookie-banner__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rayma-cookie-banner p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.5;
  color: #e7edf4;
}

.rayma-cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
}

.rayma-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rayma-cookie-banner .rayma-btn {
  min-height: 42px;
  padding: 0 18px;
}

/* Rechazar */
.rayma-cookie-banner .rayma-cookie-banner__reject,
.rayma-cookie-banner .rayma-cookie-banner__reject:visited,
.rayma-cookie-banner .rayma-cookie-banner__reject:hover,
.rayma-cookie-banner .rayma-cookie-banner__reject:focus,
.rayma-cookie-banner .rayma-cookie-banner__reject:active {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.rayma-cookie-banner .rayma-cookie-banner__reject:hover,
.rayma-cookie-banner .rayma-cookie-banner__reject:focus {
  background: rgba(255,255,255,.08) !important;
}

/* Aceptar */
.rayma-cookie-banner .rayma-cookie-banner__accept,
.rayma-cookie-banner .rayma-cookie-banner__accept:visited,
.rayma-cookie-banner .rayma-cookie-banner__accept:hover,
.rayma-cookie-banner .rayma-cookie-banner__accept:focus,
.rayma-cookie-banner .rayma-cookie-banner__accept:active {
  background: var(--rayma-blue) !important;
  color: var(--rayma-white) !important;
  border: 1px solid var(--rayma-blue) !important;
  box-shadow: 0 12px 26px rgba(35,69,99,.22) !important;
  text-decoration: none !important;
}

.rayma-cookie-banner .rayma-cookie-banner__accept:hover,
.rayma-cookie-banner .rayma-cookie-banner__accept:focus {
  background: var(--rayma-blue-dark) !important;
  border-color: var(--rayma-blue-dark) !important;
}

/* WordPress content */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--rayma-blue-dark); }
.entry-content img { border-radius: 10px; }

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rayma-project-slider__slide {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: calc((100% - 24px) / 2);
  }
  .footer-inner--v2 { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }

  .page-template-page-empresa .rayma-two-col,
  .page-template-page-empresa-rayma .rayma-two-col,
  body.page-template-page-empresa .rayma-two-col,
  body.page-template-page-empresa-rayma .rayma-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-template-page-empresa .rayma-panel--dark,
  .page-template-page-empresa-rayma .rayma-panel--dark,
  body.page-template-page-empresa .rayma-panel--dark,
  body.page-template-page-empresa-rayma .rayma-panel--dark {
    position: static;
  }

  .page-template-page-empresa .entry-content,
  .page-template-page-empresa-rayma .entry-content,
  body.page-template-page-empresa .entry-content,
  body.page-template-page-empresa-rayma .entry-content {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .header-inner { min-height: auto; padding: 16px 0; flex-direction: column; }
  .logo-img { height: 72px; }
  .rayma-nav ul { flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
  .rayma-hero { padding: 88px 0 94px; }
  .rayma-intro-grid,
  .rayma-contact-grid,
  .rayma-two-col,
  .speciality-row { grid-template-columns: 1fr; }
  .speciality-row--reverse .speciality-row__media,
  .speciality-row--reverse .speciality-row__content { order: initial; }

  .rayma-cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rayma-cookie-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .rayma-section { padding: 64px 0; }
  .rayma-hero h1 { font-size: 2.2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .rayma-project-slider {
    gap: 12px;
  }
  .rayma-project-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .rayma-project-slider__arrow {
    width: 40px;
    height: 40px;
  }
  .footer-inner--v2 { grid-template-columns: 1fr; }
  .footer-legal-links { justify-content: center; }

  .page-template-page-empresa .rayma-section:first-of-type,
  .page-template-page-empresa-rayma .rayma-section:first-of-type,
  body.page-template-page-empresa .rayma-section:first-of-type,
  body.page-template-page-empresa-rayma .rayma-section:first-of-type {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-template-page-empresa .rayma-panel--dark,
  .page-template-page-empresa-rayma .rayma-panel--dark,
  body.page-template-page-empresa .rayma-panel--dark,
  body.page-template-page-empresa-rayma .rayma-panel--dark {
    padding: 24px;
  }

  .page-template-page-empresa .rayma-panel--dark h3,
  .page-template-page-empresa-rayma .rayma-panel--dark h3,
  body.page-template-page-empresa .rayma-panel--dark h3,
  body.page-template-page-empresa-rayma .rayma-panel--dark h3 {
    font-size: 1.65rem;
  }

  .rayma-legal-panel {
    padding: 24px;
  }
}