/*
Theme Name: Skinalia Blog Theme
Theme URI: https://skinalia.co/
Author: Skinalia
Author URI: https://skinalia.co/
Description: Tema personalizado de Skinalia para WordPress, optimizado para blog y SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: skinalia
*/

:root {
  --c-brown: #7c614d;
  --c-dark: #3d332b;
  --c-sand: #ccbeb2;
  --c-ivory: #efe8e1;
  --c-warm: #e5ded6;
  --c-sage: #b6bfae;
  --c-black: #191816;
  --c-snow: #f7f3f0;
  --text: #191816;
  --bg: #f7f3f0;
  --accent: #7c614d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.h1,
h1 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  margin: 0.2em 0;
}

.h2,
h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0.2em 0;
}

.h3,
h3 {
  font-weight: 700;
  font-size: clamp(18px, 2.3vw, 22px);
  margin: 0.6em 0 0.35em;
}

p {
  margin: 0.5rem 0 1rem;
  color: #2b2a28;
}

a {
  color: var(--accent);
}

.lead {
  font-size: clamp(16px, 2.3vw, 18px);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(40px, 6vw, 90px) 0;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
}

.two {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .two {
    grid-template-columns: 1.1fr 1fr;
  }
}

.site-main {
  min-height: 60vh;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-sand) 50%, transparent);
}

.header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  min-width: 170px;
}

.header .brand img,
.header .custom-logo-link img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .header .brand img,
  .header .custom-logo-link img {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .header .brand img,
  .header .custom-logo-link img {
    height: 32px;
  }
}

.nav {
  display: none;
  align-items: center;
}

.nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 1080px) {
  .header-cta {
    display: inline-flex;
  }
}

.hero {
  padding: clamp(48px, 6vw, 110px) 0;
  background: linear-gradient(180deg, var(--bg), var(--c-ivory));
}

.hero-wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero .badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--c-warm);
  color: var(--c-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.hero img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--c-sage);
}

.btn + .btn {
  margin-left: 10px;
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }
}

.strip {
  background: var(--c-sand);
  color: #2b2a28;
  padding: 14px 0;
  font-weight: 600;
}

.card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--c-sand) 60%, transparent);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 7%);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-warm);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--c-dark);
}

.badge-soft {
  background: var(--c-sand);
  color: #3b342e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.posts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

@media (min-width: 760px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card .post-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
}

.post-card h3 {
  margin-top: 0;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card .meta {
  font-size: 13px;
  color: #5f5953;
  margin-bottom: 8px;
}

.post-card .excerpt {
  flex-grow: 1;
}

.post-card .readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.archive-header {
  padding: 34px 0 0;
}

.article {
  background: #fff;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--c-sand) 60%, transparent);
  padding: clamp(20px, 4vw, 44px);
}

.article .meta {
  color: #5f5953;
  font-size: 14px;
}

.article-thumbnail {
  margin: 18px 0 20px;
}

.article-thumbnail img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.6em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
}

.article-content blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--c-snow);
}

.article-content a {
  word-break: break-word;
}

.article-cta {
  margin-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--c-sand) 55%, transparent);
  padding-top: 18px;
}

.post-nav {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 860px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav a {
  display: block;
  border: 1px solid color-mix(in srgb, var(--c-sand) 60%, transparent);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.pagination {
  margin-top: 28px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pagination .page-numbers {
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--c-sand) 60%, transparent);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-form input[type="search"] {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--c-sand) 75%, transparent);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
}

.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 10px;
  color: #5f5953;
}

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

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta {
  background: linear-gradient(135deg, var(--c-sage), var(--c-ivory));
  border: 1px solid color-mix(in srgb, var(--c-sand) 60%, transparent);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 2fr 1fr;
  }
}

.footer {
  background: var(--c-dark);
  color: #fff;
  padding: 34px 0 60px;
  margin-top: 40px;
}

.footer p,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: #fff;
}

.footer a {
  color: #fff;
  opacity: 1;
}

.footer .small {
  color: #fff;
  opacity: 1;
}

.footer .brand {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    height: 34px;
  }
}

.footer-map iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 14px;
}

.small {
  font-size: 12px;
  opacity: 0.86;
}

.sep {
  height: 1px;
  background: color-mix(in srgb, var(--c-sand) 50%, transparent);
  margin: 20px 0;
}

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

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
  clip: auto;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption img {
  margin-bottom: 0.5rem;
}

.wp-block-image,
.wp-block-embed {
  margin: 1.2rem 0;
}
