/* ===============================
   VARIABLES GLOBALES
   =============================== */
:root {
  --primary-color: #E63946;
  --secondary-color: #1D3557;
  --tertiary-color: #457B9D;
  --accent-color: #F1FAEE;
  --dark-color: #000000;
  --light-color: #F1FAEE;
  --gold-color: #FFD700;
  
  --header-height: 80px;
  --footer-height: auto;
  --section-padding: 60px 0;
  
  --border-radius: 0px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s ease;
  --transition-slow: all 0.8s ease;
  
  --font-family: 'Nunito', sans-serif;
  --font-size-base: 16px;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ===============================
   RESET Y ESTILOS BASE
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--light-color);
  background-color: var(--dark-color);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

p {
  margin-bottom: 20px;
}

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

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

img {
  width: 100%;
  height: auto;
}

ul li, ol li {
  list-style-type: none;
}

button, .btn {
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition-fast);
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn, .btn-large {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover, .btn-large:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-flat {
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-fast);
}

.btn-flat:hover {
  color: var(--gold-color);
}

.brutal-btn {
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

/* ===============================
   COOKIES
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  padding: 15px 20px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--light-color);
}

.cookie-content p {
  margin-bottom: 15px;
  color: var(--light-color);
}

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

.cookie-buttons .btn {
  margin: 0 5px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  overflow-y: auto;
}

.cookie-modal-content {
  position: relative;
  background-color: var(--dark-color);
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  border: 2px solid var(--primary-color);
}

.close-cookie-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: var(--light-color);
  cursor: pointer;
}

.cookie-options {
  margin: 20px 0;
}

.cookie-option {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-option label {
  font-weight: var(--font-weight-semibold);
  color: var(--light-color);
  display: block;
  margin-bottom: 5px;
}

.cookie-option p {
  font-size: 0.9rem;
  color: var(--light-color);
  opacity: 0.8;
  margin-top: 5px;
}

.cookie-buttons-modal {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cookie-settings-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-fast);
}

.cookie-settings-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.cookie-settings-button i {
  font-size: 24px;
}

/* ===============================
   HEADER Y NAVEGACIÓN
   =============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  z-index: 100;
  border-bottom: 2px solid var(--primary-color);
  transition: var(--transition-fast);
}

.header-scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

nav {
  color: inherit; 
  background-color: inherit;
  width: inherit;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  transition: var(--transition-fast);
}

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

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--light-color);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary-color);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--light-color);
  transition: var(--transition-fast);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background-color: var(--dark-color);
}

.hero-text {
  padding: 50px 0;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--light-color);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--light-color);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--primary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--tertiary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
  }
  5% {
    clip: rect(12px, 9999px, 59px, 0);
  }
  10% {
    clip: rect(48px, 9999px, 29px, 0);
  }
  15.0% {
    clip: rect(42px, 9999px, 73px, 0);
  }
  20% {
    clip: rect(63px, 9999px, 27px, 0);
  }
  25% {
    clip: rect(34px, 9999px, 55px, 0);
  }
  30.0% {
    clip: rect(86px, 9999px, 73px, 0);
  }
  35% {
    clip: rect(20px, 9999px, 20px, 0);
  }
  40% {
    clip: rect(26px, 9999px, 60px, 0);
  }
  45% {
    clip: rect(25px, 9999px, 66px, 0);
  }
  50% {
    clip: rect(57px, 9999px, 98px, 0);
  }
  55.0% {
    clip: rect(5px, 9999px, 46px, 0);
  }
  60.0% {
    clip: rect(82px, 9999px, 31px, 0);
  }
  65% {
    clip: rect(54px, 9999px, 27px, 0);
  }
  70% {
    clip: rect(28px, 9999px, 99px, 0);
  }
  75% {
    clip: rect(45px, 9999px, 69px, 0);
  }
  80% {
    clip: rect(23px, 9999px, 85px, 0);
  }
  85.0% {
    clip: rect(54px, 9999px, 84px, 0);
  }
  90% {
    clip: rect(45px, 9999px, 47px, 0);
  }
  95% {
    clip: rect(37px, 9999px, 20px, 0);
  }
  100% {
    clip: rect(4px, 9999px, 91px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(65px, 9999px, 65px, 0);
  }
  5% {
    clip: rect(96px, 9999px, 61px, 0);
  }
  10% {
    clip: rect(61px, 9999px, 74px, 0);
  }
  15.0% {
    clip: rect(62px, 9999px, 37px, 0);
  }
  20% {
    clip: rect(27px, 9999px, 90px, 0);
  }
  25% {
    clip: rect(30px, 9999px, 93px, 0);
  }
  30.0% {
    clip: rect(56px, 9999px, 15px, 0);
  }
  35% {
    clip: rect(70px, 9999px, 1px, 0);
  }
  40% {
    clip: rect(29px, 9999px, 84px, 0);
  }
  45% {
    clip: rect(85px, 9999px, 40px, 0);
  }
  50% {
    clip: rect(87px, 9999px, 91px, 0);
  }
  55.0% {
    clip: rect(36px, 9999px, 79px, 0);
  }
  60.0% {
    clip: rect(22px, 9999px, 15px, 0);
  }
  65% {
    clip: rect(91px, 9999px, 57px, 0);
  }
  70% {
    clip: rect(2px, 9999px, 48px, 0);
  }
  75% {
    clip: rect(65px, 9999px, 4px, 0);
  }
  80% {
    clip: rect(51px, 9999px, 77px, 0);
  }
  85.0% {
    clip: rect(84px, 9999px, 34px, 0);
  }
  90% {
    clip: rect(67px, 9999px, 96px, 0);
  }
  95% {
    clip: rect(43px, 9999px, 50px, 0);
  }
  100% {
    clip: rect(5px, 9999px, 41px, 0);
  }
}

.brutalist-paragraph {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 500px;
  font-weight: var(--font-weight-semibold);
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0% 0%, 85% 0%, 100% 15%, 100% 100%, 15% 100%, 0% 85%);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 57, 70, 0.3);
  mix-blend-mode: multiply;
}

.diagonal-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark-color);
  clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0% 100%);
  z-index: 2;
}

.diagonal-divider.inverted {
  clip-path: polygon(0 0, 100% 50%, 100% 0, 0 0);
  top: 0;
}

/* ===============================
   SECCIONES GENERALES
   =============================== */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.brutalist-rectangle {
  position: absolute;
  width: 200px;
  height: 80%;
  background-color: var(--primary-color);
  opacity: 0.1;
  z-index: -1;
}

.brutalist-rectangle.left {
  left: 0;
  top: 10%;
}

.brutalist-rectangle.right {
  right: 0;
  top: 10%;
}

/* ===============================
   SECCIÓN DE CURSOS
   =============================== */
.courses-section {
  background-color: var(--dark-color);
  position: relative;
}

.course-card {
  background-color: rgba(29, 53, 87, 0.3);
  margin-bottom: 30px;
  position: relative;
  transition: var(--transition-medium);
  border: 1px solid var(--tertiary-color);
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.course-image {
  overflow: hidden;
  position: relative;
}

.course-image img {
  transition: var(--transition-medium);
  filter: grayscale(30%);
}

.course-card:hover .course-image img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.course-content {
  padding: 20px;
}

.course-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--light-color);
}

