/* ========================================
   Queens of Color — Peluquería Especialista en Color
   styles.css — Estilos globales
   ======================================== */

/* --- Reset y Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #8B2252;
  --color-primary-light: #A8385E;
  --color-primary-dark: #6B1A40;
  --color-secondary: #D4A574;
  --color-secondary-light: #E8C9A8;
  --color-accent: #C9A96E;
  --color-dark: #1A1A1A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #FAFAFA;
  --color-bg-alt: #F5F0EB;
  --color-white: #FFFFFF;
  --color-border: #E0D6CC;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sale Banner (sticky) --- */
.sale-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sale-banner p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sale-banner form {
  display: inline-flex;
  align-items: center;
}

.sale-banner .escrow-btn {
  background: var(--color-secondary);
  color: var(--color-dark);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.sale-banner .escrow-btn:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.navbar {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 42px;
  z-index: 999;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107,26,64,0.7), rgba(26,26,26,0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  max-width: 750px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.service-card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-preview-text h2 {
  margin-bottom: 1rem;
}

.about-preview-text p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* --- Results / Before-After --- */
.results-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.results-overlay {
  background: rgba(139,34,82,0.85);
  padding: 5rem 0;
}

.results-content {
  text-align: center;
  color: var(--color-white);
}

.results-content h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.results-content p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.results-img {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
  color: var(--color-dark);
}

.blog-card-body h3 a:hover {
  color: var(--color-primary);
}

.blog-card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.read-more:hover {
  color: var(--color-primary-dark);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 4rem 0;
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumbs li::after {
  content: '›';
  margin-left: 0.3rem;
  color: var(--color-text-light);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: var(--color-primary);
  font-weight: 500;
}

/* --- Page Header (internal pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 3.5rem 0 3rem;
  text-align: center;
  color: var(--color-white);
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* --- About Page --- */
.about-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-full img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.value-item {
  padding: 2rem 1rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* --- Services Page --- */
.services-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.services-detail.reverse {
  direction: rtl;
}

.services-detail.reverse > * {
  direction: ltr;
}

.services-detail img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.services-detail-text h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.services-detail-text ul {
  list-style: none;
  margin-top: 1rem;
}

.services-detail-text ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-light);
}

.services-detail-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Blog Article --- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  min-width: 40px;
  text-align: center;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact-hours {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-hours h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-hours table {
  width: 100%;
  border-collapse: collapse;
}

.contact-hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.contact-hours td:last-child {
  text-align: right;
  color: var(--color-text-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--color-secondary);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Disclaimer (noindex) --- */
.disclaimer {
  font-size: 12px;
  color: #888;
  text-align: center;
  padding: 1rem 1.5rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .hero-content h1 { font-size: 2.5rem; }

  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview,
  .about-full,
  .services-detail,
  .services-detail.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar {
    position: relative;
    top: auto;
  }

  .hero {
    height: 55vh;
    min-height: 350px;
  }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }

  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .sale-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    position: relative;
  }

  .sale-banner p {
    font-size: 0.8rem;
  }

  .article-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  h2 { font-size: 1.5rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header { padding: 2.5rem 0 2rem; }

  .results-overlay {
    padding: 3rem 0;
  }
}
