/* =============================================================
   Rafa Mundo Canino — Custom Styles
   Design system: Bold display (Oswald 700) + Inter body
   Brand palette: Navy #162244 · Gold #d4a94a · Cream #e8d5af
   ============================================================= */

/* === Fuentes === */
* {
  font-feature-settings: "calt";
}

/* === Header sticky === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(13, 27, 53, 0.25);
}

.site-title-header a {
  color: #e8d5af !important;
  text-decoration: none !important;
}

/* === Navegación === */
.wp-block-navigation a.wp-block-navigation-item__content {
  color: rgba(232, 213, 175, 0.80) !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

.wp-block-navigation a.wp-block-navigation-item__content:hover {
  color: #d4a94a !important;
}

/* === Botones — Animaciones de interacción === */
.wp-block-button__link {
  transition:
    transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  will-change: transform;
  display: inline-block;
}

.wp-block-button__link:hover {
  transform: scale(1.05);
}

.wp-block-button__link:active {
  transform: scale(0.95);
  transition-duration: 0.06s;
}

.wp-block-button__link:focus-visible {
  outline: 3px solid #d4a94a;
  outline-offset: 3px;
}

/* === Variante Outline Cream === */
.wp-block-button.is-style-outline-cream .wp-block-button__link {
  background: transparent !important;
  color: #e8d5af !important;
  border: 2px solid rgba(232, 213, 175, 0.60) !important;
}

.wp-block-button.is-style-outline-cream .wp-block-button__link:hover {
  background: rgba(232, 213, 175, 0.10) !important;
  border-color: #e8d5af !important;
}

/* === Variante Navy === */
.wp-block-button.is-style-navy .wp-block-button__link {
  background: #162244 !important;
  color: #e8d5af !important;
  border: none !important;
}

.wp-block-button.is-style-navy .wp-block-button__link:hover {
  background: #1e3060 !important;
}

/* === Cards — Hover === */
.rmc-service-card,
.rmc-feature-card,
.rmc-testimonial-card,
.rmc-blog-card {
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease;
}

.rmc-service-card:hover,
.rmc-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 27, 53, 0.13);
}

.rmc-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13, 27, 53, 0.20);
}

.rmc-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(13, 27, 53, 0.10);
}

/* === Sección hero — foto === */
.hero-image-card {
  position: relative;
}

.hero-portrait img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-badge {
  position: relative;
}

/* === Sección about — sticky portrait === */
.about-portrait img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* === Credenciales badges === */
.credential-badge {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.credential-badge:hover {
  border-color: rgba(212, 169, 74, 0.50) !important;
  background-color: #ece0c8 !important;
}

/* === Blog cards — imagen === */
.rmc-blog-card .wp-block-post-featured-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.rmc-blog-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

.rmc-blog-card {
  overflow: hidden;
}

/* === Footer — listas de navegación === */
.footer-nav-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.footer-nav-list li {
  margin-bottom: 0.625rem;
}

.footer-nav-list a {
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #d4a94a !important;
}

/* === Año automático en footer === */
#rmc-year::after {
  content: "2025";
}

/* === Post content — tipografía editorial === */
.entry-content,
.wp-block-post-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1a1a18;
}

.entry-content h2,
.wp-block-post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h3,
.wp-block-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content a,
.wp-block-post-content a {
  color: #162244;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
  color: #d4a94a;
}

.entry-content blockquote,
.wp-block-post-content .wp-block-quote {
  border-left: 4px solid #d4a94a !important;
  padding-left: 1.5rem;
  margin-left: 0;
  font-style: italic;
  color: #6b6b6a;
}

/* === Separador stats en hero === */
.stat-divider {
  margin-block: 0 !important;
  align-self: center;
}

/* === Sidebar — artículos recientes === */
.sidebar-recent-posts .wp-block-post-title a {
  color: #162244 !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-recent-posts .wp-block-post-title a:hover {
  color: #d4a94a !important;
}

/* === Author card === */
.author-card {
  gap: var(--wp--preset--spacing--30);
}

/* === Responsive === */

/* Tablet */
@media (max-width: 1024px) {
  .hero-portrait {
    display: none;
  }

  .hero-badge {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Columnas → stack vertical */
  .wp-block-columns.is-not-stacked-on-mobile {
    flex-direction: column !important;
  }

  /* Botones — full width en mobile */
  .wp-block-buttons .wp-block-button {
    width: 100%;
  }

  .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Reducir padding en secciones */
  .wp-block-group[style*="padding-top:var(--wp--preset--spacing--70)"] {
    padding-top: var(--wp--preset--spacing--50) !important;
    padding-bottom: var(--wp--preset--spacing--50) !important;
  }

  /* Footer columnas → stack */
  .wp-block-columns.alignwide {
    flex-direction: column !important;
  }
}

/* Print */
@media print {
  .site-header,
  .wp-block-buttons,
  .wp-block-social-links {
    display: none !important;
  }
}

/* === Accesibilidad === */
@media (prefers-reduced-motion: reduce) {
  .wp-block-button__link,
  .rmc-service-card,
  .rmc-feature-card,
  .rmc-testimonial-card,
  .rmc-blog-card,
  .credential-badge {
    transition: none !important;
    transform: none !important;
  }
}

/* === Focus visible global === */
:focus-visible {
  outline: 2px solid #d4a94a;
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Scrollbar personalizado (Chromium) === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f5ef;
}

::-webkit-scrollbar-thumb {
  background: #c4a870;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a94a;
}
