/*
Theme Name: Maramar Basico
Theme URI: https://example.com/maramar-basico
Author: Maramar
Author URI: https://example.com
Description: Theme basico para WordPress 5.8.13.
Version: 1.2.1
Requires at least: 5.8
Tested up to: 5.8.13
Requires PHP: 7.4
Text Domain: maramar-basico
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --max-width: 100%;
  --page-bg: #ffffff;
  --shell-bg: #f8f8f8;
  --header-bg: #eceef0;
  --primary: #213e87;
  --primary-strong: #122b66;
  --accent: #1f8d9d;
  --text: #17223b;
  --muted: #596176;
  --line: #d2d7e1;
  --white: #fff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 42px -34px rgba(11, 29, 62, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(33, 62, 135, 0.3);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-main {
  width: 100%;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  padding: 0;
}

.site-header-inner {
  background-color: var(--header-bg);
  background-image:
    radial-gradient(circle at 15% 30%, rgba(33, 62, 135, 0.07) 0 20%, transparent 21%),
    radial-gradient(circle at 75% 60%, rgba(33, 62, 135, 0.06) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  overflow: hidden;
}

.site-header-inner--has-bg {
  --header-overlay: 0.75;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(33, 62, 135, 0.07) 0 20%, transparent 21%),
    radial-gradient(circle at 75% 60%, rgba(33, 62, 135, 0.06) 0 18%, transparent 19%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, var(--header-overlay)),
      rgba(255, 255, 255, calc(var(--header-overlay) * 0.75))
    ),
    var(--header-bg);
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 0.85rem;
  border-bottom: 1px solid #dbe0e8;
}

.header-top--logo-centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-top--logo-centered .site-branding {
  grid-column: 2;
  align-items: center;
  text-align: center;
}

.header-top--logo-centered .header-tools {
  grid-column: 3;
  justify-self: end;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-branding h1,
.site-branding p {
  margin: 0;
}

.site-branding .site-title {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.site-branding .site-title a {
  color: var(--primary-strong);
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.custom-logo-link img {
  max-height: 62px;
  width: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-languages {
  margin: 0;
  font-size: 0.78rem;
  color: #4f5770;
  white-space: nowrap;
}

.header-languages span {
  margin: 0 0.2rem;
}

.header-languages a {
  color: inherit;
  text-decoration: none;
}

.header-search-form {
  display: flex;
  align-items: center;
}

.header-search-form input {
  width: 200px;
  height: 30px;
  border: 1px solid #c2cad8;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.75);
}

.main-navigation {
  width: 100%;
  background: #f7f8fa;
  border-top: 1px solid #e3e7ef;
  border-bottom: 1px solid #e3e7ef;
}

.main-navigation > div {
  width: 100%;
}

.main-navigation ul,
.main-navigation ul.menu,
.main-navigation .menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.3rem;
  flex-wrap: wrap;
}

.main-navigation li {
  display: flex;
}

.main-navigation a {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: #314160;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: #e4eaf4;
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--primary-strong);
  color: #fff;
}

.site-main {
  background: var(--shell-bg);
  border: 1px solid #ccd3de;
  border-top: 0;
  padding: 1.35rem 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(245px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.site-main--landing {
  display: block;
  padding: 0;
}

.site-main--page {
  display: block;
  grid-template-columns: unset;
  padding: 2rem 1.5rem;
}

.landing-hero {
  margin: 0;
}

.landing-hero img,
.landing-hero-fallback {
  width: 100%;
  aspect-ratio: 1920 / 598;
  object-fit: cover;
}

/* ── Banner de páginas internas ─────────────────────────────────────────── */
.page-banner {
  width: 100%;
  aspect-ratio: 1920 / 400;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Hero Slider ─────────────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 598;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.75s ease;
  display: grid;
  place-items: center;
}

.hero-slide.is-active {
  opacity: 1;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, transparent 35%),
    linear-gradient(to top,    rgba(0, 0, 0, 0.45) 0%, transparent 50%);
}

.landing-hero-overlay h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.landing-hero-overlay p {
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}

.hero-btn:hover,
.hero-btn:focus {
  background: rgba(0, 0, 0, 0.48);
  border-color: #fff;
  text-decoration: none;
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Hero fallback (sin imagen configurada) ──────────────────────────────── */
.landing-hero-fallback {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(11, 40, 96, 0.85), rgba(34, 130, 110, 0.72)),
    radial-gradient(circle at 85% 20%, rgba(139, 211, 96, 0.45), transparent 42%);
  padding: 2rem;
}

