:root {
    --primary-color: #1E90FF;
    --secondary-color: #2e6be6;
    --background-color: #F0F8FF;
    --text-color: #ffffff;
    --navbar-height: rgba(28, 112, 186, 0.656);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--navbar-height);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
}

.logo-container .logo {
    height: 80px;
    width: auto;
}

.nav-center {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-bottom ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-bottom ul li a {
    text-decoration: none;
    font-family: 'Trebuchet MS', cursive;
    font-size: 20px;
    color: var(--background-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-bottom ul li a:hover,
.nav-bottom ul li a.active { color: #a8d4ff; transform: scale(1.10); }

/*Carrusel*/
#cv-wrap {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

#cv-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  cursor: grab;
}

#cv-track:active { cursor: grabbing; }

.cv-card {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
}

.cv-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
  font-size: 13px;
  text-align: center;
  color: #333;
}

.cv-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 32px;
}

.cv-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.cv-controls button:hover { background: #f0f0f0; }

#cv-counter {
  font-size: 14px;
  color: #666;
  min-width: 50px;
  text-align: center;
}

/*texto introductorio*/

.Texto-introductorio {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.Texto-introductorio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/fondobaseintroductoria.png') no-repeat center center;
  background-size: cover;
  transform: scale(1.05);
  animation: zoomSuave 10s ease-in-out infinite alternate;
  z-index: 0;
}

.Texto-introductorio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

.Texto-introductorio .wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.Texto-introductorio .wave svg {
  display: block;
  width: 100%;
}

.Texto-introductorio .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: var(--background-color);
  animation: fadeUp 1s ease both;
  width: 90%;
  max-width: 700px;
}

.Texto-introductorio .hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  line-height: 1.2;
}

.Texto-introductorio .hero-content p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  opacity: 0.92;
}

.Texto-introductorio .hero-content .divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin: 14px auto;
  border-radius: 2px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes zoomSuave {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

/*Abajo del carrusel*/
.razon-de-ser {
  position: relative;
  padding: 80px 20px 70px;
  background: linear-gradient(160deg, #eaf4ff 0%, var(--background-color) 60%);
  text-align: center;
  overflow: hidden;
}

.razon-bg-shape {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.razon-badge {
  display: inline-block;
  background-color: rgba(30, 144, 255, 0.1);
  color: var(--primary-color);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.contenedor-texto {
  max-width: 720px;
  margin: 0 auto 50px;
}

.razon-de-ser h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.linea-decorativa {
  width: 70px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0 auto 28px;
  border-radius: 2px;
}

.razon-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #444;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.razon-pilares {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.pilar {
  background: var(--background-color);
  border-radius: 16px;
  padding: 36px 28px;
  flex: 1 1 240px;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.08);
  border: 1px solid rgba(30, 144, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pilar:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.15);
}

.pilar-icono {
    font-size: 0; 
    margin-bottom: 16px;
    filter: none; 
}

.pilar-icono::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: transparent;
    -webkit-text-stroke: 2px #0c447c;
    display: block;
}

.pilar:nth-child(1) .pilar-icono::before { content: '\f043'; } 
.pilar:nth-child(2) .pilar-icono::before { content: '\f004'; } 
.pilar:nth-child(3) .pilar-icono::before { content: '\f06c'; }

.pilar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.pilar p {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .razon-pilares { flex-direction: column; align-items: center; }
  .pilar { max-width: 100%; }
}

/*Footer*/
.ft {
  background: #0c447c;
  color: #b5d4f4;
  font-size: 14px;
  padding: 56px 40px 0;
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.ft-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 16px;
}

.ft-logo {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
}

.ft-tagline {
  color: #85b7eb;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-col ul li a {
  color: #b5d4f4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.ft-col ul li a:hover { color: #fff; }

.ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #b5d4f4;
  font-size: 14px;
}

.ft-social {
  display: flex;
  gap: 10px;
}

.ft-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(133,183,235,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5d4f4;
  text-decoration: none;
  transition: background 0.2s;
}

.ft-social a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.ft-divider {
  border: none;
  border-top: 1px solid rgba(133,183,235,0.2);
  margin: 0;
}

.ft-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #85b7eb;
}

