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


:root {
  /* 30 % — estructura y tipografía */
  --primary-color: #1A1A2E;
  --secondary-color: #3D3D5C;
  --dark-blue: #0D0D0D;

  /* 10 % — acento e interacción */
  --accent-color: #1CDAFF;
  --accent:    #1CDAFF;
  --accent2:   #0BBDE0;
  
  /* 60 % — fondos y espacios */
  --white:          #FFFFFF;
  --light-gray:     #F4F6F8;
  --border-color:   #E8ECF0;

  /* Texto */
  --text-primary:   #0D0D0D;
  --text-secondary: #3D3D5C;

  --background: #b9b8b8;
  --background2:rgb(219, 215, 215);
}

body {
  font-family: "Tomorrow", sans-serif;
  color: var(--text-primary);
  background: #050816;
  overflow-x: hidden;
  position: relative;
}

/* Luces de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.372), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.285), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(140, 0, 255, 0.301), transparent 30%);
  filter: blur(70px);
  z-index: -1;
}

@keyframes floatBg {
  from {
    transform: translate(0,0) scale(1);
  }
  to {
    transform: translate(-40px,20px) scale(1.2);
  }
}

/* Header corporativo */
header {
  margin-top:1rem;
  background: rgba(47, 43, 43, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  border-radius: 20px;
  z-index: 1000;
  border: 50%;
  z-index: 1000;
  display: flex;
  justify-content:space-around;
  align-items: center;
  transition: box-shadow 0.3s ease;
  padding: 0.5rem 2rem;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


img {
  height: 60px;;
}


/* ===== MENU PRINCIPAL ===== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

/* Links y botón del submenu */
.nav-menu a,
.submenu-btn {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--background);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Hover color */
.nav-menu a:hover,
.submenu-btn:hover {
  color: var(--accent-color);
}

/* Línea inferior animada */
.nav-menu a::after,
.submenu-btn::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--background);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after,
.submenu-btn:hover::after {
  width: 70%;
}

/* ===== SUBMENU ===== */
.submenu {
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--background);
  border-radius: 10px;
  width: 300px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: block !important;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

/* Mostrar submenu */
.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* items */
.submenu li {
  display: block;
  width: 100%;
}

/* Items del submenu */
.submenu li a {
  display: block;
  padding: 12px 18px;
  width: 100%;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

/* Hover submenu */
.submenu li a:hover {
  background: #f5f7fa;
  color: var(--primary-color);
}

/* eliminar linea animada del submenu */
.submenu a::after {
  display: none;
}

.hamburguesa{
   background: none;
   border: none;
   color: #000;
   font-size: 2rem;
   cursor: pointer;
   display: none;
}
/* --- ESTILO PORTALES WEB --- */

.portalweb-hero {
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 120px 80px;
    border-radius: 0 0 50% 0;
  }

/* VIDEO RESPONSIVE */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 clave para que se adapte */
    transform: translate(-50%, -50%);
    z-index: -2;
}

.portalweb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* ajusta intensidad */
    z-index: -1;
}

