:root {
  --primary: #be0c11;
  --primary-light: #ff2a2f;
  --white: #ffffff;
}

section *{font-family: 'Poppins', sans-serif!important;}

/* BASE */
body {
  font-family: 'Poppins', sans-serif!important;
  background: #f9f9f9;
  color: #000;
  transition: padding-top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* HEADER SIEMPRE FIXED */
#page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  /* estado inicial (transparente) */
  background: #ffffff;
  backdrop-filter: blur(0px);
}

/* ESTADO SCROLL */
#page-header.scrolled {
  background: #fff;
}

/* SPACER SIEMPRE RESERVA EL ESPACIO */
#headerSpacer {
  width: 100%;
  height: 150px!important;
}

#page-header {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#page-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: #ffffff;
}

/* TRANSITIONS GLOBAL */
#heroSection,
.content-section,
#page-header,
#page-footer {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* SMOOTH RENDER */
body {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* GPU ACCELERATION */
.hero-bg {
  will-change: transform, filter;
}

.page-footer {
    border-top: 8px solid #b70000;
}

/* HERO */
.hero-pro {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* BACKGROUND IMAGE */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('./images/cancellation-and-return-policy/hero.png') top/cover no-repeat;
  transform: scale(1.05);
  filter: brightness(0.55);
  transition: transform 0.4s ease;
}

/* OVERLAY con identidad */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgb(53 53 53 / 25%), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(6px);
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.hero-content p {
  margin-top: 20px;
  font-size: 18px;
  color: #e5e5e5;
}

/* BUTTONS */
.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

/* PRIMARY BUTTON (CEVIMED STYLE) */
.btn-pro {
  position: relative;
  overflow: hidden;
  padding: 14px 34px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-pro:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* OUTLINE BUTTON */
.btn-pro.outline {
  background: #b70000;
  color: var(--white);
  border: 1px solid #a40505;
  backdrop-filter: blur(10px);
}

.btn-pro.outline:hover {
  background: rgb(198 28 28);
}

/* BUTTON GLOW EFFECT */
.btn-pro::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 40%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.4s ease;
}

.btn-pro:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* GLOW dinámico con rojo */
.hero-pro::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(90px);
  animation: glowMove 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes glowMove {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-45%, -55%) scale(1.2); }
}

