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

/* Variables */
:root {
  --hrd-bg-primary: #121212;
  --hrd-bg-secondary: #1E1E1E;
  --hrd-accent-primary: #6C63FF;
  --hrd-accent-secondary: #E94560;
  --hrd-text-primary: #FFFFFF;
  --hrd-text-secondary: #B0B0B0;
  --hrd-transition: all 0.3s ease;
  --hrd-border-radius: 8px;
  --hrd-spacing-xs: 0.5rem;
  --hrd-spacing-sm: 1rem;
  --hrd-spacing-md: 2rem;
  --hrd-spacing-lg: 3rem;
  --hrd-spacing-xl: 5rem;
}

/* Reset y Configuración Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: var(--hrd-accent-primary);
  text-decoration: none;
  transition: var(--hrd-transition);
}

a:hover, a:focus {
  color: var(--hrd-accent-secondary);
  text-decoration: underline;
}

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

.iti {
  width: 100%;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--hrd-spacing-sm);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--hrd-spacing-md);
}

/* Layout */
.hrd-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--hrd-spacing-sm);
}

.hrd-section {
  padding: var(--hrd-spacing-lg) 0;
}

.hrd-grid {
  display: grid;
  gap: var(--hrd-spacing-md);
}

.hrd-flex {
  display: flex;
  gap: var(--hrd-spacing-md);
}

/* Header y Navegación */
.hrd-header {
  background-color: var(--hrd-bg-secondary);
  padding: var(--hrd-spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.hrd-logo {
  display: flex;
  align-items: center;
  gap: var(--hrd-spacing-sm);
}

.hrd-logo img {
  height: 50px;
}

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

.hrd-nav-menu {
  display: flex;
  gap: var(--hrd-spacing-md);
  list-style: none;
}

.hrd-nav-link {
  color: var(--hrd-text-primary);
  font-weight: 500;
  padding: var(--hrd-spacing-xs) var(--hrd-spacing-sm);
  border-radius: var(--hrd-border-radius);
  transition: var(--hrd-transition);
}

.hrd-nav-link:hover, 
.hrd-nav-link:focus,
.hrd-nav-link.active {
  background-color: var(--hrd-accent-primary);
  color: white;
  text-decoration: none;
}

/* Botones */
.hrd-button {
  display: inline-block;
  background-color: var(--hrd-accent-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--hrd-border-radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--hrd-transition);
  text-align: center;
}

.hrd-button:hover, .hrd-button:focus {
  background-color: var(--hrd-accent-secondary);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

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

.hrd-button-outline:hover, .hrd-button-outline:focus {
  background-color: var(--hrd-accent-primary);
  color: white;
}

/* Tarjetas */
.hrd-card {
  background-color: var(--hrd-bg-secondary);
  border-radius: var(--hrd-border-radius);
  overflow: hidden;
  transition: var(--hrd-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.hrd-card-content {
  padding: var(--hrd-spacing-md);
}

.hrd-card-title {
  margin-bottom: var(--hrd-spacing-xs);
}

/* Hero Section */
.hrd-spotlight {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.9), rgba(30, 30, 30, 0.9));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hrd-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      circle at 20% 30%, 
      rgba(108, 99, 255, 0.15), 
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%, 
      rgba(233, 69, 96, 0.15), 
      transparent 40%
    );
  z-index: -1;
}

.hrd-spotlight-content {
  max-width: 700px;
  z-index: 1;
}

.hrd-spotlight-title {
  font-size: 3rem;
  margin-bottom: var(--hrd-spacing-md);
  background: linear-gradient(135deg, var(--hrd-accent-primary), var(--hrd-accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hrd-spotlight-text {
  font-size: 1.25rem;
  margin-bottom: var(--hrd-spacing-md);
  color: var(--hrd-text-secondary);
}

.hrd-spotlight-actions {
  display: flex;
  gap: var(--hrd-spacing-sm);
}

/* Características */
.hrd-features {
  padding: var(--hrd-spacing-xl) 0;
}

.hrd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--hrd-spacing-lg);
}

.hrd-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hrd-feature-icon {
  background-color: var(--hrd-bg-secondary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--hrd-spacing-sm);
  color: var(--hrd-accent-primary);
  font-size: 1.5rem;
}

.hrd-feature-title {
  margin-bottom: var(--hrd-spacing-xs);
}

/* Testimonios */
.hrd-testimonials {
  background-color: var(--hrd-bg-secondary);
  padding: var(--hrd-spacing-xl) 0;
}

.hrd-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--hrd-spacing-lg);
}

.hrd-testimonial {
  background-color: var(--hrd-bg-primary);
  padding: var(--hrd-spacing-md);
  border-radius: var(--hrd-border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hrd-testimonial-text {
  font-style: italic;
  margin-bottom: var(--hrd-spacing-md);
}

.hrd-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--hrd-spacing-sm);
}

.hrd-testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.hrd-testimonial-info h4 {
  margin-bottom: 0;
}

.hrd-testimonial-position {
  color: var(--hrd-text-secondary);
  font-size: 0.875rem;
}

/* Formularios */
.hrd-form-section {
  padding: var(--hrd-spacing-xl) 0;
  background-color: var(--hrd-bg-primary);
}

.hrd-form {
  background-color: var(--hrd-bg-secondary);
  padding: var(--hrd-spacing-lg);
  border-radius: var(--hrd-border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hrd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--hrd-spacing-md);
}

.hrd-input-group {
  margin-bottom: var(--hrd-spacing-md);
}

.hrd-label {
  display: block;
  margin-bottom: var(--hrd-spacing-xs);
  font-weight: 500;
}

.hrd-input,
.hrd-textarea,
.hrd-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hrd-border-radius);
  background-color: var(--hrd-bg-primary);
  color: var(--hrd-text-primary);
  font-family: 'Figtree', sans-serif;
}