.course-features {
  list-style: none;
  margin-top: 15px;
}

.course-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.course-features i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* ===============================
   SECCIÓN DE VENTAJAS
   =============================== */
.advantages-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.advantage-card {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
  transition: var(--transition-medium);
  position: relative;
  z-index: 1;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-medium);
}

.advantage-card:hover::before {
  opacity: 0.1;
}

.advantage-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition-medium);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.2);
}

.advantage-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* ===============================
   SECCIÓN DE ESTADÍSTICAS
   =============================== */
.stats-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  position: relative;
}

.stat-block {
  text-align: center;
  padding: 20px;
  margin-bottom: 30px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  display: block;
  margin-bottom: 10px;
  color: var(--light-color);
}

.stat-block p {
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--light-color);
  margin-bottom: 0;
}

/* ===============================
   SECCIÓN DE TESTIMONIOS
   =============================== */
.testimonials-section {
  background-color: var(--dark-color);
  padding: 80px 0;
}

.testimonial-card {
  background-color: rgba(29, 53, 87, 0.3);
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  position: relative;
  transition: var(--transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-image {
  text-align: center;
  margin-bottom: 20px;
}

.testimonial-image img {
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary-color);
}

.testimonial-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.testimonial-role {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-text {
  position: relative;
  padding-left: 25px;
}

.testimonial-text::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -20px;
  left: 0;
  line-height: 1;
  opacity: 0.5;
}

/* ===============================
   SECCIÓN DE CONTACTO
   =============================== */
.contact-section {
  background-color: var(--dark-color);
  padding: 80px 0;
  position: relative;
}

.contact-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.disclaimer-box {
  background-color: rgba(29, 53, 87, 0.3);
  border-left: 4px solid var(--gold-color);
  padding: 20px;
  margin-bottom: 30px;
}

.disclaimer-box h4 {
  color: var(--gold-color);
  margin-bottom: 10px;
}

.contact-form {
  background-color: rgba(29, 53, 87, 0.3);
  padding: 30px;
  border: 1px solid var(--tertiary-color);
}

.input-field {
  margin-bottom: 20px;
}

.input-field input[type="text"],
.input-field input[type="email"],
.input-field input[type="tel"],
.input-field textarea,
.input-field select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--tertiary-color);
  color: var(--light-color);
  padding: 10px;
  width: 100%;
  height: 1.5rem;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.input-field label {
  color: var(--light-color);
}

