/* 
  Protección Patrimonial
  Estilo principal - Luxury Minimalist
  Fecha: 04/07/2025
*/

/* ===== Variables ===== */
:root {
  --color-primary: #2A3042;
  --color-secondary: #A38D65;
  --color-accent-1: #D4B78F;
  --color-accent-2: #4D5B7C;
  --color-bg-light: #F9F7F4;
  --color-bg-dark: #1A1E2A;
  --color-text-primary: #333333;
  --color-text-secondary: #777777;
  --color-white: #FFFFFF;
  --color-success: #3E8476;
  --color-warning: #E6B54A;
  --color-error: #C25450;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.3s ease-in-out;
  --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent-1);
}

ul {
  list-style: none;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
  border: none;
}

/* ===== Layout Helpers ===== */
.container {
  width: 90%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  position: relative;
  font-weight: 500;
  color: var(--color-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 6rem;
  height: 3px;
  background-color: var(--color-secondary);
}

.section-title.centered {
  text-align: center;
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

/* ===== Flex y Grid Helpers ===== */
.flex {
  display: flex;
}

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

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.grid {
  display: grid;
  gap: 3rem;
}

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 3px;
  font-weight: 500;
  text-align: center;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--color-accent-1);
  color: var(--color-primary);
}

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

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

.btn-lg {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Header y Navegación ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.header-scrolled {
  box-shadow: var(--shadow-medium);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.logo img {
  height: 4rem;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 101;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  padding: 10rem 2rem 2rem;
  transition: right 0.3s ease-in-out;
  box-shadow: var(--shadow-medium);
  z-index: 100;
}

.nav-menu.active {
  right: 0;
}

.nav-item {
  margin-bottom: 1.5rem;
}

.nav-link {
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-secondary);
}

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

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

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 99;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .nav-toggle, .overlay {
    display: none;
  }
  
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }
  
  .nav-item {
    margin: 0 1.5rem;
    margin-bottom: 0;
  }
  
  .nav-link {
    font-size: 1.6rem;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 48, 66, 0.05) 0%, rgba(163, 141, 101, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.hero-cta {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    height: 80vh;
    min-height: 60rem;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
    margin: 0;
  }
  
  .hero-title {
    font-size: 4.8rem;
    max-width: 80%;
  }
  
  .hero-subtitle {
    font-size: 2rem;
    max-width: 70%;
  }
}

/* ===== Características ===== */
.features {
  background-color: var(--color-white);
  padding: 8rem 0;
}

.feature-card {
  background-color: var(--color-bg-light);
  border-radius: 5px;
  padding: 3rem;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

.feature-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.feature-desc {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* ===== Acerca De ===== */
.about {
  background-color: var(--color-bg-light);
  padding: 8rem 0;
}

.about-img {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.about-desc {
  margin-bottom: 3rem;
  color: var(--color-text-secondary);
}

.about-points {
  margin-top: 2rem;
}

.about-point {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.about-point i {
  color: var(--color-secondary);
  font-size: 2rem;
  margin-right: 1.5rem;
}

/* ===== Servicios ===== */
.services {
  background-color: var(--color-white);
  padding: 8rem 0;
}

.service-card {
  background-color: var(--color-bg-light);
  border-radius: 5px;
  padding: 3rem;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.service-card:hover {
  box-shadow: var(--shadow-medium);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

.service-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.service-desc {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* ===== CTA Section ===== */
.cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(77, 91, 124, 0.6) 0%, rgba(26, 30, 42, 0.8) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 70rem;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta-desc {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ===== Form Styles ===== */
.contact-form {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 5px;
  box-shadow: var(--shadow-medium);
  max-width: 60rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(163, 141, 101, 0.2);
}

textarea.form-control {
  min-height: 12rem;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.form-check-input {
  margin-top: 0.3rem;
  margin-right: 1rem;
}

.form-check-label {
  font-size: 1.4rem;
  color: var(--color-text-secondary);
}

/* ===== Card Styles ===== */
.card {
  background-color: var(--color-white);
  border-radius: 5px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-5px);
}

.card-img {
  height: 20rem;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding-top: 6rem;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 4rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-white);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 4rem;
  height: 2px;
  background-color: var(--color-secondary);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-contact-icon {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-right: 1.5rem;
  margin-top: 0.3rem;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
  }
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 2rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 120rem;
  margin: 0 auto;
}

.cookie-text {
  margin-bottom: 2rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 60rem;
  background-color: var(--color-white);
  border-radius: 5px;
  padding: 3rem;
  z-index: 10000;
  box-shadow: var(--shadow-medium);
  display: none;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-settings-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.cookie-settings-desc {
  margin-bottom: 3rem;
  color: var(--color-text-secondary);
}

.cookie-category {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 5rem;
  height: 2.6rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition-smooth);
  border-radius: 3.4rem;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1.8rem;
  width: 1.8rem;
  left: 0.4rem;
  bottom: 0.4rem;
  background-color: white;
  transition: var(--transition-smooth);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--color-secondary);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--color-secondary);
}

input:checked + .toggle-slider:before {
  transform: translateX(2.4rem);
}

.cookie-category-desc {
  color: var(--color-text-secondary);
  font-size: 1.4rem;
}

.cookie-settings-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 5px;
  max-width: 50rem;
  width: 90%;
  box-shadow: var(--shadow-medium);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.modal-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.modal-body {
  margin-bottom: 2rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ===== Utilities ===== */
.shadow {
  box-shadow: var(--shadow-soft);
}

.shadow-md {
  box-shadow: var(--shadow-medium);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-white {
  color: var(--color-white);
}

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

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

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

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

.rounded {
  border-radius: 5px;
}

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }
.p-5 { padding: 5rem; }

/* Estilos específicos para intl-tel-input */
.iti {
  width: 100%;
}

.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}

/* ===== Animate.css overrides ===== */
.animate__animated {
  --animate-duration: 0.8s;
}

/* ===== Custom animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

/* ===== Resource Page Styles ===== */
.resource-card {
  background-color: var(--color-white);
  border-radius: 5px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.resource-card:hover {
  box-shadow: var(--shadow-medium);
}

.resource-img {
  height: 18rem;
  overflow: hidden;
}

.resource-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.resource-desc {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  color: var(--color-text-secondary);
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  margin-top: auto;
}

.resource-type {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-light);
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 500;
}

.resource-date {
  display: flex;
  align-items: center;
}

.resource-date i {
  margin-right: 0.5rem;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 120rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-secondary);
  left: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 6rem;
  margin-bottom: 5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 1.2rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
  border: 4px solid var(--color-white);
  z-index: 1;
}

.timeline-content {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: var(--shadow-soft);
}

.timeline-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-light);
  border-radius: 3px;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.timeline-desc {
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    padding-left: 0;
    width: 50%;
  }
  
  .timeline-item:nth-child(odd) {
    padding-right: 5rem;
    margin-left: auto;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 5rem;
    margin-right: auto;
  }
  
  .timeline-dot {
    left: auto;
    right: -1rem;
    top: 1rem;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -1rem;
  }
}

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 2rem;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-bg-light);
  padding: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 2rem;
  max-height: 50rem;
}