.hrd-input:focus,
.hrd-textarea:focus,
.hrd-select:focus {
  outline: none;
  border-color: var(--hrd-accent-primary);
}

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

.hrd-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--hrd-spacing-xs);
  margin-bottom: var(--hrd-spacing-md);
}

.hrd-checkbox {
  margin-top: 5px;
}

/* Footer */
.hrd-footer {
  background-color: var(--hrd-bg-secondary);
  padding: var(--hrd-spacing-xl) 0 var(--hrd-spacing-md);
}

.hrd-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--hrd-spacing-lg);
  margin-bottom: var(--hrd-spacing-lg);
}

.hrd-footer-column h3 {
  margin-bottom: var(--hrd-spacing-md);
}

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

.hrd-footer-link {
  margin-bottom: var(--hrd-spacing-xs);
}

.hrd-footer-contact {
  display: flex;
  align-items: center;
  gap: var(--hrd-spacing-sm);
  margin-bottom: var(--hrd-spacing-xs);
  color: var(--hrd-text-secondary);
}

.hrd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--hrd-spacing-md);
  text-align: center;
  color: var(--hrd-text-secondary);
}

/* Utilidades */
.hrd-text-center {
  text-align: center;
}

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

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

.hrd-mt-sm { margin-top: var(--hrd-spacing-sm); }
.hrd-mt-md { margin-top: var(--hrd-spacing-md); }
.hrd-mt-lg { margin-top: var(--hrd-spacing-lg); }
.hrd-mb-sm { margin-bottom: var(--hrd-spacing-sm); }
.hrd-mb-md { margin-bottom: var(--hrd-spacing-md); }
.hrd-mb-lg { margin-bottom: var(--hrd-spacing-lg); }

/* Estilos específicos para el mapa */
.hrd-map {
  width: 100%;
  height: 400px;
  border-radius: var(--hrd-border-radius);
  overflow: hidden;
}

/* Estilos para la política de cookies */
.hrd-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--hrd-bg-secondary);
  padding: var(--hrd-spacing-md);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.hrd-cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hrd-spacing-md);
}

.hrd-cookie-text {
  flex: 1;
  min-width: 300px;
  margin-bottom: 0;
}

.hrd-cookie-actions {
  display: flex;
  gap: var(--hrd-spacing-sm);
  flex-direction: column;
}

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

.hrd-cookie-modal {
  background-color: var(--hrd-bg-secondary);
  border-radius: var(--hrd-border-radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--hrd-spacing-lg);
}

.hrd-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--hrd-spacing-md);
}

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

.hrd-cookie-category {
  margin-bottom: var(--hrd-spacing-md);
  padding-bottom: var(--hrd-spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hrd-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--hrd-spacing-xs);
}

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

.iti__flag-container {
  z-index: 10;
}

.hrd-nav-close {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hrd-nav-toggle {
    display: block;
  }
  
  .hrd-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--hrd-bg-secondary);
    flex-direction: column;
    padding: var(--hrd-spacing-lg);
    transition: var(--hrd-transition);
    z-index: 1000;
  }
  
  .hrd-nav-menu.active {
    left: 0;
  }
  
  .hrd-nav-close {
    position: absolute;
    top: var(--hrd-spacing-sm);
    right: var(--hrd-spacing-sm);
    background: transparent;
    border: none;
    color: var(--hrd-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .hrd-spotlight-title {
    font-size: 2.25rem;
  }
  
  .hrd-spotlight-text {
    font-size: 1.1rem;
  }
  
  .hrd-spotlight-actions {
    flex-direction: column;
  }
  
  .hrd-cookie-content {
    flex-direction: column;
  }
  
  .hrd-cookie-actions {
    width: 100%;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hrd-fade-in {
  animation: fadeIn 1s ease-in-out;
}