:root {
  --color-bg-main: #ffffff;
  --color-bg-section: #F7F9FB;
  --color-text-main: #222831;
  --color-text-secondary: #314753;
  --color-border: #E5E9F2;
  --color-primary: #0f2c41;
  --color-primary-hover: #185278;
  --color-success: #00bf63;
}

/* TIPOGRAFIAS */
@font-face {
  font-family: 'SaolDisplay-Regular';
  src: url('fonts/SaolDisplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TruenoRg';
  src: url('fonts/TruenoRg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* TIPOGRAFIA BASE */
h1, h2, h3, h4, h5, h6, .section-hero h1, .section-hero h2, .section-testimonios h2 {
  font-family: 'SaolDisplay-Regular', serif !important;
  font-weight: bold;
  letter-spacing: -0.75px;
  color: var(--color-primary);
}

body, p, input, textarea, select, button, .section-formulario, .section-nosotros, .section-servicios, .section-originalidad, .section-testimonios, footer, .nosotros-list li, .servicio-body p, .testimonio-text, .originalidad-content p, .privacidad, .nav-links a, .btn-main, .servicio-btn, .btn-principal {
  font-family: 'TruenoRg', Arial, sans-serif !important;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text-main);
}

/* GENERAL */
body {
  background: var(--color-bg-main);
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  margin: 0;
  padding: 0;
}

body.fade-in {
  opacity: 0;
  animation: appear 0.3s forwards;
}

body.fade-out, body.fade-out-page {
  opacity: 0.4;
  pointer-events: none;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SECCIONES */
section, .section-hero, .section-servicios, .section-nosotros, .section-originalidad, .section-testimonios, .section-formulario {
  background: var(--color-bg-section);
}

hr, .divider {
  border-color: var(--color-border);
  opacity: 0.5;
}

/* Highlight */
.highlight-section {
  animation: highlightFade 1.07s;
  box-shadow: 0 0 0 4px #01bfc177;
  border-radius: 8px;
}

@keyframes highlightFade {
  0% { box-shadow: 0 0 0 10px #01bfc1cc; }
  60% { box-shadow: 0 0 0 4px #01bfc177; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ====== HEADER & NAVBAR ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg-main);
  color: var(--color-text-main);
  box-shadow: 0 2px 10px rgba(1, 20, 37, 0.12);
  transition: all 0.4s ease;
}

header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 2px 16px rgba(1, 20, 37, 0.18);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 36px;
  height: 56px;
  min-width: 320px;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'SaolDisplay-Regular';
  font-weight: 700;
  font-size: 1.2em;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--color-text-main);
  font-size: 1.04em;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s, border-bottom 0.2s;
}

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

/* Language Buttons */
.lang-buttons {
  display: flex;
  gap: 8px;
}

.lang-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8em;
  transition: transform 0.3s ease;
}

.lang-buttons button:hover {
  transform: scale(1.2);
}

.lang-buttons .active {
  transform: scale(1.25);
}

.flag-icon {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}

.lang-buttons button:hover .flag-icon {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--color-primary);
}

/* ====== HERO SECTION ====== */
.section-hero {
  text-align: center;
  padding: 140px 18px 40px;
  background: linear-gradient(130deg, var(--color-bg-section) 77%, #e9fafd 100%);
  margin-top: 56px;
}

.section-hero .sub {
  font-size: 1.22em;
  color: var(--color-text-secondary);
  margin-bottom: 22px;
}

.btn-main {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 14px 44px;
  font-size: 1.14em;
  margin-bottom: 22px;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

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

/* ====== SERVICIOS SECTION ====== */
.section-servicios {
  background: var(--color-bg-section);
  padding: 50px 16px 35px;
  text-align: center;
}

.section-servicios h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 38px;
}

.servicios-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

.servicio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 13px #01142518;
  width: calc(50% - 8px);
  min-width: 150px;
  max-width: 240px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.servicio-card.visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 4px 18px rgba(1, 20, 37, 0.14);
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(1, 20, 37, 0.22);
}

.servicio-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.servicio-body {
  padding: 12px 9px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicio-body h4 {
  color: #00027a;
  font-size: 0.95em;
  margin: 0 0 4px;
  line-height: 1.3;
}

.servicio-body p {
  font-size: 0.88em;
  color: #333c;
  margin-bottom: 10px;
  flex-grow: 1;
}

.servicio-btn {
  background: #011425;
  color: #fff;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.90em;
  margin-top: auto;
  text-decoration: none;
  display: block;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.servicio-btn:hover {
  background: #00027a;
}

/* ====== NOSOTROS SECTION ====== */
.section-nosotros {
  background: var(--color-bg-section);
  padding: 50px 16px;
}

.nosotros-columns {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px #0114251b;
  padding: 30px 20px;
  flex-direction: column;
}

.nosotros-img img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  box-shadow: 0 2px 6px #01142518;
  object-fit: cover;
}

.nosotros-info {
  flex: 1;
  width: 100%;
}

.nosotros-list {
  padding-left: 0;
  margin-top: 0;
}

.nosotros-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1em;
  color: #222c;
}

/* ====== ORIGINALIDAD SECTION ====== */
.section-originalidad {
  background: #fff;
  padding: 50px 16px;
  text-align: center;
}

.originalidad-content {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto;
  background: #f7f8fa;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,20,40,0.06);
  padding: 24px 16px;
}

.originalidad-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 14px;
  background: #eefaff;
  box-shadow: 0 0 16px rgba(12, 64, 164, 0.16);
}

