@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  --bg-strong: #070708;        
  --bg-soft: #0f1720;          
  --card-bg: rgba(255,255,255,0.03);
  --text-strong: #e9eef6;      
  --text-muted: #9aa8b6;         
  --gold: #c7a86c;             
  --gold-soft: rgba(199,168,108,0.12);
  --glass: rgba(255,255,255,0.02);
  --shadow-1: 0 6px 22px rgba(2,6,23,0.6);
  --radius-lg: 16px;
  --radius-sm: 10px;
}

/* ------------------------------
   RESET Y BASE
---------------------------------*/
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg-strong) 0%, var(--bg-soft) 100%);
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ------------------------------
   HEADER / NAVBAR
---------------------------------*/
header {
  width: 100%;
  padding: 18px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  transition: background 300ms ease, box-shadow 300ms ease, padding 300ms ease;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 20px;
}

.header-content {
  width: 100%;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.45);
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------- NAVBAR -------- */

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 28px;
}

.nav-left li,
.nav-right li {
  list-style: none;
}

.nav-left a,
.nav-right a {
  color: white;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #d4af37;
    border-bottom: 1px solid #d4af37;
}

/* -------- LOGO CENTRADO -------- */

.logo-center img {
  width: 80px;
  height: auto;
  transition: 0.3s ease;
  position: relative;
  z-index: 1500;
}

.logo-center img:hover {
    transform: scale(1.05);
}

/* -------- HAMBURGER / RESPONSIVE -------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  position: absolute;
  top: 45px;
  right: 35px;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
  transition: 0.3s;
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;  
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu-container.active {
  display: flex;
}

.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.close-menu {
  position: absolute;
  top: 40px;
  right: 30px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  display: none;
}

.mobile-menu-container.active .close-menu {
  display: block;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.mobile-nav-links a:hover {
  color: #f2fc6e;
}

/* ------------------------------
   HERO / FONDO / SLIDER
---------------------------------*/
.fondo {
  margin-top: 80px; 
  min-height: 88vh;
  background-image: url('/static/images/home/uc-sin-pared.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
}

.fondo-imagen {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 120px auto 40px; 
  gap: 40px;
}

.slogan-left {
  flex: 1;
  padding: 40px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25); 
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slogan-left .linea-superior {
  width: 90px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #f7e9b0);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeIn 1.8s ease forwards;
}

.slogan-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.22rem;
  line-height: 1.8;
  color: #ffffff;
  font-weight: 300;
  max-width: 500px;
}

.hero-slider {
  flex: 1.3;
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1.6s ease forwards;
}

.hero-slider .slides {
  width: 100%;
  height: 100%;
}

.hero-slider .slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slider .slides img.active {
  opacity: 1;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0,0,0,0.18),
      rgba(0,0,0,0.40)
  );
  pointer-events: none;
}

.dots-container {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.15);
}

/* ------------------------------
   HISTORIA
---------------------------------*/
.historia-section {
  padding: 40px 0;
  background-color: var(--bg-soft);
  display: flex;
  justify-content: center;
}

.historia-container {
  width: 85%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

/* Imagen */
.historia-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--gold-soft);
}

/* Línea dorada vertical */
.historia-divider {
  width: 3px;
  height: 70%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 10px;
}

/* Texto */
.historia-text {
  flex: 1;
  color: var(--text-strong);
}

.historia-text h2 {
  font-size: 46px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 25px;
  letter-spacing: 1.3px;
}

.historia-text p {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.historia-text h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 20px;
}

.fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
}

.fade-in-right {
  animation-delay: 0.2s;
}

.fade-in-left {
  animation-delay: 0.4s;
}

/* ------------------------------
   QUIENES SOMOS
---------------------------------*/
.quienes-section {
  width: 100%;
  padding: 20px 0;
  background: var(--bg-strong);
  display: flex;
  justify-content: center;
}

.quienes-container {
  width: 85%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
}

.quienes-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quienes-title {
  font-size: 46px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.3px;
}

.quienes-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 20px;
}

.quienes-content {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}

.quienes-divider {
  width: 3px;
  height: 75%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 10px;
}

.quienes-text-box {
    flex: 1;
  background: rgba(255,255,255,0.02);
  padding: 15px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.quienes-text-box p {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
}

.quienes-image-wrapper {
  width: 48%;
  display: flex;
  justify-content: center;
}

.quienes-image-frame img {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-1);
  transition: transform .45s ease, box-shadow .45s ease;
}

