/* =========================================
   pages.css — Estilos compartidos para
   privacidad.html, terminos.html, faq.html
   ========================================= */

/* ---- Reset Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-base);
  line-height: 1.6;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ---- Page Header ---- */
.page-header {
  background-color: transparent;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  color: var(--color-white);
}

.page-header__logo img {
  height: 3rem;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.page-header__logo img:hover {
  transform: scale(1.05);
}

.page-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.page-header.scrolled .page-header__back {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-header.scrolled .page-header__back:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header__logo-img--white {
  display: none !important;
}

/* Cuando el header cambia */
.page-header.scrolled .header__logo-img--white {
  display: block !important;
}

.page-header.scrolled .header__logo-img--black {
  display: none !important;
}

.page-header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.page-header__back:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* ---- Page Hero Banner ---- */
.page-hero {
  background: var(--gradient-hero);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(12, 218, 211, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__badge {
  display: inline-block;
  background: rgba(12, 218, 211, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(12, 218, 211, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-hero__date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ---- Page Content ---- */
.page-content {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.page-content__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.page-content__intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-content__section {
  margin-bottom: 2.5rem;
}

.page-content__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-content__section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1rem;
  background: var(--color-secondary);
  border-radius: 2px;
  flex-shrink: 0;
}

.page-content__section p,
.page-content__section li {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
}

.page-content__section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-content__section li {
  padding-left: 1.2rem;
  position: relative;
}

.page-content__section li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.page-content__link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--color-secondary);
  transition: opacity 0.2s ease;
}

.page-content__link:hover {
  opacity: 0.75;
}

/* ---- FAQ Accordion ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item.faq-item--open {
  box-shadow: var(--shadow-sm);
  border-color: rgba(12, 218, 211, 0.4);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--color-white);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-item__question:hover {
  background: var(--color-bg-light);
}

.faq-item--open .faq-item__question {
  color: var(--color-primary);
  background: rgba(12, 218, 211, 0.04);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.faq-item--open .faq-item__icon {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--color-white);
}

.faq-item--open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding: 0 1.5rem 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.97rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* ---- Page Footer ---- */
.page-footer {
  background: var(--gradient-hero);
  padding: 2rem 1.5rem;
  text-align: center;
}

.page-footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.page-footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.page-footer__links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.page-footer__links a:hover {
  color: var(--color-secondary);
}

/* ---- Responsive ---- */
@media screen and (max-width: 600px) {
  .page-hero__title {
    font-size: 1.8rem;
  }

  .page-content__card {
    padding: 1.5rem;
  }
}