/*
Theme Name: SoloParaMascotas
Theme URI: https://soloparamascotas.es
Author: SoloParaMascotas.es
Description: Tema personalizado calido y editorial para reviews y curiosidades de mascotas. Inspirado en tipografia Playfair Display + DM Sans y una paleta terracota/salvia/crema.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: soloparamascotas
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FDF6ED;
  --warm: #FFF3E9;
  --terra: #FF6F3C;
  --terra-deep: #E8562A;
  --sage: #2AA187;
  --sage-light: #B4CFAC;
  --charcoal: #3A3A3A;
  --mid: #8A8A8A;
  --sand: #FFE3CC;
  --gold: #D4A843;
  --blush: #FFB088;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 5rem; }

/* NAV */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 5rem;
  background: rgba(253,246,237,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,111,60,0.12);
  transition: box-shadow 0.3s ease;
}
.nav-logo, .nav-logo a, .nav-logo .custom-logo-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--terra);
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img, .nav-logo img.custom-logo { height: 78px; width: auto; max-width: 320px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu-list { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-menu-list li { list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--mid); letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  background: var(--terra); color: #fff !important;
  padding: 0.55rem 1.3rem !important; border-radius: 50px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--terra-deep); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--terra); cursor: pointer; }

/* HERO */
.hero {
  min-height: 88vh;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3rem 4rem 5rem;
  position: relative; z-index: 2;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--warm); border: 1px solid var(--sand);
  padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--terra);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.8rem; width: fit-content;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 1.08; font-weight: 900;
  color: var(--charcoal);
}
.hero h1 em { color: var(--terra); font-style: italic; }
.hero-sub {
  margin-top: 1.4rem; font-size: 1.05rem; color: var(--mid);
  line-height: 1.7; max-width: 460px;
}
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--terra); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(255,111,60,0.3);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,111,60,0.35); }
.btn-secondary {
  background: transparent; color: var(--charcoal);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 2px solid var(--sand); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--terra); color: var(--terra); }
.hero-stats { margin-top: 3rem; display: flex; gap: 2.2rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--terra); line-height: 1; }
.stat-label { font-size: 0.74rem; color: var(--mid); margin-top: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }

.hero-right { position: relative; overflow: hidden; }
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blush) 0%, var(--terra) 45%, #A0472A 100%);
  z-index: 0;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero-cards { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.animal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 420px; }
.animal-card {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 20px; padding: 1.2rem;
  color: #fff; position: relative; overflow: hidden;
  text-decoration: none; display: block; transition: transform 0.2s;
}
.animal-card:hover { transform: scale(1.03); }
.animal-card.big { grid-column: span 2; display: flex; gap: 1rem; align-items: center; }
.animal-emoji { font-size: 3.2rem; line-height: 1; }
.animal-card.big .animal-emoji { font-size: 4.5rem; }
.animal-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-top: 0.4rem; }
.animal-card.big .animal-name { font-size: 1.3rem; }
.animal-info { font-size: 0.72rem; opacity: 0.85; margin-top: 0.2rem; }
.animal-badge {
  display: inline-block; background: rgba(255,255,255,0.25); padding: 0.2rem 0.6rem; border-radius: 50px;
  font-size: 0.62rem; font-weight: 600; margin-top: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase;
}

/* SECTIONS COMMON */
.section { padding: 5rem; }
.section-header { margin-bottom: 3rem; }
.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.7rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 900; line-height: 1.18; color: var(--charcoal); }
.section-title em { font-style: italic; color: var(--terra); }
.section-sub { margin-top: 1rem; color: var(--mid); font-size: 1rem; line-height: 1.7; max-width: 600px; }

/* HOW / PROCESS */
.how {
  background: var(--charcoal); color: #fff;
  margin: 2rem 3rem 4rem; padding: 4.5rem 4rem;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(58,58,58,0.22), 0 4px 16px rgba(58,58,58,0.12);
}
.how .section-tag { color: var(--blush); }
.how .section-title { color: #fff; }
.how .section-title em { color: var(--blush); }
.how .section-sub { color: rgba(255,255,255,0.65); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 1.8rem 1.4rem; position: relative; transition: background 0.2s; }
.step:hover { background: rgba(255,255,255,0.09); }
.step-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: rgba(255,111,60,0.25); line-height: 1; position: absolute; top: 1rem; right: 1.4rem; }
.step-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* CATEGORY CARDS */
.cats-section { background: var(--cream); }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.cat-card {
  background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; display: block;
  box-shadow: 0 2px 12px rgba(58,58,58,0.06); transition: all 0.25s; border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(58,58,58,0.1); border-color: var(--terra); }
.cat-card-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: linear-gradient(135deg, var(--warm), var(--sand)); }
.cat-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.cat-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 800; color: var(--charcoal); }
.cat-card p { font-size: 0.8rem; color: var(--mid); margin-top: 0.4rem; line-height: 1.5; }
.cat-card .cat-count { font-size: 0.7rem; color: var(--terra); font-weight: 700; margin-top: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ARTICLE / POST CARDS */
.posts-section { background: #FFF8F0; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border-radius: 24px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 12px rgba(58,58,58,0.06); text-decoration: none; display: block; color: inherit; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(58,58,58,0.12); }
.post-card-img { height: 190px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--warm), var(--sand)); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat {
  position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,0.92); color: var(--terra);
  padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.post-card-body { padding: 1.4rem; }
.post-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 800; color: var(--charcoal); line-height: 1.3; }
.post-card-meta { font-size: 0.76rem; color: var(--mid); margin-top: 0.6rem; }
.post-card-excerpt { margin-top: 0.7rem; font-size: 0.86rem; color: var(--mid); line-height: 1.6; }
.post-card-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--terra); font-weight: 700; font-size: 0.85rem; }

