/* =========================
   RESET Y BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f6f9fc;
  color: #333;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   HEADER Y NAVEGACIÓN
========================= */
.header {
  background-color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  height: auto;
}

.logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  scale: 2;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-link:hover .logo {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.menu li a:hover {
  color: #2f65f5;
}

.btn-cta {
  background-color: #FF7F32;
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: #e86f1c;
  transform: translateY(-2px);
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2f65f5, #3B82F6);
  transition: background 0.3s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: left;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero a {
  text-decoration: none;
  font-size: large;
  display: inline-block;
}

/* =========================
   SECCIONES GENERALES
========================= */
section {
  padding: 4rem 0;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  color: #2f65f5;
  width: 100%;
}

/* =========================
   SOBRE NOSOTROS
========================= */
.sobre {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.sobre-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card-about {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #d3e1f4;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 360px;
  margin: 0 auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-about h3 {
  color: #2f65f5;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  text-align: center;
}

.card-about p {
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 137, 0.837), #ffbd4b6f, transparent 30%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card-about:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-about:hover::before {
  opacity: 1;
}

.card-about h3,
.card-about p,
.card-about img {
  position: relative;
  z-index: 1;
}

.card-about ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 1rem 0;
  z-index: 1;
  list-style: none;
}

.card-about ul li {
  z-index: 1;
  margin-bottom: 0.5rem;
  text-align: center;
}

.sub-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sub-container img {
  width: clamp(60px, 10vw, 100px);
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.quote {
  text-align: center;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #555;
  padding: 1rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   SERVICIOS NORIA
========================= */
/* Noria Circular */
.servicios-noria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 95vh;
  background-color: #F3F4F6;
  overflow: hidden; /* <--- AÑADIDO */
}

.noria-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%
}

.noria-banner {
  position: relative;
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  height: 100%;
}

.noria-banner-text {
  display: flex; 
  justify-content: center;
  align-items: center;
  height: 20%;
  width: 100%;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
.noria-banner-overlay {
  height: 50%;
  width: 100%;
  background: rgba(47, 101, 245, 0.5);
  border-radius: 10px;
}
.noria-banner-overlay img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.noria-content {
  display: flex;
  flex: 0 0 35%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.noria-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px; /* Efecto 3D ligero */
  padding-top: 4rem;
}

#noria-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.noria-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  background: #2f65f5;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  width: 85%;
  height: 50%;
  max-width: 30rem;
  opacity: 0;
  transition: all 0.6s ease;
  filter: blur(5px);
  z-index: 1;
  font-size: larger;
}



/* Card activa */
.noria-card.active {
  opacity: 1;
  height: 60%;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}



/* Distribución circular */
.noria-card.prev {
  transform: translate(-40%, -170%) scale(0.7) rotate(-30deg);
  opacity: 0.5;
  filter: blur(3px);
  z-index: 0;
}

.noria-card.next {
  transform: translate(-115%, 80%) scale(0.7) rotate(30deg);
  opacity: 0.5;
  filter: blur(3px);
  z-index: 0;
}

.noria-card.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}



/* Botones de navegación */

.noria-buttons {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
}

.noria-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f65f5;
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.noria-btn:hover {
  scale: 1.3;
  background: #FF7F32;
}

.noria-prev {
  top: 20%;
}

.noria-next {
  bottom: 20%;
}

.service-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.service-title h3 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.5rem;
}

.service-title img {
  width: 15vh;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  #noria-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }

  #noria-list .noria-card {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
    min-width: 80%;
    flex: 0 0 auto;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
  }

  /* No ocultar en móvil */
  #noria-list .noria-card.hidden {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Ocultar los botones en móvil */
  .noria-buttons {
    display: none;
  }
}
/* =========================
   SLIDER MÓVIL (≤1024px)
========================= */
.mobile-mode {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-mode {
    display: none;
  }
  .mobile-mode {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .noria-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }

  .noria-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
  }

  .slide-banner {
    width: 100%;
    height: 40vh;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .slide-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-content img {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
  }

  .slide-content h3 {
    font-size: 1.4rem;
    color: #2f65f5;
    margin-bottom: 0.5rem;
  }

  .slide-content p {
    font-size: 1rem;
    color: #333;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Indicadores */
  .noria-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .noria-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f65f5;
    opacity: 0.5;
    transition: background 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
  }

  .noria-indicators .dot.active {
    background: #FF7F32;
    opacity: 1;
  }
}

/* Indicadores */
.noria-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.noria-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f65f5;
  opacity: 0.5;
  transition: background 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.noria-indicators .dot.active {
  background: #FF7F32;
  opacity: 1;
}