.quienes-image-frame img:hover {
  transform: scale(1.02);
  box-shadow: 0 28px 48px rgba(0,0,0,0.55);
}



/* ------------------------------
   TORRE / MEDIA
---------------------------------*/

.torre-section {
  padding: 10px 20px;
  position: relative;
}

.torre-header {
  text-align: center;
  margin-bottom: 50px;
}

.torre-header h2 {
  font-size: 2.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 600;
}

.torre-header .gold-line {
  width: 90px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, rgba(199,168,108,0.4), rgba(199,168,108,0.1));
  border-radius: 10px;
}

.torre-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.torre-media {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.torre-image img,
.torre-video video {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 14px;
  object-fit: cover;
  background: #0a0a0a;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(199,168,108,0.08);
  transition: transform .4s ease;
}

.torre-image img:hover,
.torre-video video:hover {
  transform: scale(1.015);
}

.torre-content {
  flex: 1 1 48%;
  padding: 32px 34px;
  border-radius: 14px;
  background: rgba(10, 11, 14, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(199,168,108,0.09);
  box-shadow: 0 16px 40px rgba(2,6,23,0.75);
  position: relative;
}

.torre-content::before {
  content: "University Tower";
  position: absolute;
  top: -18px;
  left: 25px;
  font-size: 1.35rem;
  padding: 6px 16px;
  background: rgba(5,6,6,0.92);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  box-shadow: 0 6px 20px rgba(2,6,23,0.7);
}

.torre-content::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 25px;
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(199,168,108,0.45),
    rgba(199,168,108,0.12),
    transparent
  );
  border-radius: 10px;
}

.torre-content p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.torre-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 0.85rem 2rem;
  background: rgba(199,168,108,0.08);
  color: var(--gold);
  border: 1px solid rgba(199,168,108,0.35);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all .25s ease;
  box-shadow: 0 10px 25px rgba(2,6,23,0.7);
}

.torre-btn:hover {
  background: linear-gradient(90deg, rgba(199,168,108,0.25), rgba(199,168,108,0.12));
  color: #050606;
  transform: translateY(-3px);
}

/* ------------------------------
   AMENIDADES
---------------------------------*/
.amenidades-section {
  padding: 20px 20px;
  position: relative;
  background: var(--bg-strong);
}

.amenidades-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 70px;
  align-items: center;
}

.amenidades-content {
  flex: 1 1 45%;
  padding: 15px 42px;
  border-radius: 16px;
  background: rgba(10, 11, 14, 0.45);
  border: 1px solid rgba(199,168,108,0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.75);
  position: relative;
}

.amenidades-content h2 {
  position: absolute;
  top: -42px;
  left: 32px;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(5,6,6,0.92);
  padding: 6px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(2,6,23,0.7);
}

.amenidades-content::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  width: 140px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(199,168,108,0.4),
    rgba(199,168,108,0.15),
    transparent
  );
  border-radius: 12px;
}

.amenidades-content p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.amenidades-media {
  flex: 1 1 50%;
  position: relative;
}

.amenidades-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(199,168,108,0.1);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.75);
}

.amenidades-video {
  position: absolute;
  right: -10px;
  bottom: -60px;
  width: 55%;
}

.amenidades-video video {
  width: 100%;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(199,168,108,0.12);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.75);
}

/* ------------------------------
   UBICACIÓN / MAP
---------------------------------*/
.ubicacion-section {
  padding: 30px 20px;
  background: var(--bg-strong);
  display: flex;
  justify-content: center;
}

.ubicacion-container {
  width: 85%;
  max-width: 1300px;
  text-align: center;
  position: relative;
}

.ubicacion-container h2 {
  font-size: 44px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.3px;
  margin-bottom: 18px;
}

.ubicacion-container .gold-line {
  width: 110px;
  height: 3px;
  margin: 0 auto 55px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
  border-radius: 20px;
}

/* =======================================================
   MAPA PREMIUM Frame
======================================================= */

.map-wrapper {
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0c0f;
  border: 1px solid rgba(199,168,108,0.22);
  box-shadow: 
    0 28px 70px rgba(0,0,0,0.65),
    0 0 18px rgba(199,168,108,0.2);
  padding: 6px;
}

.map-wrapper iframe {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  filter: grayscale(20%) brightness(0.92); 
  transition: filter .35s ease;
}

.map-wrapper iframe:hover {
  filter: grayscale(0%) brightness(1);
}