/* ===== Content Pages ===== */
.content-page {
  padding: 10rem 0 6rem;
}

.content-header {
  text-align: center;
  margin-bottom: 5rem;
}

.content-title {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.content-subtitle {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  max-width: 70rem;
  margin: 0 auto;
}

.content-body {
  max-width: 80rem;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 5rem;
}

.content-section-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.content-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 3px;
  background-color: var(--color-secondary);
}

.content-text {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.content-img {
  margin: 3rem 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.content-highlight {
  background-color: var(--color-bg-light);
  padding: 2.5rem;
  border-left: 5px solid var(--color-secondary);
  border-radius: 0 5px 5px 0;
  margin: 3rem 0;
}

.content-highlight-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.content-highlight-text {
  color: var(--color-text-secondary);
}

.content-list {
  margin: 2rem 0;
  padding-left: 2rem;
}

.content-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.content-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0.2rem;
}

/* Estilos para páginas de políticas */
.policy-page {
  padding: 12rem 0 6rem;
}

.policy-container {
  max-width: 80rem;
  margin: 0 auto;
}

.policy-header {
  text-align: center;
  margin-bottom: 5rem;
}

.policy-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.policy-date {
  font-size: 1.6rem;
  color: var(--color-text-secondary);
}

.policy-section {
  margin-bottom: 4rem;
}

.policy-section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.policy-text {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.policy-list {
  margin: 2rem 0;
  padding-left: 2rem;
}

.policy-list li {
  margin-bottom: 1.5rem;
}

/* ===== Tables ===== */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
}

.content-table th,
.content-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.content-table th {
  background-color: var(--color-bg-light);
  font-weight: 600;
  color: var(--color-primary);
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:hover td {
  background-color: rgba(249, 247, 244, 0.5);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background-color: var(--color-bg-light);
  padding: 1.5rem 0;
  margin-bottom: 4rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin: 0 1rem;
  color: var(--color-text-secondary);
}

.breadcrumbs-link {
  color: var(--color-text-secondary);
  font-size: 1.4rem;
}

.breadcrumbs-link:hover {
  color: var(--color-secondary);
}

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

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.pagination-item {
  margin: 0 0.5rem;
}

.pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.pagination-link:hover,
.pagination-link.active {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.pagination-link.prev,
.pagination-link.next {
  font-size: 1.4rem;
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block;
  width: 4rem;
  height: 4rem;
  border: 3px solid rgba(163, 141, 101, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-secondary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Swiper ===== */
.swiper {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-secondary);
}

.swiper-pagination-bullet-active {
  background-color: var(--color-secondary);
}

/* ===== Thanks Page ===== */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.thanks-content {
  max-width: 60rem;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: 2rem;
}

.thanks-title {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.thanks-text {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

/* ===== Error Page ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.error-content {
  max-width: 60rem;
}

.error-code {
  font-size: 10rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  line-height: 1;
}

.error-title {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.error-text {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

/* ===== Print Styles ===== */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  .header, .footer, .cta, form, .cookie-consent {
    display: none !important;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  .content-page {
    padding: 2cm 1cm;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}