/*NAVBAR*/
.navbar-transparent {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Navbar transparente: texto blanco */
.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link,
.navbar.navbar-transparent .navbar-toggler-icon {
    color: white !important;
}

/* Navbar con fondo: texto negro */
.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link {
    color: #000 !important;
}

/* Icono hamburguesa negro al hacer scroll */
.navbar.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/*BANNER*/
body {
    margin: 0;
    font-family: 'Playfair Display', sans-serif;
}

p {
    font-family: 'Open Sans';
}

.hero {
    background-image: url('images/mcchildreninscience.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* oscurece la imagen para mejor contraste */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px;
    margin-left: 5%;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero .cta-button {
    padding: 12px 24px;
    background-color: #f9c74f;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #f9844a;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 20px;
        text-align: left;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

.floating-card {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 250px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin-top: 10%;
}

.floating-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive: oculta o reubica la tarjeta en móviles */
@media (max-width: 768px) {
    .floating-card {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 90%;
        display: none;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0; /* para que no aparezca antes de la animación */
}

.floating-card {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
}


/*TITULOS*/
h2 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;

    font-size: 2.2rem;
    font-weight: 500;
    color: #0A0E59;
}

/*FORMULARIO DE CONTACTO*/
.contact-section {
    /*background-color: #f9f9f9;
    padding: 60px 20px;*/
    padding: 60px 0px;
}

.form-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.form-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-container p {
    font-size: 1rem;
    margin-bottom: 30px;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

form button {
    background-color: #f9c74f;
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #f9844a;
}

/* Animación de desvanecimiento y desplazamiento */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase base para los elementos que se animarán */
.contact-section .fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Delays para entrada escalonada */
.contact-section h2 {
    animation-delay: 0.1s;
}

.contact-section .form-container {
    animation-delay: 0.3s;
}

.contact-section form input:nth-child(1) { animation-delay: 0.4s; }
.contact-section form input:nth-child(2) { animation-delay: 0.5s; }
.contact-section form input:nth-child(3) { animation-delay: 0.6s; }
.contact-section form textarea           { animation-delay: 0.7s; }
.contact-section form button             { animation-delay: 0.8s; }

.contact-section .footer-right {
    animation-delay: 1s;
}


/*FOOTER*/
.site-footer {
    background-color: #0A0E59;
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;

    align-items: flex-start;
}

.footer-left {
    flex: 1 1 300px;
}

.footer-right {
    flex: 0 0 300px;
    margin-left: auto;
    text-align: right;
}

.footer-left h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f9c74f;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #ccc;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        margin-bottom: 30px;
    }
}

.academias-button {
    padding: 12px 24px;
    background-color: #f9c74f;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.academias-button:hover {
    background-color: #f9844a;
}

.card {
    border-color: white;
}
.enrollment-section h2 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.enrollment-section .form-container p {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.enrollment-section .card {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.enrollment-section .footer-left .card {
    animation-delay: 0.5s;
}

.enrollment-section .footer-right .card {
    animation-delay: 0.7s;
}

.enrollment-section > .container > div:last-child p {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

/*FAQ*/
.faq-btn {
    width: 100%;
    min-height: 180px;
    background-color: #0A0E59;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    transition: background-color 0.3s, color 0.3s;
    white-space: normal;
}

.faq-btn:hover {
    /*background-color: #1e365f;*/
    background-color: #cfab77;
    color: black;
}

.faq-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(249, 199, 79, 0.5);
    /* Dorado suave */
}

.faq-btn {
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    opacity: 1;
}

/* Clase temporal para animar el cambio de texto */
.fade-toggle {
    opacity: 0;
}

/*MISION*/
.mission-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.mission-card p {
  font-size: 1rem;
  color: #333;
}

/* Contenedor flex con altura uniforme */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

/* Todas las columnas ocupan el mismo alto */
.row.g-4 > .col-md-4 {
  display: flex;
}

/* Las tarjetas se expanden dentro del espacio */
.mission-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px #cfab77;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.mission-card img {
  width: 100%;
  height: 200px; /* Puedes ajustar a 180px o 220px según prefieras */
  object-fit: cover;
  border-radius: 8px;
}

/*VISION*/
.vision-section img {
  max-height: 300px;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.vision-section h5{
    color:#cfab77;
}

/*FRASE*/
.quick-info-box {
  background-color: #0A0E59;
  color: #d4af37;
  padding: 25px 35px;
  line-height: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  margin: 20px 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.quick-info-box:hover {
  transform: scale(1.03);
}

.info-icon {
  font-size: 1.8rem;
}

/*MAGOS*/
.collection-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.collection-card .overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  transition: background 0.3s ease;
  font-size: 1.05rem;
}

.collection-card:hover {
  transform: scale(1.02);
}

.collection-card:hover .overlay {
  background: rgba(0, 0, 0, 0.6);
}

.large-card {
  height: 100%;
  min-height: 400px;
}

.small-card {
  height: 48%;
  min-height: 190px;
}