.portalweb-hero h1 {
    color: var(--background2);
    font-size: 3rem;
    max-width: 800px;
    margin-bottom: 20px;
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.portalweb-hero p {
    color: var(--background2);
    font-size: 1.2rem;
    max-width: 750px;
    line-height: 1.6;
    font-family: "Tomorrow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.portalweb-hero h1 {
  opacity: 0;
  animation: fadeDown 1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
.portalweb-hero p {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}

/* Información general */
.portalweb{
  padding: 5rem 2rem 0 2rem;
  margin: 0;
  max-width: 1500;
  text-align: center;
}

.portalweb h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--background);
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.portalweb p {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
    color: var(--background);
    font-size: 1.1rem;
    text-align: justify;
    font-family: "Tomorrow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.portalweb img{
  max-width: 900px;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
  transition: all 0.3s ease;
}

.portalweb img {
  animation: floatImg 5.5s ease-in-out infinite;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.portalweb img:hover {
  animation-play-state: paused;
  transform: scale(1.03) translateY(-8px);
  filter: drop-shadow(0 24px 44px rgba(28,218,255,0.22));
}


/* Tarjetas */
.portal-card{
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portalweb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pw-card {
    background: transparent;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.pw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.pw-card h3 {
    color: var(--background);
    margin-bottom: 0.5rem;
    font-family: "Iceland", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.pw-card p {
    color: var(--background);
    font-family: "Tomorrow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.pw-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
/* Línea teal inferior */
.pw-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent-color);
  transition: width 0.45s ease;
  border-radius: 0 0 15px 15px;
}
.pw-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,0.10);
  border-color: var(--border-color);
  background: var(--light-gray);
}
.pw-card:hover::after { width: 100%; }
.pw-card h3 {
  transition: color 0.3s ease;
}
.pw-card:hover h3 {
  color: var(--accent-color);
}

.pw-card:hover p{
  color: var(--primary-color);
}


/* CTA */
.portalweb-cta {
  text-align: center;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

.portalweb-cta img{
  flex: 1;
  width: 100%;
  height: auto;
}

.Info-cta h2 {
  font-size: 2.5rem;
  color: var(--background);
  text-align: center;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  max-width: 600px;
}

.Info-cta p {
  margin: 1rem 0 2rem;
  color: var(--background);
  font-size: 1.1rem;
  font-family: "Tomorrow", sans-serif;
  font-weight: 300;
  font-style: normal;
  max-width: 600px;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-cta:hover {
    background: var(--accent-color);
}

.portalweb-cta img {
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s ease;
  animation: floatImg 6s ease-in-out 1s infinite;
}
.portalweb-cta img:hover {
  animation-play-state: paused;
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 18px 36px rgba(28,218,255,0.2));
}

.btn-cta {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
  animation: tealPulse 3s ease-in-out infinite;

}
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: shimmer 2.6s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 35px rgba(28,218,255,0.35);
  animation: none;
}


/* Beneficios */
.portalweb-benefits {
    background: var(--background);
    padding: 5rem 2rem;
}

.portalweb-benefits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.benefits-list {
    list-style: none;
    max-width: 900px;
    margin: auto;
    padding: 0;
    font-family: "Tomorrow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.benefits-list li {
    background: var(--background2);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.benefits-list li {
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s ease, background 0.3s ease;
  border-left: 3px solid transparent;
}
.benefits-list li:hover {
  border-left-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(28,218,255,0.1);
  transform: translateX(6px);
  background: #f0fdff;
}


/* PREGUNTAS FRECUENTES */
.portal-cuestion{
  padding: 5rem 2rem;
  margin: 0;
  max-width: 1500;
  align-items: center;
  background: var(--background);
}

.cuestion-content {
  margin-bottom: 4rem;
  max-width: 1500px;
  margin: 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cuestion-content h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.content-lista {
  flex: 1;
}

/* CONTENEDOR */
.content-lista {
  max-width: 1200px;
  margin: auto;
}

/* TITULO */
.content-lista h3 {
  margin-bottom: 20px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CARD */
details {
  border: 1px solid var(--border-color);
  overflow: hidden;
  line-height: 1.3rem;
  text-align: left;
  padding-left: 15px;

}

/* PREGUNTA */
summary {
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  list-style: none;
  position: relative;
}

/* QUITAR FLECHA DEFAULT */
summary::-webkit-details-marker {
  display: none;
}

/* ICONO */
summary::after {
  content: "▼";
  position:absolute;
  left: 0;
  color:aqua;
  transition: transform 0.3s ease;
  text-align: center;
}

/* ROTACIÓN */
details[open] summary::after {
  transform: rotate(180deg);
}

/* RESPUESTA */
details p {
  padding: 15px 15px;
  margin-bottom: 0;
  font-size: 1rem;
  font-family: "Tomorrow", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: var(--primary-color);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

.cuestion-content img{
  max-width: 600px;
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15% 60% 25% 40%;
}

details {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
}
details[open] {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(28,218,255,0.12);
}
details p {
  animation: fadeUp 0.35s ease forwards;
}
summary {
  transition: color 0.25s ease, padding-left 0.3s ease;
}
details[open] summary {
  color: var(--accent-color);
  padding-left: 28px;
}


/* Footer corporativo */
.footer {
  color: var(--background);
  padding: 3rem 2rem 2rem;
  font-family: "Tomorrow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  opacity: 0.9;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.footer-col p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--background);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
  opacity: 1; /* Ajustado para mejor visibilidad */
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
   font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--background);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-col ul li a {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--accent-color);
  opacity: 1;
  padding-left: 5px;
}
.footer-col ul li a:hover::after { width: 100%; }

.social-links a {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  background: rgba(28,218,255,0.1);
  border-color: rgba(28,218,255,0.4);
  transform: translateX(6px);
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-65px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(65px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.75) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wipeLeft {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0% 0 0); }
}
@keyframes dropCard {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0px); }
  40%       { transform: translateY(-10px); }
  70%       { transform: translateY(-5px); }
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}
@keyframes tealPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28,218,255,0.35); }
  50%       { box-shadow: 0 0 22px 6px rgba(28,218,255,0.07); }
}
@keyframes listSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Estados iniciales ── */
.anim-up, .anim-down, .anim-left, .anim-right,
.anim-pop, .anim-wipe, .anim-drop, .anim-list {
  opacity: 0;
  will-change: opacity, transform;
}
.anim-up    { transform: translateY(50px); }
.anim-down  { transform: translateY(-40px); }
.anim-left  { transform: translateX(-65px); }
.anim-right { transform: translateX(65px); }
.anim-pop   { transform: scale(0.75) translateY(30px); }
.anim-drop  { transform: translateY(-30px) scale(0.95); }
.anim-list  { transform: translateX(-30px); }
.anim-wipe  { clip-path: inset(0 100% 0 0); opacity: 1; }