.section-originalidad h2 {
  font-size: 1.4em;
  color: #011425;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-originalidad p {
  font-size: 0.95em;
  color: #222c;
  line-height: 1.6em;
}

.badge {
  display: inline-block;
  background: #e9f5ff;
  color: #2178e7;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.9em;
  margin-top: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(80, 110, 255, 0.08);
}

/* ====== TESTIMONIOS SECTION ====== */
.section-testimonios {
  background: linear-gradient(135deg, #e9fafd 0%, #fef7f4 90%);
  text-align: center;
  padding: 50px 16px;
}

.section-testimonios h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #011425;
}

.section-testimonios .sub-info {
  color: #42505f;
  font-size: 0.95em;
  margin-bottom: 30px;
}

.testimonios-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
}

.testimonio-card {
  flex: 1 1 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(1, 20, 37, 0.12);
  padding: 20px 16px;
  transition: all 0.3s ease;
  min-width: 280px;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(1, 20, 37, 0.2);
}

.testimonio-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.testimonio-text {
  font-style: italic;
  color: #333c;
  font-size: 0.92em;
  margin-bottom: 8px;
  line-height: 1.5;
}

.testimonio-card h4 {
  color: #0101c1a9;
  font-weight: 700;
  margin: 0;
  font-size: 0.95em;
}

/* ====== FORMULARIO SECTION ====== */
.section-formulario {
  background: var(--color-bg-section);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 16px;
}

.form-container {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  box-shadow: 0 1px 12px rgba(34,40,49,0.07);
  padding: 24px 16px;
  max-width: 100%;
  width: 100%;
}

.form-container h2 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
  font-family: 'SaolDisplay-Regular', serif !important;
  font-size: 1.4em;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.form-row > div {
  flex: 1 1 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.form-container label {
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-size: 0.95em;
  font-weight: 500;
}

.form-container input, .form-container textarea, .form-container select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-section);
  padding: 10px 8px;
  color: var(--color-text-main);
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: 0.95em;
  font-family: 'TruenoRg', Arial, sans-serif !important;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

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

.form-container textarea {
  min-height: 80px;
  resize: vertical;
}

.btn-principal {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 0;
  font-size: 1em;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}

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

.privacidad {
  color: var(--color-text-secondary);
  font-size: 0.85em;
  margin-top: 12px;
  text-align: center;
}

.error-msg {
  color: #e53935;
  font-size: 0.80em;
  margin-top: 2px;
  min-height: 16px;
}

/* ====== FOOTER ====== */
footer {
  background: #011425;
  color: #fff;
  text-align: center;
  padding: 24px 16px;
  margin-top: 40px;
  font-size: 0.75em;
  box-shadow: 0 -2px 10px rgb(242, 242, 242);
}