.input-field .select-wrapper input.select-dropdown {
  color: var(--light-color);
}

.checkbox-field {
  margin-bottom: 20px;
}

.checkbox-field span {
  color: var(--light-color);
}

.submit-btn {
  width: 100%;
  padding: 12px;
}

.phone-field {
  position: relative;
}

.phone-label {
  position: absolute;
  top: -30px;
  left: 0;
}

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

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

/* ===============================
   FOOTER
   =============================== */
footer {
  background-color: var(--secondary-color);
  padding: 80px 0 30px;
  position: relative;
}

.footer-logo {
  margin-bottom: 20px;
}

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

.footer-description {
  margin-bottom: 30px;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links {
  list-style: none;
  margin-bottom: 30px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-color);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
  opacity: 1;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  margin-bottom: 30px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 30px;
}

.copyright {
  margin-bottom: 10px;
  opacity: 0.8;
}

.disclaimer, .regulatory {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 5px;
}

/* ===============================
   PÁGINA DE SOLUCIONES
   =============================== */
.solutions-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  background-color: var(--dark-color);
  background-image: url('../images/solutions-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.solutions-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

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

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.solutions-image img {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 0);
  transition: var(--transition-medium);
}

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

.solutions-content {
  padding: 30px 0;
}

.solutions-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.solutions-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.solution-items {
  margin-top: 30px;
}

.solution-item {
  display: flex;
  margin-bottom: 25px;
}

.solution-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.solution-item h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--light-color);
}

.methodology-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.methodology-intro {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.methodology-steps {
  position: relative;
}

.methodology-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 0;
}

.methodology-step {
  display: flex;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-right: 30px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.clients-section {
  padding: 60px 0;
  background-color: var(--dark-color);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.client-item {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.client-item:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-color);
}

/* ===============================
   PÁGINA DE HISTORIA
   =============================== */
.history-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  background-color: var(--dark-color);
  background-image: url('../images/history-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.history-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

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

.history-image img {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
  transition: var(--transition-medium);
}

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

.history-content {
  padding: 30px 0;
}

.history-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.history-year {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gold-color);
  margin-bottom: 20px;
}

.philosophy-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.philosophy-intro {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.philosophy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.philosophy-pillar {
  flex: 1 1 calc(50% - 30px);
  display: flex;
  margin-bottom: 30px;
}

.pillar-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.pillar-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.team-section {
  padding: 80px 0;
  background-color: var(--dark-color);
}

.team-card {
  background-color: rgba(29, 53, 87, 0.3);
  border: 1px solid var(--tertiary-color);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.team-image {
  overflow: hidden;
}

.team-image img {
  width: 100%;
  transition: var(--transition-medium);
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 15px;
}

.recognition-section {
  background-color: var(--dark-color);
  padding: 80px 0;
  position: relative;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-year {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background-color: rgba(29, 53, 87, 0.3);
  padding: 20px;
  border: 1px solid var(--tertiary-color);
  position: relative;
  margin-top: 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

/* ===============================
   PÁGINA DE CONTACTO
   =============================== */
.contact-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  background-color: var(--dark-color);
  background-image: url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

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

.contact-info-section {
  padding: 80px 0;
  background-color: var(--dark-color);
}

.contact-card {
  background-color: rgba(29, 53, 87, 0.3);
  border: 1px solid var(--tertiary-color);
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition-medium);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-hours {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
}

.contact-form-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.map-container h2,
.form-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--light-color);
}

.map-responsive {
  overflow: hidden;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  margin-bottom: 30px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.office-images h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.office-images img {
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.office-images img:hover {
  opacity: 0.8;
}

.faq-section {
  padding: 80px 0;
  background-color: var(--dark-color);
  position: relative;
}

.collapsible {
  border: none;
  box-shadow: none;
  margin: 0;
  background-color: transparent;
}

.collapsible-header {
  background-color: rgba(29, 53, 87, 0.3);
  color: var(--light-color);
  border: 1px solid var(--tertiary-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.collapsible-header:hover {
  background-color: rgba(69, 123, 157, 0.3);
}

.collapsible-header i {
  margin-right: 0;
  transition: var(--transition-fast);
}

.collapsible-header.active i {
  transform: rotate(180deg);
}

.collapsible-body {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--tertiary-color);
  border-top: none;
  padding: 20px;
}

.newsletter-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  position: relative;
}

.newsletter-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

.newsletter-container p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-color);
}

.newsletter-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
}

/* ===============================
   PÁGINAS LEGALES
   =============================== */
.legal-hero {
  height: 30vh;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  background-color: var(--secondary-color);
}

.legal-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.legal-updated {
  font-style: italic;
  opacity: 0.7;
}

.legal-content {
  padding: 60px 0;
  background-color: var(--dark-color);
}

.legal-document {
  background-color: rgba(29, 53, 87, 0.3);
  padding: 40px;
  border: 1px solid var(--tertiary-color);
}

.legal-document h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-document p, 
.legal-document ul, 
.legal-document ol {
  margin-bottom: 20px;
}

.legal-document ul, 
.legal-document ol {
  padding-left: 20px;
}

.legal-document li {
  margin-bottom: 10px;
}

.legal-document a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-document a:hover {
  color: var(--gold-color);
}

.cookie-table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
}

.cookie-table th, 
.cookie-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid var(--tertiary-color);
}

