/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;700&display=swap');

:root {
  --color-primary: #4CB8FF;
  --color-primary-transparent: rgba(76, 184, 255, 0.7);
  --color-secondary: #7B68EE;
  --color-secondary-transparent: rgba(123, 104, 238, 0.8);
  --color-accent-green: #34D399;
  --color-accent-orange: #F59E0B;
  --color-bg-gradient: linear-gradient(135deg, #EDF1F7 0%, #E2E8F0 100%);
  --color-glass: rgba(255, 255, 255, 0.25);
  --color-text-primary: #334155;
  --color-text-secondary: #64748B;
  --color-link: #3B82F6;
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --transition-default: all 0.3s ease;
}

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

body {
  font-family: 'Figtree', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Componentes glassmórficos */
.glass {
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-default);
}

.glass:hover {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card {
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 20px;
  height: 100%;
  transition: var(--transition-default);
}

.glass-card:hover {
  transform: translateY(-5px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

/* Header y navegación */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 15px 0;
}

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

.logo {
  max-width: 180px;
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 24px;
  cursor: pointer;
}

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

.nav-item {
  margin-left: 20px;
}

.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition-default);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-secondary);
  background: rgba(123, 104, 238, 0.1);
}

/* Split Screen Layout */
.split-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0;
  background: var(--color-bg-gradient);
  overflow: hidden;
}

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

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

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-primary-transparent);
  color: white;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
}

.btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

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

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

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

.btn-accent:hover {
  background: #2cb67d;
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition-default);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 184, 255, 0.2);
}

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

/* Card Styles */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

/* Features Section */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary-transparent);
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: var(--glass-border);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-default);
}

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

.copyright {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(100, 116, 139, 0.2);
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9999;
  padding: 20px;
  border-radius: 16px;
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  display: none;
}

.cookie-settings-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
}

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

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

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

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

.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: 24px;
}

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

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

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

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

.cookie-category-title {
  font-weight: 600;
  font-size: 18px;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
}

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

.modal-content {
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  transform: translateY(-20px);
  transition: var(--transition-default);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-secondary-transparent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  z-index: 900;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (min-width: 576px) {
  .split-screen {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-text {
    margin-right: 20px;
  }
}

@media (min-width: 992px) {
  .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-default);
    z-index: 999;
  }
  
  .nav-menu.active {
    height: auto;
    padding: 20px 0;
    border-bottom: var(--glass-border);
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Específicos para chart.js */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
}

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

/* Estilo para la página de agradecimiento */
.thanks-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.thanks-icon {
  font-size: 80px;
  color: var(--color-accent-green);
  margin-bottom: 30px;
}

.thanks-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.thanks-text {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

/* Estilo para la página de contacto */
.contact-info {
  margin-bottom: 40px;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-transparent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.map-container {
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}

/* Estilos para las políticas */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.policy-date {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.policy-text {
  margin-bottom: 15px;
}

.policy-list {
  padding-left: 20px;
  margin-bottom: 15px;
}

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