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

/* ==========================
   BODY / CONTEXTO GLOBAL
   ========================== */
body {
  font-family: 'Lora', serif;
  font-size: 1.08rem;
  color: #5a5a5a;
  line-height: 1.65;
}

/* ==========================
   FONDO
   ========================== */
.page-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    90deg,
    #e7f4f8 0%,
    #f0f8fb 18%,
    #ffffff 38%,
    #ffffff 62%,
    #f0f8fb 82%,
    #e7f4f8 100%
  );
  z-index: -1;
}

/* ==========================
   CONTENIDO PRINCIPAL
   ========================== */
.page-content {
  position: relative;
  z-index: 1;
}

/* ==========================
   HEADER
   ========================== */
.site-header {
  background-color: #faf9f6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1.2rem 3rem;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #6b4eff;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #6b4eff;
}

/* ==========================
   MENÚ
   ========================== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.1rem;
}

.nav-menu a {
  text-decoration: none;
  color: #5a5a5a;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #6b4eff;
  border-bottom-color: #6b4eff;
}

/* ==========================
   BANNER
   ========================== */
.banner-wrapper {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-logo {
  max-width: 420px;
}

/* ==========================
   ANIMACIÓN SUAVE
   ========================== */
@keyframes floatSoft {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.banner-circle {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(107,78,255,.30);
  animation: floatSoft 6s ease-in-out infinite;
}

.banner-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.8rem;
  text-align: center;
  background: rgba(255,255,255,.6);
}

.banner-circle-text h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: #3b4fa1;
  margin-bottom: 1.2rem;
}

.banner-circle-text p {
  font-size: 1.05rem;
  color: #2f3f80;
  line-height: 1.55;
}

/* ==========================
   BOTÓN BANNER
   ========================== */
.banner-button {
  margin-top: 2rem;
  padding: .85rem 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #3b4fa1;
  background:
    linear-gradient(#e7f4f8,#f0f8fb) padding-box,
    linear-gradient(90deg,#7b6cf6,#4fc3e8) border-box;
  border: 2px solid transparent;
  animation: floatSoft 6s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}

.banner-button:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(107,78,255,.35);
}

/* ==========================
   BIENVENIDA
   ========================== */
.welcome-section {
  max-width: 920px;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}

.welcome-section p {
  text-align: justify;
}

/* ==========================
   ÁREAS
   ========================== */
.areas-block {
  margin: 4.5rem auto;
}

.areas-block h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  text-align: center;
  color: #6b4eff;
  margin-bottom: 3rem;
}

/* ==========================
   REDES
   ========================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  margin: 6rem auto;
}

.social-icons img {
  width: 120px;
  transition: transform .25s ease, opacity .25s ease;
}

.social-icons img:hover {
  transform: scale(1.25);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width:768px) {

  /* HEADER */

  .site-header{
    padding: 1rem 1.2rem;
  }

  .nav{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-menu{
    flex-wrap: wrap;
    gap: .6rem;
  }


  /* TEXTO DEL HEADER */

  .brand-title{
    font-size: 1.6rem;
  }

  .brand-subtitle{
    font-size: .9rem;
  }


  /* BANNER */

  .banner-circle{
    width: 260px;
    height: 260px;
  }

  .banner-circle-text h2{
    font-size: 1.6rem;
  }

  .banner-circle-text p{
    font-size: .95rem;
  }

  .banner-logo{
    max-width: 260px;
  }


  /* BOTÓN DEL BANNER */

  .banner-button{
    font-size: .95rem;
    padding: .7rem 1.6rem;
  }


  /* REDES */

  .social-icons{
    gap: 2rem;
    flex-wrap: wrap;
  }

  .social-icons img{
    width: 80px;
  }


  /* MODALES */

  .modal-content{
    width: 90%;
    margin: auto;
  }

}