.cookie-table th {
  background-color: rgba(69, 123, 157, 0.3);
  font-weight: var(--font-weight-bold);
}

.cookie-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.2);
}

/* ===============================
   PÁGINA DE AGRADECIMIENTO
   =============================== */
.thanks-section {
  padding: 100px 0;
  background-color: var(--dark-color);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.thanks-content {
  text-align: center;
  background-color: rgba(29, 53, 87, 0.3);
  padding: 50px;
  border: 2px solid var(--primary-color);
}

.thanks-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.thanks-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thanks-message {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.next-steps h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.next-steps ul {
  list-style: none;
}

.next-steps li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.next-steps i {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.thanks-cta {
  margin-top: 30px;
}

.thanks-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.thanks-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.recommended-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.recommended-card {
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition-medium);
  height: 100%;
}

.recommended-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.recommended-image {
  overflow: hidden;
}

.recommended-image img {
  transition: var(--transition-medium);
}

.recommended-card:hover .recommended-image img {
  transform: scale(1.1);
}

.recommended-content {
  padding: 20px;
}

.recommended-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.recommended-content p {
  margin-bottom: 15px;
}

.social-proof-section {
  padding: 80px 0;
  background-color: var(--dark-color);
}

.return-home-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color);
}

/* ===============================
   MEDIA QUERIES
   =============================== */
@media (max-width: 992px) {
  :root {
    --section-padding: 50px 0;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .philosophy-pillar {
    flex: 1 1 100%;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-year {
    left: 30px;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
  
  .timeline-content {
    width: calc(100% - 90px);
    margin-left: 90px !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 40px 0;
  }
  
  .container {
    width: 90%;
  }
  
  .hamburger-menu {
    display: flex;
    z-index: 102;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 101;
    transition: var(--transition-medium);
    padding-top: var(--header-height);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav li {
    margin: 0 0 20px 0;
  }
  
  .hero-section {
    height: auto;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 50px;
  }
  
  .hero-text {
    text-align: center;
    padding: 30px 0;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .brutalist-paragraph {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .image-container {
    margin-top: 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-block {
    margin-bottom: 20px;
  }
  
  .contact-form {
    margin-top: 30px;
  }
  
  .reverse-on-mobile {
    flex-direction: column-reverse;
  }
  
  .solutions-content, .history-content {
    padding: 15px 0;
  }
  
  .solutions-image, .history-image {
    margin-bottom: 20px;
  }
  
  .methodology-step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .thanks-content {
    padding: 30px 20px;
  }
  
  .thanks-content h1 {
    font-size: 2rem;
  }
  
  .thanks-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .thanks-buttons .btn {
    width: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 60px;
    --section-padding: 30px 0;
  }
  
  .container {
    width: 95%;
  }
  
  .logo {
    height: 40px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .brutalist-paragraph {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .course-card, .testimonial-card, .contact-card, .team-card {
    margin-bottom: 20px;
  }
  
  .course-content h3, .testimonial-content h3, .advantage-card h3, .solutions-content h3 {
    font-size: 1.3rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .contact-form, .legal-document {
    padding: 20px 15px;
  }
  
  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
    padding: 15px;
  }
  
  .next-steps {
    padding: 20px;
  }
  
  .next-steps h2 {
    font-size: 1.5rem;
  }
  
  .cookie-banner {
    padding: 10px;
  }
  
  .cookie-content h3 {
    font-size: 1.3rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn {
    margin: 5px 0;
    width: 100%;
  }
  
  .cookie-modal-content {
    padding: 20px 15px;
    margin: 20% auto;
  }
}

.phone-field {
  position: relative;
  overflow: hidden;
}

.iti {
  width: 100% !important;
  max-width: 100% !important;
}

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

.iti__selected-flag {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--tertiary-color);
  border-right: none;
}

.iti__country-list {
  background-color: var(--dark-color);
  border: 1px solid var(--tertiary-color);
  color: var(--light-color);
  z-index: 1000;
}

.iti__country:hover {
  background-color: rgba(229, 57, 70, 0.2);
}