/* NEWSLETTER / CONTACT */
.contact-section {
  background: var(--charcoal); color: #fff;
  margin: 0 3rem 4rem; border-radius: 32px;
  box-shadow: 0 24px 60px rgba(58,58,58,0.22), 0 4px 16px rgba(58,58,58,0.12);
}
.contact-section .section-tag { color: var(--blush); }
.contact-section .section-title { color: #fff; }
.contact-section .section-title em { color: var(--blush); }
.contact-section .section-sub { color: rgba(255,255,255,0.65); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item-text h4 { font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 0.2rem; }
.contact-item-text p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.newsletter-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 2rem; }
.newsletter-box h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.6rem; }
.newsletter-box p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 1.2rem; line-height: 1.6; }
.newsletter-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 180px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 50px; padding: 0.8rem 1.2rem; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button { background: var(--terra); color: #fff; border: none; padding: 0.8rem 1.6rem; border-radius: 50px; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: var(--terra-deep); }

/* FOOTER */
.site-footer { background: #241d15; color: rgba(255,255,255,0.5); padding: 3rem 5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .nav-logo {
  font-size: 1.2rem; margin-bottom: 1.1rem;
  display: inline-flex; background: rgba(255,255,255,0.94);
  padding: 0.65rem 1.1rem; border-radius: 16px;
}
.footer-brand .nav-logo img, .footer-brand .nav-logo img.custom-logo { height: 40px; max-width: 200px; }
.footer-brand p { font-size: 0.8rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.45); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--blush); }
.footer-bottom { background: #241d15; border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.3); }

/* SINGLE POST / PAGE */
.single-wrap { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.single-cat { display: inline-block; background: var(--warm); color: var(--terra); padding: 0.3rem 0.9rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.2rem; }
.single-wrap h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; color: var(--charcoal); }
.single-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--mid); }
.single-featured { margin-top: 2rem; border-radius: 24px; overflow: hidden; }
.single-featured img { width: 100%; }
.single-content { margin-top: 2.5rem; font-size: 1.05rem; line-height: 1.85; color: var(--charcoal); }
.single-content h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 800; margin: 2.2rem 0 1rem; color: var(--charcoal); }
.single-content h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; margin: 1.8rem 0 0.8rem; color: var(--charcoal); }
.single-content p { margin-bottom: 1.2rem; }
.single-content ul, .single-content ol { margin: 0 0 1.2rem 1.4rem; }
.single-content li { margin-bottom: 0.5rem; }
.single-content a { color: var(--terra); text-decoration: underline; }
.single-back { margin-top: 3rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--terra); font-weight: 700; text-decoration: none; font-size: 0.9rem; }

.archive-hero { background: var(--warm); padding: 4rem 5rem 3rem; }
.archive-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900; color: var(--charcoal); }
.archive-hero p { margin-top: 0.8rem; color: var(--mid); max-width: 600px; }
.archive-grid-wrap { padding: 3.5rem 5rem 5rem; }

.pagination { display: flex; gap: 0.6rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.6rem 1.1rem; border-radius: 50px; border: 2px solid var(--sand); font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--mid); }
.pagination .current { background: var(--terra); border-color: var(--terra); color: #fff; }
.pagination a:hover { border-color: var(--terra); color: var(--terra); }

.widget-area { padding: 2rem 5rem; }


/* CONTACT FORM */
.contact-form-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 2rem; }
.contact-form-box h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.6rem; }
.contact-form-box > p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 1.4rem; line-height: 1.6; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-grid .full { grid-column: 1 / -1; }
.contact-form-box input, .contact-form-box textarea {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 0.85rem 1.1rem; color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; outline: none; transition: border 0.2s;
}
.contact-form-box input::placeholder, .contact-form-box textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form-box input:focus, .contact-form-box textarea:focus { border-color: var(--blush); }
.contact-form-box textarea { min-height: 110px; resize: vertical; }
.contact-form-box button {
  margin-top: 0.3rem; background: var(--terra); color: #fff; border: none;
  padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s;
}
.contact-form-box button:hover { background: var(--terra-deep); }
.form-notice { margin-bottom: 1.2rem; padding: 0.8rem 1.1rem; border-radius: 12px; font-size: 0.85rem; }
.form-notice.success { background: rgba(42,161,135,0.2); border: 1px solid var(--sage); color: #B9F0DE; }
.form-notice.error { background: rgba(255,111,60,0.15); border: 1px solid var(--terra); color: var(--blush); }

/* MOBILE */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.4rem; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 1rem 1.4rem 1.5rem; box-shadow: 0 12px 20px rgba(58,58,58,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-menu-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-menu-list li { width: 100%; }
  .nav-links .nav-menu-list a { display: block; padding: 0.7rem 0; width: 100%; }
  .nav-cta { margin-top: 0.8rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.4rem 2.4rem; }
  .hero-right { height: 60vw; min-height: 280px; }
  .section, .archive-hero, .archive-grid-wrap, .site-footer, .footer-bottom { padding-left: 1.4rem; padding-right: 1.4rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .single-wrap { padding: 3rem 1.4rem 4rem; }
  .contact-form-grid { grid-template-columns: 1fr !important; }
  .how { margin: 1.5rem 1rem 2.5rem; padding: 2.8rem 1.4rem; border-radius: 22px; }
  .contact-section { margin: 0 1rem 2.5rem; border-radius: 22px; padding-left: 1.4rem; padding-right: 1.4rem; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
