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

:root {
  --pink-soft: #fcecf1;
  --pink-strong: #d40050;
  --blue-text: #00b2cf;
  --blue-section: #e8f8fb;
  --text: #2e2e2e;
  --text-size: 1.1rem; 
  --text-small: 0.9rem; 
  --radius: 18px;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: Ubuntu, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
}

/* ======================
   LAYOUT
====================== */

.container {
  display: block;
  width: 100%;
  min-height: 100%;
  margin: auto;
}

.container-flex {
  display: block;
  width: 100%;
  margin: auto;
}


/* ======================
   HEADER
====================== */

.header {
  background: var(--pink-soft);
  height: 12vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0px;
}

.logo {
  position: relative;
  top: 2rem;
}

.logo img {
  display: block;
  margin: auto;
  width: 40%;
  height: 40%;
}

.idiomas a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.selected {
  color: var(--pink-strong) !important;
  text-decoration: underline !important;
}

.btn-access {
  background: var(--pink-strong);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}


/* ======================
   HAMBURGER
====================== */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Animation when active */

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ======================
   MOBILE MENU
====================== */

.mobile-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  background: #f7f9fa;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  width: 100%;
  left: 0;
  top: 0;
  z-index: 100;
}

.mobile-menu a {
  padding: 0.8rem 0;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-btn {
  margin-top: 1rem;
  text-align: center;
}

/* Open state */

.mobile-menu.open {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   PORTADA
====================== */

.hero {
  background: #f7f9fa;
}

.hero-wrapper {
  margin: auto;
  width: 70%;
  min-height:80vh;
}

.hero-illustration {
  width: 80%;
  padding: 3rem;
}

.illustration-mobile {
  display: none;
}

.illustration-placeholder {
  display: flex;
}

.hero-content {
  position: absolute;
  width: 30%;
  top: 25vw;
  right: 30vh;
}

.hero-content h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue-text);
}

.hero-content p {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: var(--text-size);
  font-weight: 500;
  margin-bottom: 10px;
}

/* Cards secondary */
.secondary {
  width: 100%;
  padding: 3rem 0rem 3rem 0rem;
  background: #f7f9fa;
}

.secondary-wrapper {
  width: 70%;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  padding: 0rem 2.5rem 0rem 2.5rem;
}

.secondary-wrapper h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue-text);
  margin-bottom: 10px;
}

.secondary-article {
  position: relative;
  background: white;
  padding: 2rem 2.5rem 5rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  width: 90%;
}

.secondary-article p {
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.5rem;
}

.btn-secondary {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  background: var(--blue-text);
  font-size: 1rem;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

/* ======================
   COMO TRABAJAMOS
====================== */

.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 4rem 0 3rem;
}

.intro-content {
  max-width: 55%;
  width: 90%;
}

.intro h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue-text);
}

.intro p {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: var(--text-size);
  font-weight: 500;
}


/* Cards como trabajamos */
.cards-section {
  background: var(--blue-section);
  width: 100%;
  padding: 3rem 0rem 3rem 0rem;
}

.features {
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  padding: 0rem 2.5rem 0rem 2.5rem;
}

.feature {
  background: white;
  padding: 2rem 2.5rem 2rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  width: 90%;
}

/****************************/

@media (max-width: 1400px)  {

.feature {
  padding: 2rem 1rem 2rem 1rem;
}

}

/****************************/



.feature h3 {
  margin-top: 5%;
  margin-bottom: 5%;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.5rem;
}

.feature p {
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.5rem;
}

/* Split layouts */

.split {
  background: #ffffff;
  padding: 3rem 0rem 3rem 0rem;
}

.split-container {
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 0rem 2.5rem 0rem 2.5rem;
}

.bases {
  width: 70%;
}

.bases h2 {
  text-align: left;
  color: var(--blue-text);
  margin-bottom: 2rem;
}

