/* Estilos Globales */
:root {
  --primary: #1E0F30;
  --secondary: #AF8D4C;
  --accent: #7B1FA2;
  --accent-secondary: #4A155F;
  --bg-primary: #0A0A14;
  --bg-secondary: #161626;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8D4;
  --success: #00C897;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --gold-gradient: linear-gradient(135deg, #AF8D4C 0%, #E2C16B 50%, #AF8D4C 100%);
  --purple-gradient: linear-gradient(135deg, #4A155F 0%, #7B1FA2 50%, #4A155F 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

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

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

.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
  background-position: right center;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.container {
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
}

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

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

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

.navbar-brand img {
  height: 40px;
}

.navbar {
  padding: 0;
}

.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(175, 141, 76, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 20px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link:focus::after, .nav-link.active::after {
  width: 30px;
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
  }
  
  .nav-link {
    text-align: center;
    padding: 15px;
  }
  
  .nav-link::after {
    bottom: 5px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.jpg') no-repeat center center/cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-buttons .btn {
  margin: 0 10px 10px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-card {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--purple-gradient);
  transition: var(--transition);
}

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

.about-card:hover::before {
  height: 10px;
}

.about-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--purple-gradient);
  font-size: 1.8rem;
  color: var(--text-primary);
}

/* Features Section */
.feature-item {
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.feature-item:hover::after {
  height: 5px;
}

/* Image Content Sections */
.image-content-section {
  position: relative;
  overflow: hidden;
}

.image-content-section .image-wrapper {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 15px;
}

.image-content-section .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.content-box {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-box h2 {
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.content-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
}

/* Data Visualization */
.data-card {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gold-gradient);
}

.data-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.data-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Call to Action */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/future-payments.jpg') no-repeat center center/cover;
  opacity: 0.1;
  z-index: -1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gold-gradient);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--purple-gradient);
  border-radius: 0 0 0 100%;
  opacity: 0.5;
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 5px;
  padding: 12px 15px;
  height: auto;
  transition: var(--transition);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  color: var(--text-primary);
  box-shadow: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  margin-top: 40px;
}

.contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text {
  flex-grow: 1;
}

.contact-text h4 {
  margin-bottom: 5px;
}

/* Map */
.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-gradient);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-contact {
  margin-bottom: 30px;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-links h4 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
}

/* FAQ Page */
.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-left: 5px solid var(--accent);
}

.faq-question:hover {
  background-color: rgba(22, 22, 38, 0.8);
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-question.active {
  border-left-color: var(--secondary);
}

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

.faq-answer {
  background-color: rgba(22, 22, 38, 0.5);
  padding: 20px;
  border-radius: 0 0 10px 10px;
  margin-top: 2px;
  display: none;
}

.faq-answer.show {
  display: block;
}

/* Guide Page */
.guide-card {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--purple-gradient);
}

.guide-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--purple-gradient);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.guide-steps li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.guide-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

.guide-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 1px;
  height: calc(100% + 5px);
  background: var(--secondary);
}

/* Política de privacidad, términos y cookies */
.policy-content {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: 15px;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.policy-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
}

.policy-content p, .policy-content ul {
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content ul li {
  margin-bottom: 10px;
}

/* Cookies Consent */
.cookie-consent-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 30px;
  z-index: 9999;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  margin: 0 auto;
  display: none;
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  display: none;
}

.cookie-settings-content {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: 30px;
}

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

.cookie-category-title {
  margin: 0;
  font-size: 1.2rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

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

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

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

.cookie-category-description {
  margin-top: 10px;
  color: var(--text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-btn {
  flex: 1;
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.cookie-accept-all {
  background-color: var(--success);
  color: white;
}

.cookie-accept-all:hover {
  background-color: #00a67e;
}

.cookie-reject-all {
  background-color: #444;
  color: white;
}

.cookie-reject-all:hover {
  background-color: #333;
}

.cookie-save-preferences {
  background-color: var(--secondary);
  color: white;
}

.cookie-save-preferences:hover {
  background-color: #967a40;
}

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

.cookie-settings-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Thank You Page */
.thank-you-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.thank-you-content {
  max-width: 600px;
  background-color: var(--bg-secondary);
  padding: 50px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.thank-you-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-gradient);
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 3rem;
  color: var(--bg-primary);
}

/* Animaciones y efectos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Intl-tel-input styles */
.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");
  }
}

/* Media Queries */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .image-content-section .image-wrapper {
    min-height: 250px;
    margin-bottom: 30px;
  }
  
  .content-box {
    padding: 30px 0;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .contact-form-wrapper {
    padding: 30px;
  }
  
  .cookie-consent-modal {
    left: 10px;
    right: 10px;
    padding: 20px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .thank-you-content {
    padding: 30px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .data-number {
    font-size: 2.5rem;
  }
  
  .contact-form-wrapper {
    padding: 20px;
  }
  
  .policy-content {
    padding: 25px;
  }
  
  .thank-you-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}