/* =========================
   ALIANZAS
========================= */
.alianzas {
  padding: 2rem 0;
  background-color: #d3e1f495;
  z-index: 1;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.alianzas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
}

.alianza-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  width: 100%;
  max-width: 250px;
  height: 120px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.alianza-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(47, 101, 245, 0.4), rgba(255, 127, 50, 0.4), transparent 60%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.alianza-card:hover::before {
  opacity: 1;
}

.alianza-card img {
  max-height: 80%;
  max-width: 80%;
  z-index: 1;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.alianza-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.alianza-card:hover img {
  transform: scale(1.05);
}

/* =========================
   PROYECTOS - CARRUSEL 3D
========================= */
.proyectos {
  background-color: #F3F4F6;
  padding: 4rem 0;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel {
  height: 100%;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  width: 100%;
}

.carousel-track-container {
  overflow: visible;
  width: 100%;
}

.carousel-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  min-height: 450px;
}

.project-card {
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 18rem;
  height: 50vh;
  min-height: 35vh;
  max-height: 40vh;
  background: rgb(219, 233, 252);
  padding: 0;
  text-align: center;
  border: 3px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #2f65f5, #FF7F32);
  border-radius: 5%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: scale(0.7) translateX(0) rotateY(0deg);
  transition: 
    transform 0.9s cubic-bezier(.4,2,.3,1), 
    opacity 0.9s cubic-bezier(.4,2,.3,1), 
    z-index 0.9s;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.project-card.active,
.project-card.left,
.project-card.right {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
  flex: 1;
}

.project-content h3 {
  color: #2f65f5;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.project-content img {
  width: 60%;
  height: 30%;
  border-radius: 8px;
  object-fit: contain;
  margin: 0.5rem 0;
  background-color: white;
  flex-shrink: 0;
}

.project-content p {
  color: #555;
  font-size: clamp(0.8rem, 2vw, 1rem);
  line-height: 1.4;
  margin: 0.5rem 0;
  flex-shrink: 0;
}

.project-card.active {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.3);
  left: 50%;
  box-shadow: 0 8px 32px rgba(47,101,245,0.15);
}

.project-card.left {
  z-index: 2;
  left: 0;
  transform: translateY(-50%) translateX(-5%) scale(0.85) rotateY(15deg);
  opacity: 0.8;
}

.project-card.right {
  z-index: 2;
  right: 0;
  transform: translateY(-50%) translateX(5%) scale(0.85) rotateY(-15deg);
  opacity: 0.8;
}

/* Botones */
.carousel-btn {
  background: rgba(47, 101, 245, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-btn:hover {
  background: #FF7F32;
}

.prev {
  left: -60px;
}

.next {
  right: -60px;
}

/* =========================
   CONTACTO
========================= */
.contacto {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  color: white;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #2f65f5, #3B82F6, #FF7F32);
  transition: background 0.3s ease;
  z-index: 0;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-info {
  flex: 1 1 60%;
  max-width: 600px;
  min-height: 200px;
}

.contact-info h2 {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: white;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
}

.contact-details {
  margin-top: 1rem;
}

.contact-details p {
  margin: 0.5rem 0;
  font-weight: 500;
}

.contact-form-container {
  flex: 1 1 40%;
  background: white;
  color: #333;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 300px;
}

.contact-form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.form-group {
  margin-bottom: 1.2rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #2f65f5;
  box-shadow: 0 0 8px rgba(47, 101, 245, 0.3);
  outline: none;
}

.btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-container button {
  background-color: #2f65f5;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-container button:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.footer {
  background-color: #010c2a;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-grid a:hover {
  color: white;
}

.footer-social {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
  min-width: 250px;
}

.footer-social p {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-links {
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links li {
  text-align: center;
  list-style: none;
  margin-bottom: 0.5rem;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-contact h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.copyright {
  color: #ccc;
  font-size: 0.9rem;
}

/* =========================
   ANIMACIONES
========================= */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   MEDIA QUERIES RESPONSIVE
========================= */

/* Tablets horizontales y laptops pequeñas */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
  
  .noria-container {
    gap: 1rem;
  }
  
  .noria-banner {
    flex: 0 0 50%;
  }
  
  .noria-content {
    flex: 0 0 40%;
  }
}

/* Tablets verticales y pantallas medianas */
@media (max-width: 1024px) {
  .desktop-mode {
    display: none;
  }
  
  .mobile-mode {
    display: block;
  }

.noria-slider {
    display: flex;
    flex-direction: row;
    padding: 0 10%;
    align-items: center;
    align-content: center;
  }


.noria-slide {
  padding: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 2%;
  overflow: hidden;
  background: #1e40af; /* mismo fondo en toda la card */
}

/* Bloque de imagen */
.slide-banner {
  width: 100%;
  height: 250px; /* altura fija opcional */
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 0; /* sin bordes redondeados */
}

.slide-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* sin bordes redondeados */
}

/* Bloque de texto */
.slide-content {
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: center;
  color: white;
}


  .slide-content p{
    color: white;
  }

  .slide-content h3{
    color:#6cb8ff
   }
  .slide-content img {
    display: none;
  }
  
    .carousel {
    perspective: none; /* eliminamos efecto 3D */
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    position: relative;
  }

  .carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* altura mínima para que el contenedor no colapse */
    position: relative;
  }

  .project-card {
    display: none !important; /* ocultamos todas */
  }

  .project-card.active {
    display: flex !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 90%;
    max-width: 350px;
    opacity: 1 !important;
    z-index: 3;
  }

  /* ocultar flechas si no las querés en mobile */
  .carousel-btn {
    display: none !important;
  }

  .project-card.left,
  .project-card.right {
    display: none !important;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    padding: 0 1rem;
  }
  
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .hero p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  
  .sobre-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .card-about {
    max-width: 100%;
    padding: 1.5rem;
  }
    .carousel {
    perspective: none; /* eliminamos efecto 3D */
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    position: relative;
  }

  .carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* altura mínima para que el contenedor no colapse */
    position: relative;
  }

  .project-card {
    display: none !important; /* ocultamos todas */
  }

  .project-card.active {
    display: flex !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 90%;
    max-width: 350px;
    opacity: 1 !important;
    z-index: 3;
  }



  .project-card.left,
  .project-card.right {
    display: none !important;
  }

  .alianzas-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .alianza-card {
    max-width: 200px;
    height: 100px;
    padding: 1rem;
  }
  
  .contacto-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .contact-info {
    flex: 1 1 100%;
    text-align: center;
    max-width: 100%;
  }
  
  .contact-info h2 {
    text-align: center;
  }
  
  .contact-form-container {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 1.5rem;
  }
  
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-links li {
    text-align: center;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .container {
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .hero {
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 1rem 0.5rem;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  .hero p {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
  
  section {
    padding: 2rem 0;
  }
  
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 1.5rem;
  }
  
  .sobre-cards {
    padding: 0 0.5rem;
  }
  
  .card-about {
    padding: 1rem;
    min-height: 150px;
  }
  
  .card-about h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }
  
  .card-about p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
  }
  
  .quote {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    padding: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .noria-slide {
    min-height: 300px;
  }
  
  .slide-banner {
    height: 30vh;
  }
  
  .slide-content h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }
  
  .slide-content p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
  }
  
  .alianzas-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    padding: 0 0.5rem;
  }
  
  .alianza-card {
    max-width: 150px;
    height: 80px;
    padding: 0.8rem;
  }
  
  .alianza-card img {
    max-height: 70%;
    max-width: 70%;
  }
  
  .project-card.active {
    padding: 1rem;
    min-height: 250px;
  }
  
  .project-content h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .project-content p {
    font-size: clamp(0.7rem, 3vw, 0.8rem);
  }
  
  .contacto {
    padding: 1rem 0;
  }
  
  .contact-info h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  
  .contact-info p {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
  
  .contact-form-container {
    padding: 1rem;
  }
  
  input, textarea, select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-container button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .social-icons {
    gap: 0.8rem;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
  }
}

/* Pantallas muy pequeñas (ej. iPhone SE) */
@media (max-width: 375px) {
  .hero h1 {
    font-size: clamp(1.3rem, 8vw, 1.8rem);
  }
  
  .hero p {
    font-size: clamp(0.7rem, 4vw, 0.9rem);
  }
  
  .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .card-about {
    padding: 0.8rem;
  }
  
  .noria-slide {
    min-height: 250px;
  }
  
  .slide-banner {
    height: 25vh;
  }
  
  .alianza-card {
    max-width: 120px;
    height: 70px;
    padding: 0.6rem;
  }
  
  .contact-form-container {
    padding: 0.8rem;
  }
  
  .footer {
    padding: 1rem 0;
  }
}

/* =========================
   UTILIDADES
========================= */
.no-scroll {
  overflow: hidden;
}

/* Corrección para el menú móvil */
@media (max-width: 768px) {
  .menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .menu li {
    width: 100%;
    text-align: center;
  }
  
  .menu li a {
    display: block;
    padding: 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .menu li a:hover {
    background-color: #f0f0f0;
  }
}