@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --color-primary: #e87722;          /* Brand Orange */
  --color-primary-hover: #d66512;
  --color-primary-light: rgba(232, 119, 34, 0.1);
  --color-dark: #1c1c1c;             /* Brand Dark Charcoal */
  --color-dark-light: #2d2d2d;       /* Card/Footer Dark */
  --color-text-dark: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-border: #e5e7eb;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--color-bg-light);
}

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

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-dark);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #3b5998; /* Facebook color */
  color: var(--color-bg-white);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(59, 89, 152, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-dark);
  transition: var(--transition);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 119, 34, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-bg-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-bg-white);
  color: var(--color-bg-white);
}

.btn-outline-white:hover {
  background-color: var(--color-bg-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ==========================================
   HERO / BANNER SECTIONS
   ========================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.92) 0%, rgba(45, 45, 45, 0.88) 100%), 
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-bg-white);
  padding: 10rem 0 7rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-bg-white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Page Banner */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(45, 45, 45, 0.8) 100%), 
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--color-bg-white);
  padding: 8rem 0 5rem 0;
  text-align: center;
}

.page-banner.servicios-banner {
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.88) 0%, rgba(45, 45, 45, 0.8) 100%), 
              url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.page-banner.cursos-banner {
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.88) 0%, rgba(45, 45, 45, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.page-banner-title {
  font-size: 2.75rem;
  color: var(--color-bg-white);
  margin-bottom: 1rem;
}

.page-banner-subtitle {
  font-size: 1.15rem;
  color: var(--color-primary);
  max-width: 800px;
  margin: 0 auto;
}

.page-banner-desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 800px;
  margin: 1rem auto 0 auto;
}

/* ==========================================
   CARDS / GRID SYSTEMS
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.service-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-link:hover {
  color: var(--color-primary-hover);
  transform: translateX(3px);
}

/* ==========================================
   QUIENES SOMOS (US) DETAILS
   ========================================== */
.us-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.us-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.us-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-hover);
  position: relative;
}

.us-image {
  width: 100%;
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.value-card {
  padding: 2.5rem 2rem;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--color-primary-light);
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.value-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.privacy-notice {
  text-align: center;
  font-size: 1rem;
  margin-top: 3rem;
  background-color: var(--color-primary-light);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.privacy-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.privacy-link:hover {
  color: var(--color-primary-hover);
}

/* Client Logo Grid */
.clients-section {
  padding: 4rem 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.client-logo-wrapper {
  background-color: var(--color-bg-white);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  transition: var(--transition);
}

.client-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow);
}

.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: var(--transition);
}

.client-logo-wrapper:hover .client-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================
   CURSES LIST SECTION
   ========================================== */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.course-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--box-shadow);
  align-items: center;
  transition: var(--transition);
}

.course-row:hover {
  box-shadow: var(--box-shadow-hover);
}

.course-info {
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.course-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-light);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
}

.detail-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--color-dark);
  font-weight: 500;
}

.course-image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 250px;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   CONTACT SECTION & FORM
   ========================================== */
.contact-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.contact-info-block p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.7;
}

.contact-form-container {
  background-color: var(--color-dark-light);
  padding: 3.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  color: var(--color-bg-white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: #cccccc;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  color: var(--color-bg-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(232, 119, 34, 0.25);
}

.form-input::placeholder {
  color: #888888;
}

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

.form-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.contact-card-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.orange-contact-box {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--box-shadow);
}

.orange-contact-box::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 40px;
  border-width: 15px 15px 0 15px;
  border-style: solid;
  border-color: var(--color-primary) transparent transparent transparent;
}

.orange-contact-box h3 {
  color: var(--color-bg-white);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.orange-contact-detail {
  margin-bottom: 1.25rem;
}

.orange-contact-detail:last-child {
  margin-bottom: 0;
}

.orange-contact-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.85;
}

.orange-contact-value {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Form alert notifications */
.form-alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: block;
}

.form-alert.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--color-dark);
  color: #a0aec0;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 5px solid var(--color-primary);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-link {
  color: #cbd5e0;
}

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

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  color: #718096;
}

/* ==========================================
   MODAL WINDOW (For Service Details)
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-dark);
}

.modal-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.modal-body {
  font-size: 1rem;
  color: #4a5568;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .us-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .course-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .course-image-wrapper {
    height: 200px;
    order: -1; /* Image first on mobile */
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* Burger Menu Active Animations */
  .nav-toggle.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .contact-form-container {
    padding: 2rem 1.5rem;
  }
  .course-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--color-bg-white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: #128c7e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-bg-white);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