/* ── Disparar al entrar ── */
.anim-up.visible    { animation: fadeUp    0.8s  cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-down.visible  { animation: fadeDown  0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-left.visible  { animation: fadeLeft  0.85s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-right.visible { animation: fadeRight 0.85s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-pop.visible   { animation: popIn     0.75s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-wipe.visible  { animation: wipeLeft  0.95s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-drop.visible  { animation: dropCard  0.7s  cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-list.visible  { animation: listSlide 0.65s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ── Delays ── */
.d1 { animation-delay: 0.08s !important; }
.d2 { animation-delay: 0.17s !important; }
.d3 { animation-delay: 0.26s !important; }
.d4 { animation-delay: 0.35s !important; }
.d5 { animation-delay: 0.44s !important; }
.d6 { animation-delay: 0.53s !important; }


/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* --- TABLETS Y IPADS (max-width: 1024px) --- */
@media (max-width: 1024px) {
     header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
  }

  header img {
    height: 80px;
  }

}

/* --- MOVILES (max-width: 768px) --- */
@media (max-width: 768px) {
    
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

   header img {
    width: auto;
    height: 60px;
  }


 .hamburguesa {
    display: block;
 }

  /* Menú oculto inicialmente */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: circle(0px at 90% -10%);
    pointer-events: none;
  }

  .nav-menu a{
    font-size: 1.2rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .submenu-btn{
    color: var(--white);
  }

  .nav-menu.active{
    clip-path: circle(1000px at 90% -10%);
    pointer-events: all;
  }

  .nav-menu li{
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li{
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu li:nth-child(1) {transition: 0.1s;}
  .nav-menu li:nth-child(2) {transition: 0.2s;}
  .nav-menu li:nth-child(3) {transition: 0.3s;}
  .nav-menu li:nth-child(4) {transition: 0.4s;}


  .portalweb-hero{
    height: 100vh;
    padding: 1rem;
  }

  .portalweb-hero h1{
    font-size: 1.8rem;
  }

  .portalweb-hero p{
    font-size: 1rem;
  }

  .cuestion-content img{
    display: none;
  }

  .portalweb-cta {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

/* ESCONDER BOTÓN EN ESCRITORIO */
@media (min-width: 769px) {
  /* Menú horizontal */
  .nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

/* Ocultar retroceder */
  .back-button {
    display: none;
  }

  .portalweb-hero {
    min-height: 80%;
  }
}