/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* Variables de colores */
:root {
  --primary: #FF5400;
  --secondary: #1C2541;
  --accent1: #00A8E8;
  --accent2: #FFDF6C;
  --accent3: #8F2D56;
  --bg-primary: #F8F9FA;
  --bg-secondary: #E9ECEF;
  --text-primary: #212529;
  --text-secondary: #6C757D;
}

/* Reset y estilos generales */
* {
  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;
}

/* Brutalista web estilo */
.brutalist-container {
  max-width: 100%;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .brutalist-container {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .brutalist-container {
    padding: 2rem;
  }
}

.brutalist-box {
  border: 3px solid var(--secondary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  background-color: var(--bg-secondary);
}

.brutalist-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background-color: var(--accent1);
  z-index: -1;
}

.brutalist-box.accent-1::after {
  background-color: var(--accent1);
}

.brutalist-box.accent-2::after {
  background-color: var(--accent2);
}

.brutalist-box.accent-3::after {
  background-color: var(--accent3);
}

.brutalist-title {
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  transform: skew(-5deg);
}

@media (min-width: 768px) {
  .brutalist-title {
    font-size: 3rem;
  }
}

.brutalist-subtitle {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-transform: uppercase;
}

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

.brutalist-button {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--secondary);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.brutalist-button:hover {
  transform: translateY(-3px);
}

.brutalist-button::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  z-index: -1;
}

/* Asimetría balanceada */
.asymmetric-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.asymmetric-item {
  width: 90%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .asymmetric-layout {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .asymmetric-layout .asymmetric-item:nth-child(odd) {
    grid-column: span 4;
  }
  
  .asymmetric-layout .asymmetric-item:nth-child(even) {
    grid-column: span 2;
  }
  
  .asymmetric-layout .asymmetric-item.wide {
    grid-column: span 6;
  }
  
  .asymmetric-layout .asymmetric-item.medium {
    grid-column: span 3;
  }
}

/* Header */
.site-header {
  padding: 1rem;
  background-color: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

canvas {
  width: 100%;
}

.logo {
  width: 250px;
  height: 50px;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.primary-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary);
  transition: left 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.primary-nav.active {
  left: 0;
}

.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

@media (min-width: 768px) {
  .primary-nav {
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    padding: 0;
  }
  
  .close-menu {
    display: none;
  }
  
  .nav-links {
    flex-direction: row;
    gap: 2rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
}

/* Hero section */
.hero {
  height: 75vh;
  min-height: 400px;
  background-color: var(--accent1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  transform: skew(-3deg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Sections */
.section {
  padding: 3rem 1rem;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--secondary);
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.card {
  border: 3px solid var(--secondary);
  background-color: white;
  position: relative;
  transition: transform 0.3s ease;
}

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

.card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
}

.card:nth-child(3n+1)::after {
  background-color: var(--primary);
}

.card:nth-child(3n+2)::after {
  background-color: var(--accent1);
}

.card:nth-child(3n+3)::after {
  background-color: var(--accent2);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

/* Features */
.features {
  background-color: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: white;
  border: 3px solid var(--secondary);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.feature-text {
  font-size: 1rem;
}

/* Charts section */
.chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
  position: relative;
}

.chart-card {
  border: 3px solid var(--secondary);
  padding: 1.5rem;
  background-color: white;
  margin-bottom: 2rem;
}

.chart-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
  text-align: center;
}

/* Stats */
.stats {
  background-color: var(--primary);
  color: white;
  padding: 4rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Contact Form */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border: 3px solid var(--secondary);
  position: relative;
  background-color: white;
}

.contact-form-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background-color: var(--accent1);
  z-index: -1;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--secondary);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

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

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

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.contact-info p {
  margin-bottom: 0.75rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary);
  color: white;
  padding: 1rem;
  z-index: 1000;
  display: none;
}

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

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

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

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

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background-color: white;
  padding: 2rem;
  border: 3px solid var(--primary);
  color: var(--text-primary);
}

.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;
  color: var(--secondary);
}

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

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

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

.cookie-category-title {
  font-weight: 700;
}

.cookie-save-btn {
  margin-top: 1rem;
}

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

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

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

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

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

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

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Animated numbers */
.animated-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

.mt-0 {
  margin-top: 0;
}

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

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

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

.mb-0 {
  margin-bottom: 0;
}

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

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

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

/* Phone input style */
.iti {
  width: 100%;
}

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

.policy-header {
  margin-bottom: 2rem;
}

.policy-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.policy-date {
  color: var(--text-secondary);
  font-style: italic;
}

.policy-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.policy-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--secondary);
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul, 
.policy-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

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

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.thank-you-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.thank-you-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.thank-you-button {
  margin-top: 1rem;
}