.landing-hero-fallback::before {
  content: "";
  position: absolute;
  inset: auto -12% -45% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-kicker {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.landing-hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
}

.landing-hero p {
  margin: 0;
}

.brands-showcase {
  background: #fff;
  padding: 1.5rem 1rem 1.9rem;
  border-top: 1px solid #e5e8ef;
  border-bottom: 1px solid #e5e8ef;
}

.section-title {
  margin: 0 0 1.4rem;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2d3855;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: min(92%, 670px);
  height: 1px;
  margin: 0.65rem auto 0;
  background: #dde2ea;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.brand-card {
  border-radius: 14px;
  width: 191px;
  height: 276px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.brand-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-card-inner {
  height: 100%;
  padding: 1rem 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(12, 22, 50, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.brand-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.brand-card p {
  margin: 0.1rem 0 0.65rem;
  font-size: 0.8rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #1d2f66;
  font-size: 0.75rem;
  font-weight: 800;
  min-height: 28px;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
}

.brand-link:hover,
.brand-link:focus {
  background: #eff3ff;
  text-decoration: none;
}

.brand-card--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-card--bless {
  background: linear-gradient(140deg, #1d9fa2, #0f4f7d);
}

.brand-card--silk {
  background: linear-gradient(140deg, #4c8fd9, #2f4d93);
}

.brand-card--esenciales {
  background: linear-gradient(140deg, #67916f, #446b4a);
}

.brand-card--acuatika {
  background: linear-gradient(140deg, #c93f33, #8f2119);
}

.brand-card--global {
  background: linear-gradient(140deg, #bf6b40, #883f2b);
}

.about-band {
  background: #fff;
  padding: 2.2rem 1rem;
}

.about-card {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Lado izquierdo: cuadrícula de 4 imágenes */
.about-media {
  min-height: 300px;
  background: #e8eaf0;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 300px;
}

.about-image-cell {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #d0d5e2;
}

/* Lado derecho: logo + texto */
.about-copy {
  background: #fff;
  color: var(--text);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.about-logo {
  margin-bottom: 0.25rem;
}

.about-logo img {
  max-height: 40px;
  max-width: 150px;
  width: auto;
  height: auto;
}

.about-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.button-primary {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #fff;
  color: #162d69;
  text-decoration: none;
}

.button-primary:hover,
.button-primary:focus {
  background: #edf2ff;
  text-decoration: none;
}

.content-area {
  grid-column: 1;
}

.page-intro,
.content-area article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.page-intro h1 {
  margin: 0;
}

.entry-title {
  margin: 0 0 1.5rem;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  text-align: center;
}

.entry-title a {
  color: var(--primary-strong);
}

.entry-meta {
  margin: 0.25rem 0 0.8rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.entry-media {
  margin: 0 0 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #d7deea;
}

.entry-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-actions {
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e3e9f8;
  color: #1f3f86;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus {
  background: #d4ddf5;
  text-decoration: none;
}

.widget-area {
  grid-column: 2;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.widget-area .widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.widget-title {
  margin: 0 0 0.5rem;
  color: var(--primary-strong);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-previous a,
.nav-next a,
.post-page-numbers {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.38rem 0.7rem;
  font-size: 0.85rem;
}

.post-page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: #14337e;
  color: #fff;
  padding: 2.5rem 0 1.2rem;
  overflow: hidden;
}

/* Imagen de fondo + overlay cuando se configura desde el Customizer */
.site-footer--has-bg {
  background-color: #14337e;
}

.site-footer--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--footer-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: calc(1 - var(--footer-overlay, 0.6));
  z-index: 0;
}

.site-footer--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 70, var(--footer-overlay, 0.6));
  z-index: 0;
}

.site-footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 2rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

/* Columnas del footer — centrado */
.site-footer-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Col 1 — marca */
.footer-logo img {
  max-height: 60px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-site-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Col 2 — contacto + enlaces */
.site-footer-col h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.55rem;
  color: #fff;
}

.site-footer-col h2 + h2 {
  margin-top: 1.2rem;
}

.footer-contact-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.footer-contact-list li,
.footer-contact-list a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-col .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.site-footer-col .menu > li > a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer-col .menu > li > a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Col 3 — QR */
.site-footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.footer-qr-img {
  width: 331px;
  height: 191px;
  object-fit: contain;
  /* transparencia: el PNG se mezcla sobre el fondo del footer */
  mix-blend-mode: normal;
}

.footer-qr-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 140px;
}

/* Barra de copyright */
.site-footer-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.75rem), var(--max-width));
  margin: 1.2rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.search-form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.search-form .search-field {
  width: min(100%, 280px);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid #bec8d8;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 700;
  padding: 0.52rem 0.8rem;
  cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  filter: brightness(1.05);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: #fff;
  color: var(--text);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 0.9rem;
  height: auto;
  left: 0.85rem;
  line-height: normal;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  top: 0.85rem;
  width: auto;
  z-index: 100000;
}

@media (max-width: 980px) {
  .site-main {
    grid-template-columns: 1fr;
  }

  .content-area,
  .widget-area {
    grid-column: auto;
  }

}

@media (max-width: 760px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top--logo-centered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .header-search-form input {
    width: min(100%, 190px);
  }

  .main-navigation ul {
    justify-content: flex-start;
    padding-bottom: 0.45rem;
  }

  .main-navigation ul.menu,
  .main-navigation .menu > ul {
    justify-content: flex-start;
    padding-bottom: 0.45rem;
  }


  .about-card {
    grid-template-columns: 1fr;
  }

  .about-image-grid {
    min-height: 220px;
  }

  .about-media {
    min-height: 220px;
  }

  .site-footer-shell {
    grid-template-columns: 1fr;
  }
}