.direccion {
  margin: 35px auto 0;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  max-width: 600px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(199,168,108,0.1);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
/* ------------------------------
   FOOTER
---------------------------------*/
.footer {
  background: linear-gradient(180deg, #0b0c0e 0%, #050506 100%);
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(199,168,108,0.12);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,168,108,0.35), transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-link {
  color: rgba(235,238,246,0.75);
  font-weight: 600;
  font-size: 1.02rem;
  transition: 0.3s ease;
}
.footer-link:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(199,168,108,0.7);
}

.footer-social {
  margin: 18px 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(199,168,108,0.08);
  border-radius: 12px;
  font-size: 20px;
  color: rgba(235,238,246,0.85);
  transition: 0.35s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.55);
}

.social-btn:hover {
  color: var(--gold);
  border-color: rgba(199,168,108,0.4);
  box-shadow: 0 8px 22px rgba(199,168,108,0.22);
  transform: translateY(-4px);
}

.footer-copy {
  margin-top: 16px;
  color: rgba(230,233,242,0.65);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.fa-x-twitter {
  font-size: 17px;
}

/* ------------------------------
        RESPONSIVE
---------------------------------*/

@media (max-width: 1186px) {

  .fondo {
    background-position: center top;
    background-size: cover;
    padding-bottom: 20px;
  }

  .nav-left,
  .nav-right {
      gap: 16px; /* antes 28px */
  }

  .nav-left a,
  .nav-right a {
      font-size: 13px; /* antes 15px */
      letter-spacing: 0.5px;
  }

  .logo-center img {
      width: 70px; /* ligeramente más pequeño */
  }

  .hero-layout {
      gap: 25px;
      margin-top: 100px;
  }

  .slogan-left { padding: 28px; }
  .slogan-text { font-size: 1.05rem; }

  .hero-slider { height: 380px; }

  .quienes-content,
  .historia-container,
  .torre-container,
  .amenidades-container {
      gap: 35px;
  }
}

@media (max-width: 950px) {

  .fondo {
    background-size: contain;   /* Se ve completa sin cortarse */
    background-position: top center;
    min-height: 70vh;
  }

  /* Mostrar hamburguesa */
  .menu-toggle {
      display: flex;
  }

  /* Ocultar menú desktop */
  .nav-left,
  .nav-right {
      display: none;
  }

  /* HERO */
  .hero-layout {
      flex-direction: column;
      margin-top: 130px;
  }

  .slogan-left {
      width: 100%;
      padding: 28px;
  }

  .hero-slider {
      width: 100%;
      height: 300px;
  }

  /* HISTORIA */
  .historia-container {
      flex-direction: column;
      text-align: center;
  }

  .historia-divider { display: none; }

  /* QUIENES */
  .quienes-content {
      flex-direction: column;
  }

  .quienes-divider { display: none; }

  .quienes-image-wrapper {
      width: 100%;
  }

  /* TORRE */
  .torre-container {
      flex-direction: column;
  }

  /* AMENIDADES */
  .amenidades-container {
      flex-direction: column;
      gap: 40px;
  }

  .amenidades-video {
      position: relative;
      right: 0;
      bottom: 0;
      width: 100%;
      margin-top: 20px;
  }

  /* MAPA */
  .map-wrapper iframe {
      height: 320px;
  }
}

@media (max-width: 590px) {

  .fondo {
    background-size: contain;   /* Mantiene la imagen completa */
    background-position: top;
    margin-top: 60px;
    min-height: 60vh;
  }

  header { padding: 14px 0; }

  .logo-center img {
      width: 62px;
  }

  .slogan-text {
      font-size: 1rem;
  }

  .hero-slider {
      height: 250px;
  }

  .historia-text h2,
  .quienes-title,
  .ubicacion-container h2 {
      font-size: 32px;
  }

  .torre-content,
  .amenidades-content {
      padding: 25px;
  }
}

@media (max-width: 480px) {

  .fondo {
    background-size: contain;
    background-position: top center;
    margin-top: 40px;
    min-height: 55vh;
    padding-bottom: 10px;
  }

  .header-content {
      padding: 14px 20px;
  }

  .slogan-left {
      padding: 22px;
  }

  .slogan-text {
      font-size: .95rem;
  }

  .hero-slider {
      height: 210px;
  }

  .quienes-text-box p,
  .torre-content p,
  .amenidades-content p {
      font-size: .95rem;
  }

  .torre-btn {
      padding: 0.75rem 1.6rem;
      font-size: .95rem;
  }

  .map-wrapper iframe {
      height: 260px;
  }
}



