/* Variables globales */
:root {
  --primary-color: #D8735A;
  --secondary-color: #39627F;
  --accent-color: #F7C145;
  --bg-primary: #F5F2E9;
  --bg-secondary: #EDE6D9;
  --text-primary: #33322E;
  --text-secondary: #6B6964;
  --alert-color: #8EA68D;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

strong {
  font-weight: 500;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

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

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

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

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

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

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

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover:after {
  width: 200%;
  height: 200%;
}

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

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

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

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

.mb-1 {
  margin-bottom: 0.5rem;
}

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

.mb-3 {
  margin-bottom: 1.5rem;
}

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

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

.mt-1 {
  margin-top: 0.5rem;
}

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

.mt-3 {
  margin-top: 1.5rem;
}

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

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

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(245, 242, 233, 0.95);
  padding: 0.5rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-toggler {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
}

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-item {
  margin-left: 1.5rem;
  position: relative;
}

.navbar-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.navbar-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Split Screen Layout */
.split-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 72px; /* Ajustar según la altura de la navbar */
}

.split-left, .split-right {
  width: 100%;
  padding: 3rem 1.5rem;
}

.split-left {
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right {
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  margin-top: 72px; /* Ajustar según la altura de la navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero-title:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.5rem;
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.feature-card {
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  background-color: var(--bg-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.feature-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(216, 115, 90, 0.1);
  border-radius: 50%;
  z-index: -1;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Sección de información */
.info-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.info-section:nth-child(odd) {
  background-color: var(--bg-secondary);
}

.info-section:nth-child(even) {
  background-color: var(--bg-primary);
}

.info-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 300px;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.info-content {
  padding: 2rem;
}

.info-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.info-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
}

.info-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Formulario de contacto */
.contact-form {
  padding: 2rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(216, 115, 90, 0.25);
}

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

.form-submit {
  width: 100%;
}

/* FAQs */
.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.25rem;
  background-color: var(--bg-secondary);
  font-weight: 500;
  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;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 1000px;
}

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

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-text {
  margin-bottom: 1.5rem;
  color: rgba(245, 242, 233, 0.7);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--bg-primary);
  position: relative;
}

.footer-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 2px;
  width: 40px;
  background-color: var(--primary-color);
}

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

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: rgba(245, 242, 233, 0.7);
  transition: all 0.3s ease;
}

.footer-link a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(245, 242, 233, 0.1);
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
}

.social-link i {
  color: var(--bg-primary);
  font-size: 1.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(245, 242, 233, 0.1);
  text-align: center;
}

.footer-copyright {
  color: rgba(245, 242, 233, 0.5);
  font-size: 0.875rem;
}

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

.cookie-consent.show {
  display: block;
}

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

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

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background-color: var(--bg-primary);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.cookie-settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(51, 50, 46, 0.1);
}

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

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

.cookie-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

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

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

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

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

input:checked + .cookie-slider {
  background-color: var(--primary-color);
}

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

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

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

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

/* Estilos para tabla */
.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(51, 50, 46, 0.1);
}

th {
  background-color: var(--bg-secondary);
  font-weight: 500;
  color: var(--text-primary);
}

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

tr:hover {
  background-color: rgba(245, 242, 233, 0.5);
}

/* Estilo para intl-tel-input */
.iti {
  width: 100%;
}

/* Thank You Page */
.thank-you-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

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

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thank-you-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* Privacy, Terms, Cookie Policy pages */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.policy-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

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

.policy-section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.policy-subsection-title {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Chart styles */
.chart-container {
  width: 100%;
  margin-bottom: 2rem;
}

.chart {
  height: 300px;
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .split-screen {
    flex-direction: row;
  }

  .split-left, .split-right {
    width: 50%;
    padding: 4rem 2rem;
  }

  .hero {
    padding: 8rem 0;
  }

  .feature-card {
    height: 100%;
  }

  .info-image {
    min-height: 400px;
  }

  .info-content {
    padding: 2rem 3rem;
  }

  .cookie-buttons {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }
}

.navbar-collapse {
  flex-basis: content;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-primary);
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-collapse.show {
    height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .navbar-menu {
    flex-direction: column;
    padding: 1rem;
  }

  .navbar-item {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 50, 46, 0.1);
  }

  .navbar-item:last-child {
    border-bottom: none;
  }

  .navbar-link {
    display: block;
    font-size: 1.25rem;
  }

  .navbar-link:after {
    display: none;
  }
}