footer p {
  margin: 4px 0;
  line-height: 1.4;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

footer a:hover {
  border-bottom: 2px solid #6a62ff;
}

/* ====== CARRUSEL 3D ====== */
#carrusel3d {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
  margin: 24px 0 18px;
  overflow: visible;
  height: 200px;
}

.contenedor-carrusel3d {
  position: relative;
  width: 240px;
  height: 160px;
  transform-style: preserve-3d;
  animation: girar 18s infinite linear;
}

.contenedor-carrusel3d img {
  position: absolute;
  width: 160px;
  height: 110px;
  left: 40px;
  top: 25px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.contenedor-carrusel3d img:nth-child(1) { transform: rotateY(0deg) translateZ(260px); }
.contenedor-carrusel3d img:nth-child(2) { transform: rotateY(60deg) translateZ(260px); }
.contenedor-carrusel3d img:nth-child(3) { transform: rotateY(120deg) translateZ(260px); }
.contenedor-carrusel3d img:nth-child(4) { transform: rotateY(180deg) translateZ(260px); }
.contenedor-carrusel3d img:nth-child(5) { transform: rotateY(240deg) translateZ(260px); }
.contenedor-carrusel3d img:nth-child(6) { transform: rotateY(300deg) translateZ(260px); }

@keyframes girar {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ====== PROCESO 3D (.section-funciona) ====== */
.section-funciona.futuristic-3d h2 {
  font-size: 1.6em;
  margin-bottom: 40px;
  color: #1a0049;
  letter-spacing: 1.3px;
  text-shadow: 0 2px 16px #c1e5fa;
  text-align: center;
}

.card3d-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  padding: 0 12px;
}

.card3d {
  perspective: 1100px;
  width: 100%;
  max-width: 200px;
  height: 240px;
}

.card3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.23,1.07,.32,1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card3d:hover .card3d-inner {
  transform: rotateY(180deg);
}

.card3d-front, .card3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.card3d-back {
  transform: rotateY(180deg);
}

.card3d-back p {
  line-height: 1.4em;
  color: #222;
  font-size: 0.92em;
}

.icon-card.neon {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #11d9fa;
  text-shadow: 0 0 28px #11e9fa88, 0 0 8px #6a00faf6;
  animation: pulseNeon 2.1s infinite alternate;
}

.icon-tesis {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 8px #11d9fa) drop-shadow(0 0 16px #6a00fa);
  animation: pulseNeon 2s infinite alternate;
}

@keyframes pulseNeon {
  from { text-shadow: 0 0 18px #11e9fa, 0 0 6px #6a00fa; }
  to { text-shadow: 0 0 38px #11e9faee, 0 0 15px #b967fa; }
}

.card3d h4 {
  color: #20125b;
  font-size: 0.95em;
  font-weight: 700;
  margin: 7px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ====== LAZY LOAD ====== */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  min-height: 60px;
  display: block;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

.flag-icon {
  width: 28px !important;
  height: 20px !important;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  object-fit: cover;
  transition: all 0.25s ease;
}

/* ====== MENTOR CHAT ====== */
/* BOTÓN FLOTANTE MENTORIA */
#mentoriaBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  display: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
#mentoriaBtn:hover { background: #128C7E; transform: scale(1.05); }

/* CHAT FLOTANTE */
#chatMentoria {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 998;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
}
.mentor-header {
  background: #075E54;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
#mentorChatBody {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #ECE5DD;
}
.mentor-msg { margin: 8px 0; padding: 8px 12px; border-radius: 12px; max-width: 80%; }
.mentor-msg-user { background: #DCF8C6; align-self: flex-end; margin-left: auto; }
.mentor-msg-ai { background: white; align-self: flex-start; }
.mentor-input-row {
  display: flex;
  padding: 12px;
  background: white;
  border-top: 1px solid #ddd;
}
#mentorUserInput {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}
#sendMentoria {
  background: none;
  border: none;
  margin-left: 8px;
  cursor: pointer;
}

/* ======================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ====================================================================== */

/* ===== MOBILE PEQUEÑO (320px - 374px) ===== */
@media (max-width: 374px) {
  .navbar {
    padding: 8px 12px;
  }
  
  .nav-logo {
    font-size: 0.95em;
  }
  
  .nav-logo img {
    height: 28px;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .flag-icon {
    width: 20px;
    height: 14px;
  }
  
  
  .nav-links a {
    font-size: 0.85em;
  }
  
  h1, .section-hero h1 {
    font-size: 1.2em;
  }
  
  h2 {
    font-size: 1.1em;
  }
  
  .section-hero {
    padding: 90px 12px 30px;
  }
  
  .section-servicios, .section-nosotros, .section-originalidad, .section-testimonios, .section-formulario {
    padding: 35px 12px;
  }
  
  .servicio-card {
    width: 100%;
    max-width: 160px;
  }
  
  #mentoriaBtn {
    bottom: 16px;
    right: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  #chatMentoria {
    width: 280px;
    bottom: 60px;
    right: 12px;
  }
}

/* ===== MOBILE (375px - 479px) ===== */
@media (max-width: 479px) {
  .navbar {
    padding: 8px 16px;
    height: auto;
  }
  
    .nav-links {
flex-direction: row;
    width: 100%;
    gap: 8px;
    padding-top: 0px;
    margin-top: 0px;
  }
    
  .nav-links {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto;
  }
  
  .nav-logo img {
    height: 32px;
  }

  .flag-icon {
    width: 24px;
    height: 17px;
  }
  
  .nav-links li {
    width: auto !important;
    flex-shrink: 0;
  }
  
  .nav-links a {
    font-size: 0.75em !important;
    padding: 4px 2px !important;
    white-space: nowrap;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 10px 0;
    text-align: center;
  }
  
  .lang-buttons {
    width: auto;
    justify-content: center;
    margin-top: 0px;
  }
  
  /* Mejorar tarjetas 3D en mobile */
  .card3d-grid {
    gap: 12px;
    padding: 0 8px;
  }
  
  .card3d {
    max-width: 150px;
    height: 180px;
  }
  
  .card3d-front, .card3d-back {
    padding: 15px;
  }
  
  .icon-card.neon {
    font-size: 1.4em;
  }
  
  .nav-logo {
    font-size: 1em;
  }
  
  .nav-logo img {
    height: 30px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    padding-top: 8px;
  }
  
  .nav-links a {
    font-size: 0.9em;
  }
  
  .lang-buttons {
    margin-top: 8px;
    width: 100%;
  }
  
  h1, .section-hero h1 {
    font-size: 1.3em;
  }
  
  h2, .section-hero h2, .section-testimonios h2 {
    font-size: 1.2em;
  }
  
  h3, h4 {
    font-size: 0.95em;
  }
  
  .section-hero {
    padding: 100px 14px 35px;
    margin-top: 56px;
  }
  
  .section-hero .sub {
    font-size: 0.95em;
  }
  
  .section-servicios {
    padding: 40px 14px 30px;
  }
  
  .servicios-row {
    gap: 12px;
    padding: 0 8px;
  }
  
  .servicio-card {
    width: calc(50% - 6px);
    max-width: none;
    min-width: 140px;
  }
  
  .servicio-body {
    padding: 10px 8px;
  }
  
  .servicio-body h4 {
    font-size: 0.85em;
  }
  
  .servicio-body p {
    font-size: 0.8em;
  }
  
  .servicio-btn {
    padding: 7px 12px;
    font-size: 0.8em;
  }
  
  .section-nosotros {
    padding: 40px 14px;
  }
  
  .nosotros-columns {
    padding: 24px 16px;
    gap: 16px;
  }
  
  .nosotros-img img {
    max-width: 100%;
    width: 200px;
  }
  
  .nosotros-list li {
    font-size: 0.9em;
  }
  
  .section-originalidad {
    padding: 40px 14px;
  }
  
  .originalidad-content {
    padding: 20px 14px;
    gap: 12px;
  }
  
  .originalidad-icon {
    width: 70px;
    height: 70px;
  }
  
  .section-originalidad h2 {
    font-size: 1.2em;
  }
  
  .section-originalidad p {
    font-size: 0.9em;
  }
  
  .badge {
    font-size: 0.8em;
    padding: 6px 12px;
  }
  
  .section-testimonios {
    padding: 40px 14px;
  }
  
  .section-testimonios h2 {
    font-size: 1.2em;
  }
  
  .section-testimonios .sub-info {
    font-size: 0.85em;
  }
  
  .testimonios-row {
    gap: 14px;
  }
  
  .testimonio-card {
    min-width: auto;
    width: 100%;
    padding: 16px 14px;
  }
  
  .testimonio-card img {
    width: 50px;
    height: 50px;
  }
  
  .testimonio-text {
    font-size: 0.85em;
  }
  
  .testimonio-card h4 {
    font-size: 0.85em;
  }
  
  .section-formulario {
    padding: 40px 14px;
  }
  
  .form-container {
    padding: 20px 14px;
  }
  
  .form-container h2 {
    font-size: 1.2em;
  }
  
  .form-row > div {
    min-width: 100%;
  }
  
  .form-container label {
    font-size: 0.9em;
  }
  
  .form-container input, .form-container textarea, .form-container select {
    padding: 8px 6px;
    font-size: 0.9em;
  }
  
  .btn-principal {
    padding: 10px 0;
    font-size: 0.95em;
    margin-top: 12px;
  }
  
  footer {
    padding: 18px 12px;
    font-size: 0.7em;
  }
  
  #carrusel3d {
    height: 140px;
    margin: 16px 0;
  }
  
  .contenedor-carrusel3d {
    width: 180px;
    height: 100px;
  }
  
  .contenedor-carrusel3d img {
    width: 120px;
    height: 80px;
    left: 30px;
    top: 10px;
  }
  
  .section-funciona.futuristic-3d h2 {
    font-size: 1.2em;
    margin-bottom: 30px;
  }
  
  .card3d-grid {
    gap: 16px;
  }
  
  .card3d {
    max-width: 160px;
    height: 200px;
  }
  
  .icon-card.neon {
    font-size: 1.8em;
  }
  
  #mentoriaBtn {
    bottom: 16px;
    right: 12px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  #chatMentoria {
    width: 280px;
    bottom: 60px;
    right: 12px;
  }
}

/* ===== TABLET (480px - 768px) ===== */
@media (min-width: 480px) and (max-width: 768px) {
  .navbar {
    padding: 10px 24px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.95em;
  }
  
  .nav-logo img {
    height: 30px;
  }

  .flag-icon {
    width: 22px;
    height: 16px;
  }
  
  h1, .section-hero h1 {
    font-size: 2em;
  }
  
  h2, .section-hero h2, .section-testimonios h2 {
    font-size: 1.4em;
  }
  
  .section-hero {
    padding: 120px 24px 40px;
  }
  
  .section-servicios, .section-nosotros, .section-originalidad, .section-testimonios, .section-formulario {
    padding: 60px 24px 45px;
  }
  
  .servicios-row {
    gap: 20px;
  }
  
  .servicio-card {
    width: calc(50% - 10px);
    max-width: 220px;
  }
  
  .section-formulario {
    padding: 60px 24px;
  }
  
  .form-container {
    max-width: 100%;
    padding: 28px 24px;
  }
  
  .form-row > div {
    flex: 1 1 calc(50% - 6px);
  }
  
  #carrusel3d {
    height: 220px;
  }
  
  .contenedor-carrusel3d {
    width: 280px;
    height: 150px;
  }
  
  .contenedor-carrusel3d img {
    width: 180px;
    height: 120px;
    left: 50px;
    top: 15px;
  }
  
  .card3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #mentoriaBtn {
    bottom: 24px;
    right: 24px;
  }
  
  #chatMentoria {
    width: 320px;
    bottom: 85px;
    right: 24px;
  }
}

