:root {
  --primary: #FF6B35;
  --secondary: #004E89;
  --accent: #F7B801;
  --dark: #1A1A1A;
  --gray: #6B6B6B;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --border: 4px solid var(--dark);
  --shadow: 8px 8px 0 var(--dark);
  --shadow-hover: 12px 12px 0 var(--dark);
  --transition: all 0.3s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 400;
}

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

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border: var(--border);
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 6px 6px 0 var(--dark);
  position: relative;
  text-align: center;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--dark);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--dark);
}

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

.btn-outline {
  background: var(--white);
  color: var(--dark);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: var(--border);
  box-shadow: 0 4px 0 var(--dark);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo svg {
  width: 48px;
  height: 48px;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

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

.nav-links a.active {
  border-bottom-color: var(--secondary);
  color: var(--secondary);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 3px solid var(--dark);
  background: var(--light-gray);
}

.lang-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray);
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  color: var(--dark);
}

.lang-divider {
  color: var(--gray);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 4px;
  background: var(--dark);
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  padding-right: 2rem;
}

.hero-title {
  background: url('https://picsum.photos/seed/mexicoaccounting/1920/1080') center/cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: contrast(1.2) brightness(0.8);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-image-card {
  position: absolute;
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}

.hero-image-card:nth-child(1) {
  width: 400px;
  height: 300px;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-image-card:nth-child(2) {
  width: 350px;
  height: 280px;
  bottom: 0;
  right: 0;
  background: var(--accent);
  z-index: 1;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accent-block {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--primary);
  border: var(--border);
  top: 50%;
  right: 20%;
  transform: translateY(-50%) rotate(15deg);
  z-index: 3;
}

.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  line-height: 1.7;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  padding: 3rem;
  border: var(--border);
  background: var(--light-gray);
  box-shadow: var(--shadow);
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
  height: 500px;
}

.about-image-wrapper {
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 3px solid var(--dark);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--secondary);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--accent);
}

.feature-card:nth-child(4) .feature-icon {
  background: var(--dark);
}

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

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.course-card {
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.course-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.course-image {
  height: 250px;
  overflow: hidden;
  border-bottom: var(--border);
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.course-content {
  padding: 2rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.course-tag {
  padding: 0.5rem 1rem;
  border: 2px solid var(--dark);
  background: var(--accent);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
}

.course-card h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.course-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.course-link:hover {
  gap: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.team-member {
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.team-member:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.team-photo {
  height: 400px;
  overflow: hidden;
  border-bottom: var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.team-role {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--gray);
  line-height: 1.7;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 2rem;
  background: var(--light-gray);
  border: none;
  border-bottom: var(--border);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--accent);
}

.faq-question i {
  transition: var(--transition);
  font-size: 1.5rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 2rem;
  color: var(--gray);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 120px;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: var(--border);
  background: var(--light-gray);
  box-shadow: 4px 4px 0 var(--dark);
}

.contact-detail i {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 30px;
}

.contact-detail-text strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-detail-text span {
  color: var(--gray);
}

.map-container {
  margin-top: 2rem;
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 300px;
}

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

.contact-form {
  padding: 3rem;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 3px solid var(--dark);
  background: var(--light-gray);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--dark);
  transform: translate(-2px, -2px);
}

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

.iti {
  width: 100%;
}

.iti__flag-container {
  border-right: 3px solid var(--dark);
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  border: 3px solid var(--dark);
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.checkbox-group label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-error {
  color: var(--primary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--primary);
}

.thanks-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.thanks-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: var(--border);
  box-shadow: var(--shadow);
  font-size: 4rem;
  color: var(--white);
}

.thanks-content h1 {
  margin-bottom: 1.5rem;
}

.thanks-content p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  margin-bottom: 1rem;
}

.legal-date {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

footer {
  background: var(--dark);
  color: var(--white);
  border-top: 6px solid var(--primary);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--primary);
  min-width: 20px;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 2rem;
  border-top: 6px solid var(--primary);
  box-shadow: 0 -8px 0 var(--dark);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 0.875rem 2rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  border: 3px solid var(--white);
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.2);
}

.cookie-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--white);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-visual {
    height: 400px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }

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

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
    border-right: var(--border);
  }

  nav.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-visual {
    height: 300px;
  }

  .hero-image-card:nth-child(1) {
    width: 280px;
    height: 220px;
  }

  .hero-image-card:nth-child(2) {
    width: 250px;
    height: 200px;
  }

  .accent-block {
    width: 80px;
    height: 80px;
  }

  .section {
    padding: 4rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .about-text {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .feature-card,
  .course-content,
  .team-info {
    padding: 1.5rem;
  }

  .hero-visual {
    height: 250px;
  }

  .hero-image-card:nth-child(1) {
    width: 220px;
    height: 180px;
  }

  .hero-image-card:nth-child(2) {
    width: 200px;
    height: 160px;
  }
}