/* ============================================
   EQUISAPIENS — Split Index Gateway
   Full-viewport split: Escuela Hípica | Fundación
   ============================================ */

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

body {
  font-family: 'DM Sans', sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #0e1c35;
}

.split-container {
  display: flex;
  height: 100vh;
  position: relative;
  background: url('/images/Tcentro.jpg') center/cover no-repeat;
}

/* ========== CENTER LOGO — arriba del centro ========== */
.center-logo {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 5px solid rgba(255,255,255,0.95);
  overflow: hidden;
}
.center-logo img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}

/* ========== SIDES ========== */
.side-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(26, 46, 90, 0.75) 0%, rgba(36, 63, 122, 0.70) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: flex 0.5s ease;
  position: relative;
  overflow: hidden;
}
.side-left:hover { flex: 1.15; }
.side-left:hover ~ .side-right { flex: 0.85; }

.side-right {
  flex: 1;
  background: linear-gradient(135deg, rgba(232, 115, 44, 0.75) 0%, rgba(212, 162, 84, 0.70) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: flex 0.5s ease;
  position: relative;
  overflow: hidden;
}
.side-right:hover { flex: 1.15; }

/* ========== CONTENT ========== */
.side-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 400px;
}

.side-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.side-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.side-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.side-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.side-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.side-left .side-btn { background: #fff; color: #1a2e5a; }
.side-right .side-btn { background: #1a2e5a; color: #fff; }
.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.side-btn:hover .btn-arrow { transform: translateX(4px); }

/* ========== DIVIDER ========== */
.divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.15);
  z-index: 5;
}

/* ========== FOOTER ========== */
.footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: rgba(14, 28, 53, 0.6);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: #ffffff;
}
.footer-bar a { color: #ffffff; text-decoration: none; }
.footer-bar a:hover { color: #fff; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .split-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  /* Logo: sale del absoluto, va arriba en el flujo */
  .center-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 2rem auto 0;
    width: 120px;
    height: 120px;
    order: -1;
  }
  .center-logo img {
    width: 100px;
    height: 100px;
  }

  /* Ocultar divider vertical */
  .divider { display: none; }

  /* Secciones apiladas con espacio propio */
  .side-left,
  .side-right {
    flex: none;
    padding: 2.5rem 1.5rem;
  }
  .side-left:hover,
  .side-right:hover { flex: none; }
  .side-left:hover ~ .side-right { flex: none; }

  .side-title { font-size: 1.6rem; }
  .side-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* Footer: flujo normal, no superpuesto */
  .footer-bar {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
  }
}