/* ===== TABLET GRANDE (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    padding: 10px 32px;
  }
  
  h1, .section-hero h1 {
    font-size: 2.5em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .section-hero {
    padding: 140px 32px 50px;
  }
  
  .section-servicios, .section-nosotros, .section-originalidad, .section-testimonios, .section-formulario {
    padding: 70px 32px 55px;
  }
  
  .servicios-row {
    gap: 28px;
  }
  
  .servicio-card {
    width: auto;
    min-width: 200px;
    max-width: 240px;
  }
  
  .nosotros-columns {
    gap: 32px;
    padding: 40px 32px;
  }
  
  .form-container {
    max-width: 520px;
    padding: 32px 24px;
  }
  
  .form-row > div {
    flex: 1 1 calc(50% - 8px);
  }
  
  #carrusel3d {
    height: 260px;
  }
  
  .card3d-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ===== DESKTOP (1025px+) ===== */
@media (min-width: 1025px) {
  .navbar {
    padding: 12px 48px;
  }
  
  h1, .section-hero h1 {
    font-size: 3.3em;
  }
  
  .section-hero {
    padding: 160px 48px 50px;
  }
  
  .section-servicios, .section-nosotros, .section-originalidad, .section-testimonios, .section-formulario {
    padding: 88px 48px 60px;
  }
  
  .servicios-row {
    gap: 34px;
    max-width: 1000px;
  }
  
  .servicio-card {
    width: 260px;
  }
  
  .servicio-card img {
    height: 130px;
  }
  
  .servicio-body {
    padding: 18px 16px;
  }
  
  .nosotros-columns {
    gap: 44px;
    padding: 46px 36px;
    flex-direction: row;
  }
  
  .nosotros-img img {
    width: 270px;
    max-width: 270px;
  }
  
  .originalidad-content {
    flex-direction: row;
    gap: 32px;
    padding: 34px 28px;
    max-width: 880px;
  }
  
  .originalidad-icon {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
  
  .testimonios-row {
    gap: 30px;
    max-width: 1000px;
  }
  
  .testimonio-card {
    flex: 1 1 280px;
  }
  
  .form-container {
    max-width: 540px;
    padding: 36px 24px;
  }
  
  .form-row > div {
    flex: 1 1 calc(50% - 8px);
    min-width: auto;
  }
  
  #carrusel3d {
    height: 280px;
    margin: 36px 0 24px;
  }
  
  .contenedor-carrusel3d {
    width: 300px;
    height: 200px;
  }
  
  .contenedor-carrusel3d img {
    width: 200px;
    height: 130px;
    left: 50px;
    top: 10px;
  }
  
  .card3d-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }
  
  .card3d {
    width: 210px;
    height: 260px;
  }
  
  #mentoriaBtn {
    bottom: 36px;
    right: 36px;
  }
  
  #chatMentoria {
    width: 350px;
    bottom: 90px;
    right: 36px;
  }
}

