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

/* Variables globales */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #3498DB;
  --accent-color: #E67E22;
  --highlight-color: #9B59B6;
  --bg-primary: rgba(255, 255, 255, 0.7);
  --bg-secondary: rgba(236, 240, 241, 0.8);
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --transition-speed: 0.3s;
  --border-radius: 15px;
}

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

body {
  font-family: 'Figtree', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow-x: hidden;
  position: relative;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

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

p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--secondary-color);
  color: white;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-speed);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Header y navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo {
  height: 40px;
}

.nav-links {
  display: none;
}

.nav-links a {
  margin-left: 2rem;
  font-weight: 500;
}

.mobile-menu-btn {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* Estructura de contenido radial */
.radial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 3rem 0;
}

.radial-center {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.radial-item {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1.5rem;
  transition: transform var(--transition-speed);
}

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

.radial-item::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 2px;
  height: 15px;
  background: var(--accent-color);
  z-index: 1;
}

.radial-item:first-of-type::before {
  display: none;
}

/* Hero section */
.hero {
  position: relative;
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Secciones de contenido */
.section {
  padding: 4rem 0;
  position: relative;
}

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

.section-heading h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* Tarjetas de información */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-card {
  padding: 2rem;
  transition: transform var(--transition-speed);
}

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

.info-card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

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

/* Formulario de contacto */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

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

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

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-speed);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.cookie-settings {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  z-index: 1001;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  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: 1rem;
}

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

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

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

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

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

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

.cookie-category-necessary input:checked + .cookie-toggle-slider {
  background-color: var(--secondary-color);
}

.cookie-settings-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Estilos del menú flotante de cookie settings */
.cookie-settings-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-floating.active {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-floating i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Estilos para la página de agradecimiento */
.thanks-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.thanks-heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thanks-text {
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Estilos específicos para el contenido radial en páginas diferentes */
.radial-content-fundamentos {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(236,240,241,0.8) 100%);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
}

.principle-card {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
}

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

.principle-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.principle-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
}

/* Timeline para la página de fundamentos */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  background-color: inherit;
  padding: 1rem 2rem 1rem 3rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid var(--accent-color);
  left: 0;
  top: 20px;
  z-index: 1;
}

/* Estilos específicos para la página de contacto */
.contact-info {
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
  min-width: 30px;
}

.contact-info-text h4 {
  margin-bottom: 0.5rem;
}

.contact-map {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

/* Media queries */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline::after {
    left: 50%;
  }
  
  .timeline-item {
    width: 50%;
    padding: 1rem 2rem;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
  }
  
  .timeline-item:nth-child(odd)::before {
    right: -10px;
    left: auto;
  }
  
  .timeline-item:nth-child(even)::before {
    left: -10px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .section-heading h2 {
    font-size: 2.8rem;
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .radial-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
  }
  
  .radial-center {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .radial-item {
    margin-bottom: 0;
  }
  
  .radial-item:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  
  .radial-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
  
  .radial-item:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }
  
  .radial-item:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }
  
  .radial-item:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
  }
  
  .radial-item::before {
    display: none;
  }
  
  .radial-item::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
  }
  
  .radial-item:nth-child(2)::after,
  .radial-item:nth-child(3)::after {
    top: 50%;
    height: 2px;
    width: 50px;
  }
  
  .radial-item:nth-child(4)::after,
  .radial-item:nth-child(5)::after,
  .radial-item:nth-child(6)::after {
    bottom: 100%;
    width: 2px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .radial-item:nth-child(2)::after {
    right: -50px;
  }
  
  .radial-item:nth-child(3)::after {
    left: -50px;
  }
}

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

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

.fade-in-delay-1 {
  animation: fadeIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 0.6s ease 0.6s forwards;
  opacity: 0;
}