.ft-badge {
  background: rgba(133,183,235,0.12);
  color: #85b7eb;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  border: 1px solid rgba(133,183,235,0.25);
}

/*Loader*/
#loader {
  position: fixed;
  inset: 0;
  background: #0c447c;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease;
}
.loader-logo-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.loader-logo-ring img { width: 90px; height: auto; }
.loader-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0;
}
.loader-sub {
  color: rgba(181,212,244,0.75);
  font-size: 0.9rem;
  font-style: italic;
  margin: -12px 0 0;
}
.loader-bar-wrap {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: #1E90FF;
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
}
.loader-pct {
  color: rgba(181,212,244,0.55);
  font-size: 12px;
  margin-top: -12px;
}
/*Lapto*/
@media (max-width: 1366px) {
  nav { padding: 10px 28px; }
  .nav-bottom ul { gap: 20px; }
  .nav-bottom ul li a { font-size: 17px; }
}
 
/*Tableta */
@media (max-width: 1024px) {
  nav { padding: 10px 22px; }
  .nav-bottom ul { gap: 16px; }
  .nav-bottom ul li a { font-size: 15px; }
 
  .Texto-introductorio { height: 58vh; }
  .razon-de-ser { padding: 64px 24px 56px; }
  .cv-card { width: 220px; }
  .ft { padding: 48px 24px 0; }
}
 
/* movil transición*/
@media (max-width: 768px) {
  nav { padding: 8px 18px; }
  .Texto-introductorio { height: 52vh; }
  .razon-de-ser { padding: 56px 20px 48px; }
}
 
/* Movil*/
@media (max-width: 600px) {
  .razon-pilares { flex-direction: column; align-items: center; }
  .pilar { max-width: 100%; }
 
  nav { padding: 10px 16px; }
  .nav-bottom ul { gap: 14px; }
  .nav-bottom ul li a { font-size: 15px; }
 
  .Texto-introductorio { height: 46vh; }
  .cv-card { width: 190px; }
  #cv-wrap { padding: 28px 0; }
  .razon-de-ser { padding: 48px 16px 40px; }
  .ft { padding: 40px 16px 0; }
}
 
/* movil chiquito */
@media (max-width: 400px) {
  .nav-bottom ul { gap: 12px; }
  .nav-bottom ul li a { font-size: 13px; }
  .cv-card { width: 170px; }
  .pilar { padding: 28px 22px; }
}
 
/*Loader*/
#loader {
  position: fixed;
  inset: 0;
  background: #0c447c;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease;
}
.loader-logo-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.loader-logo-ring img { width: 90px; height: auto; }
.loader-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0;
}
.loader-sub {
  color: rgba(181,212,244,0.75);
  font-size: 0.9rem;
  font-style: italic;
  margin: -12px 0 0;
}
.loader-bar-wrap {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: #1E90FF;
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
}
.loader-pct {
  color: rgba(181,212,244,0.55);
  font-size: 12px;
  margin-top: -12px;
}

/* ── HAMBURGUESA ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.abierto span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.abierto span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── MENÚ MÓVIL ── */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(12, 68, 124, 0.97);
    backdrop-filter: blur(8px);
    z-index: 999;
    padding: 20px 0 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.nav-mobile-menu.abierto {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-mobile-menu ul li { width: 100%; text-align: center; }
.nav-mobile-menu ul li a {
    display: block;
    text-decoration: none;
    font-family: 'Trebuchet MS', cursive;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s, color 0.2s;
}
.nav-mobile-menu ul li:last-child a { border-bottom: none; }
.nav-mobile-menu ul li a:hover,
.nav-mobile-menu ul li a.active {
    background: rgba(255,255,255,0.08);
    color: #a8d4ff;
}

/*activar hamburguesa */
@media (max-width: 820px) {
    .nav-bottom { display: none; }
    .hamburger  { display: flex; }
}

/* movil pequeño hamburguesa */
@media (max-width: 480px) {
    .nav-mobile-menu { top: 70px; }
}
@media (max-width: 360px) {
    .nav-mobile-menu { top: 64px; }
}

.material-icons-outlined {
  font-size: 50px;
  color: #2e7d32;
  font-weight: 200;
}