/* ===== ANIMACION ESCALONADA DE TARJETAS ===== */
.servicio-card:nth-child(1).visible { transition-delay: 0.1s; }
.servicio-card:nth-child(2).visible { transition-delay: 0.2s; }
.servicio-card:nth-child(3).visible { transition-delay: 0.3s; }
.servicio-card:nth-child(4).visible { transition-delay: 0.4s; }
.servicio-card:nth-child(5).visible { transition-delay: 0.5s; }

/* ===== REDES SOCIALES ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 20px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #1a5278;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 82, 120, 0.4);
}

.social-links a svg {
  width: 22px;
  height: 22px;
}

/* Colores específicos de cada red social */
.social-links a:nth-child(1):hover { background-color: #E4405F; } /* Instagram */
.social-links a:nth-child(2):hover { background-color: #1877F2; } /* Facebook */
.social-links a:nth-child(3):hover { background-color: #0A66C2; } /* LinkedIn */
.social-links a:nth-child(4):hover { background-color: #000000; } /* TikTok */

/* ===== RESPONSIVO MENTORIA CHAT MOVIL ===== */
@media (max-width: 768px) {
    #mentoriaBtn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    #chatMentoria {
        width: 95vw !important;
        height: 85vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 15px 15px 0 0;
    }
    
    .mentor-header {
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 480px) {
    #mentoriaBtn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    #chatMentoria {
        width: 100vw !important;
        height: 90vh !important;
        border-radius: 0;
    }
    
    .mentor-header {
        border-radius: 0;
    }
}