.bases h3 {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.bases p{
 font-size: clamp(0.8rem, 1vw, 1rem);
 margin-top: 0.5rem;
 margin-bottom: 0.25rem;
 line-height: 1.5rem;
}

.bases-illustration {
  display: block;
  margin: auto;
  width: 40%;
  height: 40%;
}



/* ================= 
      EQUIPO 
================= */

.team {
  max-width: 100%;
  background: var(--blue-section);
  padding: 4rem 0 3rem;
}

.team-wrapper {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.team-illustration img {
  width: 90%;
  height: 95%;
}

.team-text h2 {
  text-align: left;
  color: var(--blue-text);
  margin-bottom: 2rem;
}

.team-text {
  position: relative;
  left: 25%;
  top: 0px;
  width: 38%;
  line-height: 1.5rem;
}

/* Director */

.director {
  max-width: 100%;
  background: #ffffff;
  padding: 4rem 0 3rem;
}

.director-card {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  margin-left: 10%;
  gap: 2rem;
}

.director-illustration {
  width: 25%;
  height: 25%;
}

.director-text {
  position: relative;
  width: 60%;
}

.director-text h2{
  text-align: left;
  color: var(--blue-text);
  margin-bottom: 2rem;
}

.director-text h3{
 margin-top: 0rem;
 color: black;
 font-size: 1.1rem;
}

.director-text p {
 font-size: clamp(0.8rem, 1vw, 1rem);
 margin-top: 1.5rem;
 margin-bottom: 0.25rem;
 line-height: 1.5rem;
}

/* ================= 
    COLABORADORES 
================= */

.colaboradores {
  max-width: 100%;
  padding: 0rem 0 3rem;
  background: #ffffff;
}

.colab-card {
  width: 80%;
  display: block;
  margin: auto;
  text-align: left;
  padding: 1rem 2rem 2rem 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.colab-card h2 {
  color: var(--blue-text);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.colab-card h3 {
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.colab-card p{
 font-size: clamp(0.8rem, 1vw, 1rem);
 margin-top: 0.5rem;
 margin-bottom: 0.25rem;
 line-height: 1.5rem;
}

/******************
RECURSOS
*******************/

.recursos {
  display: flex;
  width: 100%;
  height: 76vh;
}

.recursos-wrapper {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  align-items: center;
  line-height: 1.5rem;
}

.recursos-content p {
  font-size: clamp(0.8rem, 1vw, 1rem);
  display: flow-root;
  line-height: 1.5;
  margin-top:10px;
  margin-bottom:10px
}

.recursos-content a {
  color: var(--pink-strong);
}

.recursos-content h1 {
  color: var(--blue-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.recursos-illustration {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.recursos-mobile {
  display: none;
}

.recursos-illustration img {
  display: block;
  margin: auto;
  width: 70%;
  height: 70%;
}

.recursos-illustration button {
  background: var(--blue-text);
  font-size: 1rem;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  grid-column-start: 3; 
}

.recursos-decoration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.recursos-decoration img {
  width: 80%;
  height: 80%;
}

/***************
    FICHAS
****************/

.fichas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--blue-section);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
}

.fichas-content {
  width: 75%;
}

.fichas-content h2 {
  text-align: left;
  margin-bottom: 0.5rem;
  margin-top: 4rem;
  color: var(--blue-text);
}

.fichas-content p {
font-size: clamp(0.8rem, 1vw, 1rem);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.5rem;
}

.fichas-wrapper {
  width: 75%;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.fichas-enlace {
  text-align: center;
  width: 100%;
}

.fichas-enlace span {
  margin-bottom: 2rem;
  text-decoration-style: solid;
  text-decoration: underline;
}

.fichas-enlace img {
  width: 100%;
  border-radius: 15px;
  margin-top: 9px;
}

.fichas-img {
 display: flex; 
 flex-direction: column; 
 justify-content: center;
 align-items: center; 
 width: 45%;
}

.fichas-img button {
  background: var(--blue-text);
  font-size: 1rem;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.fichas-img img {
 width: 70%;
}

.ficha-wrapper {
  padding: 3.5rem 1rem 1rem 1rem;
  width: 55%;
  height: 73%;
  margin: auto;
}

.ficha-completa {
  width: 100%;
  height: 100%;
}

.mundo-illustration {
  width: 70%;
}

.final {
  background: #ffffff;
  padding: 3rem 0rem 3rem 0rem;
}

.final-container {
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  padding: 0rem 2.5rem 0rem 2.5rem;
}

.final-container button {
  margin-right: 3rem;
}

/* Books */

.books {
  background: #ffffff;
  width: 100%;
}

.books h2 {
  text-align: center;
  color: var(--blue-text);
  margin-bottom: 0.5rem;
  margin-top: 4rem;
}

.books p {
  text-align: left;
  max-width: 600px;
  margin: auto;
}

.books-grid {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Book card */
.book-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.book-content {
  padding: 1.5rem;
}

.course {
  display: inline-block;
  background: #cbe8ee;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

.book-content h2 {
  font-size: 1.1rem;
  margin: 0.4rem 0;
  text-align: left;
}

.author {
  font-size: 0.85rem;
  color: #555;
  font-weight: bold;
}

.meta {
  list-style: none;
  padding: 0;
  font-size: 0.8rem;
  margin: 0.8rem 0;
}

.meta li {
  margin-bottom: 0.2rem;
}

.description {
  font-size: 0.9rem;
  color: #444;
}

/* CUADERNOS */

.cuaderno {
  width: 100%;
}

.cuaderno h2 {
  text-align: center;
  color: var(--blue-text);
  margin-bottom: 2.5rem;
}

.cuaderno-wrapper {
  margin: auto;
  width: 60%;
  min-height: 76vh;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.cuaderno-single {
  background: #ffffff;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cuaderno-content {
  padding: 1.5rem;
}

.cuaderno-content h2 {
  font-size: 1.1rem;
  margin: 0.4rem 0;
  text-align: left;
}

.cuaderno-portadas {
  gap: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cuaderno-portadas-central {
  gap: 1rem;
  flex: 1;
  display: flex;
  flex-direction: row;
}

.cuaderno-portadas-central img {
  width: 50%;
  border-radius: 14px;
}

.cuaderno-portadas-lateral {
  gap: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cuaderno-portadas-lateral img {
  width: 100%;
  border-radius: 14px;
}

/****** 
MATERIALES
***********/

.dragon {
  background: #ffffff;
  padding: 4rem 0 3rem;
}

.dragon-wrapper  {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  margin-left: 20%;
}

.dragon-content {
  width: 70%;
  margin-top: 5%;
}

.dragon-content h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue-text);
}

.dragon-content p {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: var(--text-size);
  font-weight: 500;
}

.dragon-illustration {
  width: 50%;
}

.dragon-illustration img {
  display: block;
  right: 0;
  width: 100%;
}

/* Projects */
.clouds {
  padding: 3.5rem 1rem 1rem 1rem;
  width: 70%;
  height: 41vh;
  margin: auto;
}

.clouds-wrapper {
  margin: 0rem 2rem 0rem 2rem;
	display: grid;
	grid-template-columns: repeat(6, 19%);
	grid-template-rows: repeat(4, 20%);
  gap: 0rem;
}

.cloud {
  font-size: 1.2rem; 
  text-align: center;
  align-items: center;
}

.cloud img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* CLOUD POSITIONS (DESKTOP) */
.cloud:nth-child(1) { grid-row-start: 1;  grid-column-start: 1;  grid-row-end: 1; grid-column-end: 1; }
.cloud:nth-child(2) { grid-row-start: 1;  grid-column-start: 3;  grid-row-end: 1; grid-column-end: 3; }
.cloud:nth-child(3) { grid-row-start: 1;  grid-column-start: 5;  grid-row-end: 1; grid-column-end: 5; } 
.cloud:nth-child(4) { grid-row-start: 2;  grid-column-start: 2;  grid-row-end: 2; grid-column-end: 2; }
.cloud:nth-child(5) { grid-row-start: 2;  grid-column-start: 4;  grid-row-end: 2; grid-column-end: 4; }
.cloud:nth-child(6) { grid-row-start: 2;  grid-column-start: 6;  grid-row-end: 2; grid-column-end: 6; }
.cloud:nth-child(7) { grid-row-start: 3;  grid-column-start: 1;  grid-row-end: 3; grid-column-end: 1; }
.cloud:nth-child(8) { grid-row-start: 3;  grid-column-start: 3;  grid-row-end: 3; grid-column-end: 3; }
.cloud:nth-child(9) { grid-row-start: 3;  grid-column-start: 5;  grid-row-end: 3; grid-column-end: 5; }
.cloud:nth-child(10) { grid-row-start: 4;  grid-column-start: 2;  grid-row-end: 4; grid-column-end: 2; }
/* PREGUNTAS */
.cloud:nth-child(11) { grid-row-start: 4;  grid-column-start: 5;  grid-row-end: 4; grid-column-end: 7; margin: auto;}

.oculta {
  display: none;
}

.ground {
  position: relative;
  bottom: 0;
  width: 100vw;
  height: 40vh;
  z-index: -999;
}

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



/**************
       FORM 
****************/

.contacto {
  padding: 2rem;
  width: 100%;
}

.contacto-wrapper {
  display: flex;
  width: 100%;
  gap: 3rem;
  justify-content: center;
}

.contacto-illustration {
  margin-top: 5%;
  width: 30%;
}

.form-area {
  max-width: 40%;
}

.form-area h1 {
  text-align: left;
  color: var(--blue-text);
  margin-bottom: 1rem;
}

.form-area h3 {
 margin-top: 0rem;
 margin-bottom: 1rem;
 font-size: 0.9rem;
}

.form-card {
  background: var(--blue-section);
  padding: 1rem 1.5rem;
  border: 0px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  line-height: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.field span {
  font-size: 0.9rem;
}

label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

input,
textarea {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.privacy {
  display: grid;
  grid-template-columns: 0.05fr 1.15fr 1.8fr;
  align-items: left;
  font-size: 0.8rem;
  margin: 1rem 0;
  gap: 1rem;
}

.privacy span {
  margin-left: 0.5rem;
}

.privacy a {
  color: var(--pink-strong);
}

.legal {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-info {
  background: var(--blue-text);
  font-size: 1rem;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  grid-column-start: 3; 
}

#btn-mensaje {
  float: left;
  color: var(--blue-text);
  font-size: 1rem;
}


/* ======================
   LOGIN
====================== */

.login {
  background: #f7f9fa;
  width: 100%;
}

.login-wrapper {
  padding: 3rem;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 76vh;
}

.login-area {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 1.5rem;
}

.login-area h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue-text);
}

.login-area a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.login-card {
  background: var(--blue-section);
  padding: 2rem 1.5rem;
  border: 0px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  line-height: 1.5rem;
}

.login-btn {
  float: left;
  background: var(--blue-text);
  font-size: 1rem;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

/* ======================
   FOOTER
====================== */

.footer {
  background: var(--blue-section);
  padding: 2rem 0;
  font-size: 0.85rem;
  line-height: 1.2rem;
  height: 12vh;
}

.footer-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0px;
}

.footer-links{
  text-align: center;
}

.footer-links a {
  text-decoration: none;
  align-items: center;
  color: #333;
}

.social span {
  display: inline-block;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin-left: 0.5rem;
}

.swal-wide{
  box-sizing : border-box;
  max-height : 100% !important;
  overflow-y : auto !important;
  padding : 0 17px 17px !important;
  width : 712px !important;
  margin: 0;
}

/* MODAL */
.modal-content {
  background-clip: padding-box;
  background-color: #f3f3f3;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  outline: 0 none;
  position: relative;
}
.modal-dialog {
  z-index: 2200;
}
.modal-body {
  padding: 20px 30px 30px 30px;
}
.modal-body p {
  font-size: var(--text-size);
}
.inmodal .modal-body {
  background: #f3f3f4;
}
.inmodal .modal-header {
  padding: 20px 15px;
  text-align: center;
  background-color: #00B3D0;
    border-radius: 4px 4px 0 0;
}
.animated.modal.fade .modal-dialog {
  -webkit-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}
.inmodal .modal-title {
  font-size: 26px;
  color: #014b56;
}
.modal-subtitle{
	color: #014b56 !important;
}
.inmodal .modal-icon {
  font-size: 84px;
  color: #e2e3e3;
}
.modal-footer {
  margin-top: 0;
  background-color: #f3f3f3;
  border: 0;
    border-radius: 0 0 4px 4px;
}

/*****************************/
/********cookies****************/
/*****************************/
#barraaceptacion {
    display:none;
    position:fixed;
    bottom:0px;
	padding-left: 20px;
	padding-right:20px;
	margin: auto;
    width:100%;
    text-align:center;;
    background-color: #00519E;
    color:#fff;
    z-index:99999;
}
.inner {
    width:100%;
    font-family:verdana;
    font-size:12px;
}
 
.inner a.ok {
    padding:4px;
    color:#F29400;
    text-decoration:none;
}
 
.inner a.info {
    padding-left:5px;
    text-decoration:none;
    color:#F29400;
}


/* ======================
   TABLET ≤1024px
====================== */

@media (max-width: 1024px) and (orientation: landscape) {
  .header {
    background: var(--pink-soft);
    height: 22vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0px;
}

.recursos-decoration img {
  width: 50%;
  height: 50%;
}

}


@media (max-width: 1024px) {

.container {
  display: block;
  width: 100%;
  margin: auto;
}

.nav {
    display: none;
}

.hamburger {
    display: flex;
    margin: auto 8rem auto auto;
 }

.hero-wrapper {
  height: auto;
  width: 80%;
}

.hero-illustration {
   width: 100%;
 }

 .illustration-placeholder {
   display: none;
 }

  .illustration-mobile {
    display: block;
    padding-top: 2rem;
    width: 100%;
  }

  .recursos-decoration {
    margin-top: 2rem;
  }

.recursos-decoration img {
  width: 50%;
  height: 50%;
}

  .recursos-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
 }

.recursos-mobile img {
  width: 50%;
  height: 50%;
}

  .recursos-mobile button {
    background: var(--blue-text);
    font-size: 1rem;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
  }

  .hero-content {
    position: static;
    width: 100%;
  }

  .footer {
    height: auto;
    margin: 0;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .nav {
    display: none;
  }

.secondary {
  padding-top: 1rem;
}

.secondary-wrapper {
  flex-direction: column;
  width: 90%;
}

.features {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.feature {
  width: 100%;
}

.feature p {
  height: 100%;
  font-size: 1rem;
  line-height: 1.5rem;
}

.feature h3 {
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.split-container {
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem;
}
.bases {
  width: 100%;
}

.bases-illustration {
  width: 60%;
  height: 60%;
}

.team {
  padding: 0.5rem;
}

.team-wrapper {
  display: block;
  margin: 0 auto;
  padding-bottom: 20px;
}

.team-text {
  margin-top: 10px;
  width: 70%;
  left: 5%;
}

.director-text {
  display: inline;
  width: 100%;
}

.recursos {
  height: 100%;
}

.recursos-wrapper {
  display: block;
  padding: 4rem 1rem 4rem 1rem;
}

.recursos-content {
  width: 100%;
}

.recursos-illustration {
  display: none;
}

.dragon-wrapper {
  margin-left: 0%;
  justify-content: center;
  align-items: center;
}

.dragon-content {
  width: 80%;
  margin-top: 5%;
}

.dragon-illustration {
  display: none;
}

.fichas-img {
  width: 76%;
}

.fichas-img img {
  width: 100%;
}


.books-grid {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 2rem 4rem 2rem;
}
  .contacto,
  .split {
    display: block;
    margin: 20px;
  }

.clouds {
   width: 80%;
   height: auto;
   margin: 0.5rem;
 }

.clouds-wrapper {
  width: 100%;
  margin: 0rem 2rem 0rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 30%);
  grid-template-rows: repeat(5, 23%);
  gap: 0rem;
}

  .cloud {
    position: relative;
  }

.cloud:nth-child(1) { grid-row-start: 1;  grid-column-start: 1;  grid-row-end: 1; grid-column-end: 1; }
.cloud:nth-child(2) { grid-row-start: 1;  grid-column-start: 3;  grid-row-end: 1; grid-column-end: 3; }
.cloud:nth-child(3) { grid-row-start: 2;  grid-column-start: 2;  grid-row-end: 2; grid-column-end: 2; } 
.cloud:nth-child(4) { grid-row-start: 2;  grid-column-start: 4;  grid-row-end: 2; grid-column-end: 4; }
.cloud:nth-child(5) { grid-row-start: 3;  grid-column-start: 1;  grid-row-end: 3; grid-column-end: 1; }
.cloud:nth-child(6) { grid-row-start: 3;  grid-column-start: 3;  grid-row-end: 3; grid-column-end: 3; }
.cloud:nth-child(7) { grid-row-start: 4;  grid-column-start: 2;  grid-row-end: 4; grid-column-end: 2; }
.cloud:nth-child(8) { grid-row-start: 4;  grid-column-start: 4;  grid-row-end: 4; grid-column-end: 4; }
.cloud:nth-child(9) { grid-row-start: 5;  grid-column-start: 1;  grid-row-end: 5; grid-column-end: 1; }
.cloud:nth-child(10) { grid-row-start: 5;  grid-column-start: 3;  grid-row-end: 5; grid-column-end: 3; }

.contacto-wrapper {
  display: flex;
  flex-direction: column;
}

.contacto-illustration {
  display: none;
}

.form-area {
    max-width: 100%;
    margin-top: 2rem;
}

.login-area {
  display: flex;
  flex-direction: column;
  width: 80%;
  gap: 1.5rem;
}

}

/* ======================
   MOBILE ≤640px
====================== */

@media (max-width: 640px) {

.logo {
  position: relative;
  top: 1.4rem;
  width: 50%;
}

.hamburger {
    display: flex;
    margin: auto;
 }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .illustration-placeholder {
    height: 280px;
  }

  .intro-content  {
    max-width: 80%;
  }

.team-wrapper {
  width: 100%;
}

.secondary-wrapper {
  width: 100%;
}

.team-illustration img {
  width: 100%;
  height: 100%;
}

.director {
  display: block;
}

.director-illustration {
  display: none;
}

.fichas-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.final {
  padding: 0rem 0.15rem 3rem 0.15rem;
}

.final-container {
  width: 100%;
}

.final-botones {
  display: flex;
  justify-content: center;
}

.final-botones button {
  margin-right: 0.6rem;
}

.books-grid {
  width:85%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 2rem 4rem 2rem;
}


  .contacto,
  .recursos,
  .split {
    display: block;
    width: 100%;
    margin: auto;
  }

  .features {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
		grid-column-gap: 20px; 
  }

.clouds {
  width: 100%;
  height: auto;
  display: flex;
  gap: 1.5rem;
}

.clouds-wrapper {
  width: 100%;
  margin: 0rem 0rem 0rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 30%);
  grid-template-rows: repeat(7, 15%);
  gap: 0rem;
}

.cloud:nth-child(1) { grid-row-start: 1;  grid-column-start: 2;  grid-row-end: 1; grid-column-end: 2; }
.cloud:nth-child(2) { grid-row-start: 2;  grid-column-start: 1;  grid-row-end: 2; grid-column-end: 1; }
.cloud:nth-child(3) { grid-row-start: 2;  grid-column-start: 3;  grid-row-end: 2; grid-column-end: 3; } 
.cloud:nth-child(4) { grid-row-start: 3;  grid-column-start: 2;  grid-row-end: 3; grid-column-end: 2; }
.cloud:nth-child(5) { grid-row-start: 4;  grid-column-start: 1;  grid-row-end: 4; grid-column-end: 1; }
.cloud:nth-child(6) { grid-row-start: 4;  grid-column-start: 3;  grid-row-end: 4; grid-column-end: 3; }
.cloud:nth-child(7) { grid-row-start: 5;  grid-column-start: 2;  grid-row-end: 5; grid-column-end: 2; }
.cloud:nth-child(8) { grid-row-start: 6;  grid-column-start: 1;  grid-row-end: 6; grid-column-end: 1; }
.cloud:nth-child(9) { grid-row-start: 6;  grid-column-start: 3;  grid-row-end: 6; grid-column-end: 3; }
.cloud:nth-child(10) { grid-row-start: 7;  grid-column-start: 2;  grid-row-end: 7; grid-column-end: 2; }

  .ground {
    height: 40vh;
  }

  .footer {
    height: auto;
    margin: 0;
  }

.login-wrapper {
  padding: 0;
}

}
