/* ===========================================
   Consumo y Competencia - Restored Styles
   Based on Astra theme + custom WP CSS
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: inherit;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
blockquote { border: none; margin: 0; padding: 0; }

/* --- Variables (matching original theme) --- */
:root {
  --color-primary: #000038; /* rgb(0,0,56) */
  --color-primary-light: #2874fc; /* rgb(40,116,252) */
  --color-accent: #fcb900; /* luminous vivid amber */
  --color-text: #3a3a3a;
  --color-text-light: #e0e0e0;
  --color-white: #ffffff;
  --color-dark: #1a1a2e;
  --color-whatsapp: #25d366;
  --gradient-primary: linear-gradient(135deg, rgba(0,0,56,1) 0%, rgba(40,116,252,1) 100%);
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* --- WhatsApp Float --- */
.whatsapp {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  left: 20px;
  background-color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 1.7em;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.whatsapp:hover { transform: scale(1.1); }
.whatsapp-icon { color: var(--color-whatsapp); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-branding .custom-logo {
  width: 120px;
  height: auto;
}
.site-title {
  font-weight: normal;
  font-size: 0.85rem;
  text-transform: capitalize;
  margin-top: 0.25rem;
}
.site-title a { color: var(--color-white); }

.site-navigation .main-menu {
  display: flex;
  gap: 0.2rem;
}
.site-navigation .menu-link {
  color: var(--color-white);
  padding: 0.5em 0.7em;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-transform: capitalize;
}
.site-navigation .menu-link:hover,
.site-navigation .menu-link.active {
  color: var(--color-accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.8;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  filter: grayscale(0.5);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.hero-inner h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12em;
  margin-bottom: 3rem;
}
.hero-inner blockquote {
  max-width: 700px;
  margin: 0 auto;
}
.hero-inner blockquote p {
  color: var(--color-text-light);
  font-size: 1em;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  background: #e5a800;
  transform: translateY(-2px);
}
.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);
}
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.9rem; }

/* Post-it style rotation */
.post-it {
  transform: rotate(-10deg);
  padding: 3rem 2rem;
}
.post-it:hover { transform: rotate(-5deg) scale(1.05); }

/* --- Cover Sections --- */
.cover-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cover-overlay-dark {
  background: var(--color-primary);
  opacity: 0.8;
}
.cover-overlay-amber {
  background: var(--color-accent);
  opacity: 0.9;
}
.cover-overlay-blue {
  background: #0693e3;
  opacity: 0.9;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.cover-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}
.cover-inner.columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  align-items: center;
}
.col { flex: 1; }
.col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-title.accent { color: var(--color-text-light); }
.text-white { color: var(--color-white); }
.text-light { color: var(--color-text-light); }
.text-dark { color: #1a1a1a; }

.cover-section h3 { margin-bottom: 1rem; }
.cover-section p { margin-bottom: 1.2rem; line-height: 1.7; }

/* Consumidores section */
.consumidores .cover-bg { filter: brightness(1.1); }
.consumidores .section-title { font-size: 2.5rem; }

/* --- CTA Sections --- */
.cta-section {
  background: var(--color-text-light);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-text);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
}
.footer-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 3rem;
}
.footer-col { flex: 1; }

.footer-top {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top .footer-row { align-items: center; }
.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(122,205,238,0.15);
  color: #7acdee;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.footer-social .social-link:hover {
  background: #7acdee;
  color: var(--color-primary);
}
.footer-top h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.footer-mid {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.widget-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}
.footer-mid p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}
.footer-mid a {
  color: var(--color-accent);
  transition: color 0.2s;
}
.footer-mid a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom .footer-row {
  align-items: center;
}
.copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-nav ul {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-white); }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  z-index: 10000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-content {
  padding: 1.5rem;
}
.cookie-icon { font-size: 1.5rem; }
.cookie-content p {
  font-size: 0.85rem;
  margin: 0.8rem 0;
  color: var(--color-text);
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .site-navigation.active { display: block; }
  .site-navigation .main-menu {
    flex-direction: column;
    padding: 1rem 0;
  }
  .site-navigation .menu-link {
    padding: 1em 2rem;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-navigation .menu-link:active {
    background: rgba(255,255,255,0.1);
  }
  /* Global mobile padding */
  .header-inner { padding: 0.8rem 1rem; }
  .hero-inner { padding: 6rem 1.2rem 3rem; }
  .hero-inner h1 { font-size: 1.6rem; }
  .hero-buttons { justify-content: center; gap: 0; }
  .hero-inner blockquote p { padding-left: 1rem; font-size: 0.9rem; }
  .post-it { transform: rotate(-5deg); padding: 2rem 1.5rem; }
  .cover-inner { padding: 3rem 1.2rem; }
  .cover-inner.columns { flex-direction: column; gap: 2rem; }
  .cover-section { min-height: auto; padding: 0; }
  .section-title { font-size: 1.8rem; }
  .cover-section h3 { font-size: 1.1rem; }
  .cta-section { padding: 3rem 1.2rem; }
  .cta-section h3 { font-size: 1.2rem; }
  .footer-row { flex-direction: column; gap: 2rem; padding: 0 1.2rem; }
  .footer-nav ul { justify-content: flex-start; }
  .cookie-banner { left: 10px; right: 10px; max-width: none; bottom: 10px; }
  /* Subpages mobile */
  .page-hero { padding: 6rem 1.2rem 3rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .content-section { padding: 2.5rem 1.2rem; }
  .content-section h2 { font-size: 1.5rem; }
  .two-col-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media screen and (min-width: 769px) {
  .hero-inner h1 { padding-top: 4em; }
}

/* Header scroll effect */
@media (prefers-reduced-motion: no-preference) {
  .cover-bg, .hero-bg {
    background-attachment: fixed;
  }
}

/* ===========================================
   Subpage Styles
   =========================================== */

/* --- Page Hero (subpages) --- */
.page-hero {
  background: var(--gradient-primary);
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: var(--color-white);
}
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Content Section --- */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.content-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.content-section h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}
.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.content-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* --- Two Column Grid --- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr; }
}

/* --- Info Cards --- */
.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
}
.info-card h3 {
  margin-bottom: 0.8rem;
}
.info-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.feature-card h3 { color: var(--color-primary); }

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  counter-reset: step;
}
.step {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step);
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.step h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.step p { font-size: 0.9rem; }

/* --- Contact Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.form-check input[type="checkbox"] { margin-top: 0.3rem; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-body .tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.blog-card-body h3 a { color: var(--color-primary); }
.blog-card-body h3 a:hover { color: var(--color-primary-light); }
.blog-card-body p { font-size: 0.9rem; color: #666; }
.blog-card-placeholder {
  background: var(--gradient-primary);
  height: 180px;
}

/* --- Coming Soon Banner --- */
.coming-soon {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 2rem 0;
}
.coming-soon p {
  font-size: 1.1rem;
  color: #666;
}

/* --- Legal Pages --- */
.page-legal .content-section {
  max-width: 800px;
}
.page-legal h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

/* --- Container Narrow --- */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}