/* SCROLL INDICATOR */
.scroll-indicator {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.scroll-indicator span {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

/* SECTIONS (FIX IMPORTANTE) */
.content-section {
  padding: 30px 0;
  background: #ffffff;
  display: none;

  /* 🔥 FIX VISIBILIDAD */
  opacity: 1 !important;
  transform: none !important;
}

/* BACK BUTTON */
.back-btn {
  margin-bottom: 30px;
  background: none;
  border: none;
  color: #000000;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn:hover {
  color: var(--primary);
}

/* TABS */
.tabs {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgb(83 83 83 / 20%);
  background: transparent;
  color: #000000;
  cursor: pointer;
  transition: 0.3s;
}

.tab:hover {
  color: #000;
  border-color: var(--primary);
}

.tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* TAB CONTENT */
.tab-content {
  display: none;
  margin-top: 30px;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* GRID */
.cancellation-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* TEXT */
.cancel-title {
  color: #000000;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cancel-desc {
  color: #030303;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* HIGHLIGHT */
.highlight {
  color: #be0c11;
  font-weight: 600;
}

/* IMAGE */
.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* SOFT SHADOW */
.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}

/* TABS HEADER */
.cancel-tabs-header {
  margin-top: 60px;
}

.cancel-tabs-header h3 {
  color: #000;
  font-size: 28px;
  font-weight: 600;
}

/* PRO TABS */
.pro-tabs {
  margin-top: 20px;
  gap: 14px;
}

/* POLICY CARDS */
.policy-card {
  margin-top: 30px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.policy-card h4 {
  color: #000;
  margin-bottom: 15px;
  font-size: 18px;
}

.policy-card ul {
  padding-left: 18px;
}

.policy-card li {
  margin-bottom: 10px;
  color: #000;
}

/* DANGER CARD */
.policy-card.danger {
  border: 1px solid rgba(190,12,17,0.4);
  background: rgba(190,12,17,0.05);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .cancellation-grid {
    grid-template-columns: 1fr;
  }

  .cancel-title {
    font-size: 26px;
  }
}

/* WRAPPER */
.policy-wrapper {
  margin-top: 40px;
}

/* TITLE */
.policy-main-title {
  font-size: 28px;
  color: #;
  margin-bottom: 30px;
}

/* GRID */
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* COLUMN */
.policy-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* RIGHT BORDER DIVIDER */
.policy-col.right {
  padding-left: 30px;
  border-left: 1px solid rgba(190,12,17,0.4);
}

/* HIGHLIGHT */
.policy-highlight {
  color: #be0c11;
  font-weight: 600;
}

/* INTRO */
.policy-intro {
  color: #000000;
  line-height: 1.6;
}

/* BLOCK */
.policy-block {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* GLASS */
.policy-block.glass {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.05);
}

/* SUCCESS */
.policy-block.success {
  border: 1px solid rgb(0 83 49 / 50%);
}

/* DANGER */
.policy-block.danger {
  border: 1px solid rgba(190,12,17,0.4);
  background: rgba(190,12,17,0.05);
}

/* TITLES */
.policy-block h5 {
  margin-bottom: 10px;
  font-size: 16px;
}

/* LIST */
.policy-block ul {
  padding-left: 18px;
}

.policy-block li {
  margin-bottom: 8px;
  color: #000000;
}

/* CONTACT */
.policy-contact {
  margin-top: 10px;
  font-size: 14px;
  color: #000000;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-col.right {
    border-left: none;
    padding-left: 0;
  }
}

/* Mejora visual espec�fica RPI */
.policy-wrapper {
  animation: fadeSoft 0.6s ease;
}

@keyframes fadeSoft {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejor spacing en textos largos */
.policy-intro {
  max-width: 520px;
}

/* Ajuste visual contacto */
.policy-contact {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

/* GRID */
.return-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.return-grid.reverse {
  direction: rtl;
}

.return-grid.reverse * {
  direction: ltr;
}

/* IMAGE */
.return-image img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.6s ease;
}

.return-image:hover img {
  transform: scale(1.05);
}

/* TEXT */
.return-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.return-text h3 {
  margin-top: 20px;
  font-size: 2rem;
}

.return-text p {
  color: #000000;
  line-height: 1.6;
}

.return-text ul {
  margin-top: 10px;
  padding-left: 18px;
}

.return-text li {
  margin-bottom: 8px;
}

/* PROCESS SECTION */
.return-process {
  background: #111;
  padding: 60px 0;
  margin: 30px 0;
}

.return-process h2{
  font-size: 2rem;
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.process-col h4 {
  margin-top: 15px;
  color: #fff;
}

.process-col p {
  color: #bbb;
}

/* DIVIDER */
.divider-vertical {
  width: 1px;
  background: #be0c11;
  height: 100%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .return-grid {
    grid-template-columns: 1fr;
  }

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

  .divider-vertical {
    display: none;
  }
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Back minimal */
.back-btn {
  background: transparent;
  border: none;
  color: #636363;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.back-btn:hover {
  color: #000000;
  transform: translateX(-3px);
}

/* Bot�n peque�o PRO */
.btn-pro.small {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 30px;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}

.policy-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #be0c11;
  opacity: 0.6;
}

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

  .policy-grid::after {
    display: none;
  }
}

.hero-split {
  background: #ffffff;
  padding: 80px 0;
}

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

.hero-left {
  max-width: 520px;
}

.hero-logo {
  width: 140px;
  margin-bottom: 20px;
}

.hero-left h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.helper {
  font-size: 16px;
  color: #777;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-outline {
  padding: 12px 28px;
  border: 2px solid #b70000;
  background: transparent;
  color: #b70000;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #b70000;
  color: #fff;
}

.hero-right img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}