/* ================================================= */
/* ================== BASE ========================= */
/* ================================================= */

html {
  overflow-y: scroll; /* evita salto entre páginas */
  background: #ffffff;
}

body {
  background: #ffffff;
  position: relative;
}

/* ================================================= */
/* ============== MAC SUMMER AMBIENT ============== */
/* ================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(0,140,255,.08), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0,200,255,.05), transparent 60%);
  animation: ambientFloat 30s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -2;
}

@keyframes ambientFloat {
  from { transform: translateY(-20px); }
  to   { transform: translateY(20px); }
}

/* ================================================= */
/* ================== VARIABLES ==================== */
/* ================================================= */

:root {
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(0,0,0,.08);
  --radius: 28px;
}

/* ================================================= */
/* ================== HERO ========================= */
/* ================================================= */

.home-hero {
  text-align: center;
  padding: 40px 24px 20px;
}

.hero-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
}

.home-hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ================================================= */
/* ================== PANEL LAYOUT ================= */
/* ================================================= */

.home-panels {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 90px;
  padding: 0 60px;
  display: flex;
  gap: 60px;
}

@media (max-width: 1000px) {
  .home-panels {
    flex-direction: column;
  }
}

/* ================================================= */
/* ================== PANEL ======================== */
/* ================================================= */

.panel {
  flex: 1;
  height: 480px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 30px rgba(0,0,0,.04),
    0 2px 8px rgba(0,0,0,.03);
  text-decoration: none;
  color: inherit;
  transition:
    transform .6s cubic-bezier(.22,.61,.36,1),
    box-shadow .6s ease;
}

.panel:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.08),
    0 4px 16px rgba(0,0,0,.05);
}

/* ================================================= */
/* ================== BACKGROUND =================== */
/* ================================================= */

.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.panel:hover .bg {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.35); /* visible sin hover */
  transition: background .5s ease;
}

.panel:hover .overlay {
  background: rgba(255,255,255,.80);
}

/* ================================================= */
/* ================== CONTENT ====================== */
/* ================================================= */

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  justify-content: center;

  /* BAJAMOS TODO para simular logo centrado */
  transform: translateY(30%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}

/* Hover vuelve al centro real */
.panel:hover .content {
  transform: translateY(0);
}

/* ================================================= */
/* ================== LOGO ========================= */
/* ================================================= */

.company-logo {
  height: 90px;
  margin-bottom: 30px;
  transition: transform .6s ease;
}

/* Movimiento sutil */
.panel:hover .company-logo {
  transform: translateY(-8px);
}

/* ================================================= */
/* ================== TEXT ========================= */
/* ================================================= */

.headline,
.desc,
.cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease,
              transform .6s ease;
}

.headline {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.desc {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ================================================= */
/* ================== CTA ========================== */
/* ================================================= */

.cta {
  padding: 14px 36px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition:
    opacity .7s ease,
    transform .7s ease,
    background .3s ease;
}

/* ================================================= */
/* ================== HOVER SEQUENCE =============== */
/* ================================================= */

.panel:hover .headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .05s;
}

.panel:hover .desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .15s;
}

.panel:hover .cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .30s;
}

.panel:hover .cta:hover {
  background: #000;
}

/* ================================================= */
/* ================== MOBILE REAL ================== */
/* ================================================= */

@media (max-width: 1000px) {

  .home-panels {
    flex-direction: column;
    gap: 40px;
  }

  .panel {
    height: 360px;
    transform: none !important;
  }

  .panel:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
  }

  .content {
    padding: 40px 30px;
    justify-content: center;
    transform: none !important;
  }

  /* LOGO MÁS PEQUEÑO */
  .company-logo {
    height: 65px;
    transform: none !important;
  }

  /* TEXTOS SIEMPRE VISIBLES */
  .headline,
  .desc,
  .cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .headline {
    font-size: 22px;
  }

  .desc {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .cta {
    padding: 12px 28px;
    font-size: 13px;
  }

  /* Fondo menos blanco en mobile */
  .overlay {
    background: rgba(255,255,255,.65);
  }

}

/* Móvil pequeño */

@media (max-width: 600px) {

  .panel {
    height: 320px;
  }

  .company-logo {
    height: 55px;
  }

}

