/* Reset y fuente */
body,
html {
  height: 100%;
  min-height: 100vh;
  font-family: "Montserrat", "Poppins", Arial, sans-serif;
  background: linear-gradient(120deg, #b6c2e0 0%, #f6f8fa 100%);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #222;
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header y navbar */
.logo {
  width: 150px; /* Ajusta según lo que necesites */
  height: auto; /* Para mantener proporciones */
}

.header,
.navbar {
  background: linear-gradient(90deg, #e3eafc 0%, #cfd8e3 100%);
  color: #222;
  font-family: "Montserrat", "Poppins", Arial, sans-serif;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
  color: #222;
  font-weight: 700;
  font-size: 1.08rem;
  transition: color 0.2s;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-nav .nav-link:hover {
  color: #007bff;
}
.navbar-light .navbar-brand img {
  margin-right: 8px;
}

/* Botón moderno y coherente */
.btn-custom,
.btn-testimonio {
  background: #27486b;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
  box-shadow: 0 4px 18px rgba(0, 123, 255, 0.1);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  letter-spacing: 0.03em;
  outline: none;
}
.btn-custom:hover,
.btn-testimonio:hover,
.btn-custom:focus,
.btn-testimonio:focus {
  background: #41484f;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.18);
}

/* Fondo hero principal */
.main-section {
  background: linear-gradient(120deg, #b6c2e0 0%, #f6f8fa 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.left-content {
  animation: fadeInLeft 1s;
}
.right-content {
  animation: fadeInRight 1s;
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Títulos y descripciones */
.croma-title,
.oraculo-title,
.creadora-title {
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: #597899;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.oraculo-title span,
.creadora-title span {
  color: #28a745;
  font-family: "Montserrat", Arial, sans-serif;
}
.croma-desc,
.oraculo-desc,
.creadora-desc {
  font-size: 1.18rem;
  color: #555555;
  line-height: 1.7;
  font-family: "Montserrat", Arial, sans-serif;
}

/* Separador visual entre secciones */
.section-separator {
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, #28a745 0%, #007bff 100%);
  border-radius: 3px;
  margin: 32px auto;
  opacity: 0.8;
}

/* Carrusel */
.carousel-inner img {
  border-radius: 12px;
  object-fit: cover;
  height: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
@media (max-width: 991px) {
  .main-section {
    flex-direction: column;
    padding: 40px 0;
  }
  .carousel-inner img {
    height: 220px;
  }
}

/* Oráculo con fondo claro y gradiente */
.oraculo-section {
  background: #b6c2e0;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(40, 167, 69, 0.07);
  animation: fadeInUp 1.2s;
}
.oraculo-img {
  max-width: 350px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  animation: fadeInLeft 1s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .oraculo-img {
    max-width: 220px;
    margin-bottom: 24px;
  }
  .oraculo-title {
    font-size: 1.5rem;
  }
}

/* Tarjetas CROMA */
.cards-section {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(120deg, #393b3f 0%, #f6f8fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.croma-card,
.testimonios-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #e3eafc 0%, #e3f7ef 100%);
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 220px;
}
.croma-card:hover,
.testimonios-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.13);
}
.card-img,
.testimonios-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  filter: brightness(0.85);
}
.croma-card:hover .card-img,
.testimonios-card:hover .card-img {
  filter: brightness(0.7) blur(2px);
}
.card-overlay,
.testimonios-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  opacity: 0;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  transition: opacity 0.3s;
  border-radius: 18px;
  pointer-events: none;
}
.croma-card:hover .card-overlay,
.testimonios-card:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}
.croma-card h5,
.testimonios-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #3f3f3f;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
.croma-card p,
.testimonios-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #444;
}
.croma-card .btn-custom {
  padding: 6px 18px;
  font-size: 0.95rem;
}
.croma-card-link {
  text-decoration: none;
  color: inherit;
}

/* Sección creadora con fondo claro y gradiente */
.creadora-section {
  background: #b6c2e0;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 123, 255, 0.07);
  animation: fadeInUp 1.2s;
}
.creadora-img {
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  animation: fadeInLeft 1s;
}
@media (max-width: 991px) {
  .creadora-img {
    max-width: 220px;
    margin-bottom: 24px;
  }
  .creadora-title {
    font-size: 1.5rem;
  }
}

/* Certificados */
.certificado-thumb {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: cover;
  height: 220px;
  width: 100%;
  background: linear-gradient(120deg, #e3eafc 0%, #e3f7ef 100%);
}
.certificado-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}
#certModalImg {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  background: #e3eafc;
}

/* Contacto */
#contacto-form {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(40, 167, 69, 0.07);
  padding: 2rem;
}
#contacto-form .form-control {
  background: #939db5;
  color: #fefefe;
  border: 1px solid #939db5;
  border-radius: 6px;
  font-size: 1.08rem;
  font-family: "Montserrat", Arial, sans-serif;
  transition: border 0.2s, box-shadow 0.2s;
}
#contacto-form .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.1rem #28a74533;
  background: #e3eafc;
  color: #222;
}
#contacto-form label {
  font-weight: 700;
  color: #3f3f3f;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
#contacto-form textarea {
  resize: vertical;
}
#contacto-form .btn-custom {
  background: #3f3f3f;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
#contacto-form .btn-custom:hover {
  background: #1f1f1f;
  color: #fff;
}
.bg-light {
  background: #e3eafc !important;
  color: #222 !important;
}

/* Separadores entre secciones */
.section-separator {
  width: 80px;
  height: 6px;
  background: #3f3f3f;
  border-radius: 3px;
  margin: 32px auto;
  opacity: 0.8;
}

/* Footer claro y moderno */
.footer-croma {
  background: linear-gradient(90deg, #e3eafc 0%, #f6f8fa 100%);
  color: #222;
  font-size: 1rem;
  border-top: 4px solid #3f3f3f;
  letter-spacing: 0.02em;
  font-family: "Montserrat", Arial, sans-serif;
}
.footer-croma .footer-link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
.footer-croma .footer-link i {
  margin-right: 6px;
}
.footer-croma .footer-link:hover {
  color: #3f3f3f;
  text-decoration: underline;
}
.footer-croma .footer-logo {
  color: #373737;
  letter-spacing: 0.08em;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
.footer-croma .footer-dev {
  font-size: 0.95rem;
  color: #555;
  display: block;
  margin-top: 2px;
}
.footer-croma .footer-social {
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .footer-croma .text-md-right,
  .footer-croma .text-md-left {
    text-align: center !important;
  }
  .footer-croma .footer-social {
    justify-content: center !important;
    margin-top: 10px;
  }
}

/* Testimonios */
.testimonios-hero {
  background: linear-gradient(90deg, #28a745 0%, #007bff 100%);
  color: #fff;
  padding: 60px 0 40px 0;
  text-align: center;
  box-shadow: 0 4px 24px rgba(40, 167, 69, 0.1);
}
.testimonios-hero h1 {
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  color: #fff;
}
.testimonios-hero p {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: #e3eafc;
}
.testimonio-card {
  background: linear-gradient(120deg, #e3eafc 0%, #e3f7ef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(40, 167, 69, 0.07);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
  color: #222;
  font-family: "Montserrat", Arial, sans-serif;
}
.testimonio-card:hover {
  box-shadow: 0 4px 24px rgba(40, 167, 69, 0.13);
}
.testimonio-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #28a745;
}
.testimonio-nombre {
  font-weight: 700;
  color: #3f3f3f;
  font-size: 1.1rem;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}
.testimonio-rol {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.testimonio-texto {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0;
}
.testimonios-section {
  padding: 40px 0 20px 0;
}
