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

body{
  font-family:"Georgia",serif;
  color:#2a2a2a;
  line-height:1.75;
  font-size:17px;
  background:#ffffff;
}

.container{
  width:90%;
  max-width:1100px;
  margin:auto;
}

/* HEADER */
header{
  background:#003b44;
  padding:18px 0;
}

.header-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  width:140px;
}

nav ul{
  display:flex;
  gap:25px;
  list-style:none;
}

nav a{
  color:white;
  text-decoration:none;
  font-size:16px;
  transition:opacity 0.3s ease;
}

nav a:hover{
  opacity:0.7;
}

/* HERO BANNER */
.hero{
  height:520px;
  background-image:url("images/banner.png");
  background-size:cover;
  background-position:center left;
  background-repeat:no-repeat;
  position:relative;
  display:flex;
  align-items:center;
}

.hero-overlay{
  width:100%;
  height:100%;
  background:linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.05) 100%
  );
  display:flex;
  align-items:center;
}

.hero-text{
  max-width:850px;
  margin-left:8%;
  color:#ffffff;
}

.hero-text h1{
  font-size:34px;
  font-weight:500;
  line-height:1.3;
}

/* SECCIONES */
.section{
  padding:90px 0;
}

.alt-bg{
  background:#f4f4f4;
}

h2{
  text-align:center;
  font-size:26px;
  margin-bottom:40px;
}

h3{
  text-align:center;
  font-size:20px;
  margin:30px 0 20px 0;
}

/* GLOBOS */
.service-balloon{
  background:#ffffff;
  border-radius:20px;
  padding:55px 70px;
  margin:40px auto;
  max-width:900px;
  box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.wide-balloon{
  max-width:1000px;
}

.service-balloon p,
.service-balloon li{
  font-size:17px;
  margin-bottom:14px;
}

/* TARIFAS */
.tarifas-box{
  background:#ffffff;
  border:2px solid #cfa54a;
  border-radius:14px;
  padding:35px 45px;
  margin:40px auto;
  max-width:600px;
  box-shadow:0 10px 25px rgba(0,0,0,0.07);
}

.tarifas-box ul{
  list-style:none;
  padding-left:10px;
  margin-bottom:15px;
}

.tarifas-box li{
  margin-bottom:8px;
}

/* FOTO PROFESOR */
.about-photo{
  text-align:center;
  margin-bottom:30px;
}

.profesor-img{
  width:230px;
  border-radius:50%;
  border:4px solid #cfa54a;
  box-shadow:0 12px 30px rgba(0,0,0,0.15);
}

/* CERTIFICADO */
.certificado-container{
  margin-top:35px;
  text-align:center;
}

.certificado-img{
  width:100%;
  max-width:400px;
  border-radius:12px;
  box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* CONTACTO */
.contact-section{
  text-align:center;
}

.contact-section p{
  margin-bottom:14px;
}

.contact-section a{
  color:#003b44;
  text-decoration:none;
}

.contact-section a:hover{
  text-decoration:underline;
}

/* BOTON LEER COLUMNA */
.cta-box{
  text-align:center;
  margin-top:40px;
}

.btn-columna{
  display:inline-block;
  background:#cfa54a;
  color:#003b44;
  font-size:18px;
  font-weight:600;
  padding:14px 36px;
  border-radius:12px;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-columna:hover{
  background:#003b44;
  color:#cfa54a;
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(0,0,0,0.3);
}

/* FOOTER */
footer{
  background:#003b44;
  color:white;
  text-align:center;
  padding:20px 0;
  font-size:15px;
  margin-top:60px;
}

/* RESPONSIVE */
@media(max-width:768px){
  .hero{
    height:420px;
    background-position:center;
  }

  .hero-text{
    margin-left:6%;
    margin-right:6%;
  }

  .hero-text h1{
    font-size:26px;
  }

  .service-balloon{
    padding:35px 30px;
  }

  .tarifas-box{
    padding:30px 25px;
  }
}

@media(max-width:480px){
  .hero{
    height:320px;
  }
  .hero-text h1{
    font-size:22px;
  }
  .profesor-img{
    width:180px;
  }
  .service-balloon{
    padding:25px 20px;
  }
  .tarifas-box{
    padding:20px 15px;
  }
}
.editorial-container{
  max-width:900px;
  margin:0 auto;
  background:white;
  padding:60px 80px;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.editorial-container p{
  text-align:justify; /* justifica el texto */
  text-justify: inter-word;
  margin-bottom:22px;
  font-size:18px;
  line-height:1.85;
  color:#2a2a2a;
}

.page-title{
  text-align:center;
  font-size:30px;
  margin-bottom:60px;
  line-height:1.4;
  max-width:950px;
  margin-left:auto;
  margin-right:auto;
}
/* Selector de idioma desplegable */

.language-dropdown {
  position: relative;
}

.language-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.language-arrow {
  font-size: 0.8rem;
}

.language-menu {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.language-menu li {
  margin: 0;
}

.language-menu a {
  display: block;
  padding: 10px 16px;
  color: #123f45;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-menu a:hover {
  background: #f1f7f7;
  color: #0b6b6f;
}

.language-dropdown:hover .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}