
    /*=========================================
    =            VARIABLES Y RESET            =
    =========================================*/
    
    :root {
      --color-blanco: #ffffff;
      --color-negro: #031716;
      --color-primario: #00161a;
      --color-primario-hover: #0A7075;
      --color-secundario: #032F30;
      --color-acento: #6BA3BE;
      --color-boton: #274D60;
      --color-gris-suave: #F5F5F5;
      --color-texto-card: #333;
      --color-borde-input: #ccc;
      --color-hover-servicio: #eafaf1;
      --color-card: #E6FBFC;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: all 0.3s ease-in-out;
    }
    
    html {
      height: 100%;
      -webkit-text-size-adjust: 100%;
      -webkit-tap-highlight-color: rgba(0,0,0,0);
      scroll-behavior: smooth;
    }
    
    body {
      min-height: 100vh;         /* asegura que ocupe toda la pantalla */
      display: flex;
      flex-direction: column;
      font-family: 'Montserrat', sans-serif;
      background-color: var(--color-blanco);
      color: var(--color-negro);
      line-height: 1.6;
        background-attachment: fixed;
        background-size: cover;
    }
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        background: #f9f9f9; /* o el color/fondo que uses en tu app */
        overscroll-behavior: contain; /* evita rebotes en iOS/Android */
         overflow-x: hidden;
    }
    
    

    
    a:focus-visible,
    button:focus-visible {
      outline-width: 2px;
      outline-offset: var(--outline-offset, 3px);
      outline-color: var(--theme-palette-color-2);
    }
    
    img {
      height: auto;
      max-width: 100%;
      vertical-align: middle;
    }
    
    .contenido-principal {
      flex: 1;  /* ocupa todo el espacio disponible */
      display: flex;
      flex-direction: column;
    }
    
    a {
      text-decoration: none;
      color: inherit;
    }

    section {
      scroll-margin-top: 80px;
      padding: 20px 40px;
    }
    
    section:nth-child(even) {
      background-color: transparent;
      position: relative;
      z-index: 1;
    }
    
        #inicio {
      background-color: var(--color-primario);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding-bottom: 75px; /* eliminamos espacio extra inferior */
    }
    
      /*=========================================
    =            ESTRUTURA BASE DE LA WEB         =
    =========================================*/

     /* Fondo gris de toda la pantalla */
    .fondo-gris {
      display: flex;
      justify-content: center;
      align-items: flex-start; /* o center si quieres todo centrado verticalmente */
      padding: 40px 20px; /* espacio exterior */
      box-sizing: border-box;
        background: linear-gradient(
            135deg,
            #000000 0%,   /* esquina superior izquierda */
            #032F30 40%,  /* transición intermedia */
            #000000 100%  /* esquina inferior derecha */
          );
      padding-bottom: 0px;
      /*background: var(--color-primario-hover);*/
    }
    
    /* Contenedor del contenido en blanco */
    .contenedor {
      width: 90%;
      border-radius: 12px; /* bordes redondeados, opcional */
      box-sizing: border-box;
      /* Solo esquinas superiores redondeadas */
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
      min-height: 95.6vh;
      /* Línea blanca solo arriba y lados */
      border-top: 2px solid rgba(255, 255, 255, 0.6);
      border-left: 2px solid rgba(255, 255, 255, 0.6);
      border-right: 2px solid rgba(255, 255, 255, 0.6);
    }
    
    @media screen and (max-width: 768px) {
      .contenedor {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none; /* quita todos los bordes (línea blanca) en móvil */
      }
    
      .fondo-gris {
        padding: 0; /* elimina el espacio exterior en móvil */
      }
    }

    /*=========================================
    =            TOP BAR & HEADER             =
    =========================================*/
    
    .top-bar {
      background-color: var(--color-primario);
      color: white;
      text-align: center;
      padding: 10px 0;
      font-size: 14px;
    }
    
    header {
      background-color: var(--color-secundario);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 40px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      position: sticky;
      top: 0;
      z-index: 1000;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }
    
    .logo {
      font-size: 28px;
      font-weight: 900;
      font-style: italic;
      display: inline-block;
      white-space: nowrap;
    }
    
    .logo-fitifi {
      color: var(--color-primario-hover);
    }
    
    .logo-cafd {
      color: var(--color-blanco);
    }
    
    @media screen and (max-width: 768px) {
      header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
      }
    }

    /*=============
    =  NAVIGATION =
    =============*/
    
    nav {
      display: none;
      flex-direction: column;
      background-color: var(--color-secundario);
      position: absolute;
      top: 80px;
      right: 40px;
      border-radius: 10px;
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    
    nav a {
      padding: 15px 20px;
      font-weight: 600;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav a:hover {
      box-shadow: 0 0 10px var(--color-primario-hover);
    }
    
    i.menu-toggle {
      font-size: 24px;
      cursor: pointer;
      display: none !important;
    }
    
    .nav-open nav {
      display: flex;
      max-height: 500px;
      opacity: 1;
    }
    
    nav.hide-up {
      animation: slideUp 0.4s forwards;
    }
    
    
    @media (max-width: 427px) {
        i.menu-toggle {
            display: inline-block !important;
        }
    }
    
    /* NAV ESCRITORIO */
    @media(min-width: 427px) {
      header nav {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible;
      }
    
      nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        background-color: transparent;
      }
    
      nav a {
        margin-left: 25px;
        border: none;
        padding: 0;
        position: relative;
        padding: 0.75rem;
        border-radius: 2rem ;
      }
    
      nav a::after {
        content: "";
        display: block;
        width: 0%;
        height: 2px;
        background: var(--color-acento);
        transition: width 0.3s;
        position: absolute;
        bottom: -5px;
        left: 0;
      }
    
      nav a:hover::after {
        width: 100%;
      }
    }
    
    /*===================
    =     HERO / HEX    =
    ===================*/
    /* =========================
       Hero general y texto
    ========================= */
    .hero {
      display: flex;
      justify-content: center;
      align-items: center;
      /*padding: 100px 20px;*/
      background-color: var(--color-primari);
      box-sizing: border-box;
    }
    
    .hero-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      gap: 40px;
    }
    
    .hero-texto {
      width: 40%; /* Esto sí limita al 50% exacto */
      padding-left: 2rem;
      text-align: left;
      box-sizing: border-box;
      z-index: 2;
    }
    
    .hero-imagen {
      width: 55%; /* para que sea del mismo tamaño que el texto */
      max-height: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .hero-imagen img {
      max-width: 400px;
      height: auto;
      max-height: 400px;
      object-fit: contain;
    }
    
    @media screen and (max-width:768px){
        .hero{
            padding: 40px 0px;
        }
        
        .hero-content{
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .hero-texto, .hero-imagen{
            width: 90%;
        }
        
        .hero-texto{
            padding: 0;
        }
        
        .hero-texto h1{
            font-size: 2rem;
        }
        
        .hero .dashboard-card{
            width: 95%;
        }
    
        /* Ajuste de la imagen en móvil */
        .hero-imagen img {
            max-width: 250px;  /* más pequeña que en escritorio */
            height: auto;
            max-height: 250px;
        }
    }


    
    /* Título principal con efecto neón */
    .titulo-principal {
      font-size: 6rem;
      color: white;
      margin-top: 40px;
      margin-bottom: 20px;
      font-weight: 700;
      position: relative;
      z-index: 5;
      text-transform: uppercase;
      text-shadow:
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
      text-align: center;
      padding: 0 10px;
      word-break: break-word;
    }
    
    @media (max-width: 768px) {
      .titulo-principal {
        font-size: 3rem;
        margin-top: 15px; /* Menor margen superior en móvil */
        margin-bottom: 15px;
      }
    }
    
    @media (max-width: 480px) {
      .titulo-principal {
        font-size: 2.2rem;
        margin-top: 10px;
      }
    }


    
    /* Subtítulo */
    .descripcion-principal {
      font-size: 1.3rem;
      color: white;
      padding-left: 7rem;
      margin-top: 10px;
      margin-bottom: 10px;
      z-index: 2; /* Menor que elementos como el título */
      text-align: left;
      position: relative; /* Asegura que respete el flujo normal del contenido */
      max-width: 100%;
    }
    
    /* Responsivo para tablets y móviles */
    @media (max-width: 768px) {
      .descripcion-principal {
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
        font-size: 1.1rem;
      }
    }
    
    @media (max-width: 480px) {
      .descripcion-principal {
        font-size: 1rem;
      }
    }

    .intro-proyecto {
      background-color: #111; /* Fondo oscuro */
      color: #fff;
      text-align: center;
      padding: 50px 20px;
    }
    
    .intro-proyecto .titulo-principal {
      font-size: 3rem;
      font-weight: 700;
      color: #00d68f;
      text-transform: uppercase;
      margin-bottom: 20px;
      text-shadow:
        0 0 5px #00d68f,
        0 0 10px #00d68f,
        0 0 20px rgba(0, 214, 143, 0.6);
    }
    
    .intro-proyecto .descripcion-proyecto {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.6;
      color: #ccc;
      margin-bottom: 10px;
    }


    /* ========================= */
    /* SECCIÓN BENEFICIOS */
    /* ========================= */
    
    .beneficios-section {
      color: #fff;
      text-align: center;
    }
    
    .beneficios-section .titulo-seccion {
      font-size: 3rem;
      margin-bottom: 40px;
      color: #ffffff;
      font-weight: 600;
      text-transform: uppercase;
      text-align: center;
      position: relative;
    
      text-shadow:
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
    }

    
    /* ========================= */
    /* CONTENEDOR TARJETAS */
    /* ========================= */
    
    .tarjetas-container {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
    }
    
    /* ========================= */
    /* TARJETA */
    /* ========================= */
    
    .tarjeta {
      background-color: #1c1c1c;                 /* Fondo igual */
      width: 300px;
      border-radius: 18px;
      border: 1px solid #00d68f;                 /* Borde destacado */
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      text-align: center;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    
    /* Hover consistente con dashboard-card */
    .tarjeta:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }
    
    /* ========================= */
    /* IMAGEN */
    /* ========================= */
    
    .tarjeta img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }
    
    /* ========================= */
    /* KEYWORDS */
    /* ========================= */
    
    .keywords {
      background: #00d68f;
      color: #111;
      font-weight: bold;
      padding: 8px 0;
      text-transform: uppercase;
      font-size: 0.85rem;
      width: 100%;
    }
    
    /* ========================= */
    /* TEXTO */
    /* ========================= */
    
    .tarjeta h3 {
      font-size: 1.5rem;
      margin: 20px 15px 10px;
      color: #fff;
    }
    
    .tarjeta p {
      padding: 0 20px 25px;
      font-size: 1rem;
      color: #ccc;
    }

    
    /* ========================= */
    /* ADAPTACIÓN MÓVIL */
    /* ========================= */
    
    @media (max-width: 768px) {
    
      .beneficios-section {
        padding: 50px 15px;
      }
    
      .beneficios-section .titulo-seccion {
        font-size: 1.6rem;
        margin-bottom: 30px;
      }
    
      .tarjetas-container {
        gap: 20px;
      }
    
      .tarjeta {
        width: 100%;
        max-width: 360px;
      }
    
    .tarjeta img {
        height: 180px;            /* Ajuste móvil */
      }
    
      .tarjeta h3 {
        font-size: 1.3rem;
        margin: 15px 0 8px;
      }
    
      .tarjeta p {
        font-size: 0.95rem;
        padding: 0 15px 20px;
      }
    
      .keywords {
        font-size: 0.75rem;
        padding: 6px 0;
      }
    
      /* Quitar hover en móvil */
      .tarjeta:hover {
        transform: none;
        box-shadow: none;
      }
    }
    
    /* ========================= */
    /* MÓVILES PEQUEÑOS */
    /* ========================= */
    
    @media (max-width: 480px) {
    
      .beneficios-section .titulo-seccion {
        font-size: 1.4rem;
      }
    
      .tarjeta h3 {
        font-size: 1.2rem;
      }
    
      .tarjeta p {
        font-size: 0.9rem;
      }
    }


    /* =========================
       Contenedor y tarjetas
       ========================= */
    
    .dashboard-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center; /* Centra elementos también en filas incompletas */
      gap: 40px;
      padding: 40px 20px;
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

        .dashboard-card {
      background-color: var(--color-secundario);
      width: 300px;
      padding: 30px 25px;
      border-radius: 18px;
      border: 1px solid #63E5C5; /* ✅ borde color destacado */
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      text-align: center;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .dashboard-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 12px 28px rgba(0, 255, 255, 0.3);
    }
    
    .icon-container {
      width: 90px;
      height: 90px;
      margin-bottom: 20px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .icon-container img {
      width: 60%;
      height: auto;
    }
    
    .dashboard-card h3 {
      font-size: 1.3rem;
      margin-bottom: 12px;
    }
    
    .dashboard-card p {
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    
    .dashboard-button {
      padding: 10px 22px;
      background: transparent;
      border: 2px solid var(--color-acento);
      border-radius: 22px;
      color: var(--color-acento);
      font-weight: bold;
      font-size: 0.9rem;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    
    .dashboard-button:hover {
      background: var(--color-acento);
      color: white;
    }
    
    /*---------------------*/
    /* LLAMADA A LA ACCION */
    /*---------------------*/
    
    .cta-slider-full {
      position: relative;
      margin: 0;
      padding: 0;
      overflow: hidden;
      left: 50%;
      right: 50%;
      transform: translateX(-50%);
      border-bottom: 1px solid white;
      z-index: 5;
    }
    
    .slider-container-full {
      display: flex;
      transition: transform 0.6s ease;
    }
    
   /* Contenedor de cada slide */
    .slide-full {
      flex: 0 0 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start; /* textos a la izquierda */
      padding: 60px 80px; /* antes: 60px 20px -> añadimos más espacio lateral */
      box-sizing: border-box;
      text-align: left;
      background-size: cover;
      background-position: center;
    }
    
    /* Limitar el ancho del bloque de texto dentro del slide */
    .slide-full > * {
      max-width: 60%; /* evita que el texto se extienda hasta las flechas */
    }

    
    .slide-full h2 {
      font-size: 2.2rem;
      margin-bottom: 1rem;
      color: #fff;
      margin-left: 10px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .slide-full p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
      color: #fff;
      margin-left: 10px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
        /* Dashboard button general */
    .dashboard-button {
      display: inline-block;
      background-color: var(--color-boton);
      color: white;
      padding: 14px 32px;
      border-radius: 30px;
      font-weight: bold;
      transition: transform 0.3s, background-color 0.3s;
      animation: pulse 2s infinite;
      margin-left: 10px;
      text-decoration: none;
    }
    
    .dashboard-button:hover {
      background-color: var(--color-primario-hover);
      transform: scale(1.05);
    }
    
    /* Dashboard button especial suplementación */
    .dashboard-button-suple {
      display: inline-block;
      background-color: var(--color-boton);
      color: white;
      padding: 14px 32px;
      border-radius: 30px;
      font-weight: bold;
      transition: transform 0.3s, background-color 0.3s;
      animation: none; /* quitamos animación pulse solo en este botón */
      margin-left: 10px;
      text-decoration: none;
    }
    .dashboard-button-suple:hover {
      background-color: var(--color-primario-hover);
      transform: scale(1.05);
    }

    
    /* Flechas */
    .slider-controls-full {
      position: absolute;
      top: 50%;
      width: 100%;
      max-width: 97%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      display: flex;
      justify-content: space-between;
    }
    
    .slider-arrow-full {
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      font-size: 2.5rem;
      cursor: pointer;
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 50%;
      line-height: 1;
      padding: 0;
      transition: background 0.3s;
    }
    
    .slider-arrow-full:hover {
      background: rgba(255, 255, 255, 0.4);
    }
    
    .slide-content {
      max-width: 600px;       /* limita el ancho del bloque de texto */
      width: 100%;
    }
    
   .highlight-fitificafd {
      font-weight: 900;
      color: #ffffff; /* verde brillante */
     text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
      letter-spacing: 2px;
      background: linear-gradient(90deg, #00ff88, #00ffd5, #00ff88);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shine 3s infinite linear;
    }
    
    @keyframes shine {
      0% { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }
    
     @media (max-width: 768px) {
      .slide-full {
        padding: 40px 30px; /* más estrecho en móvil */
      }
    
      .slide-full > * {
        max-width: 100%;
      }
    
      .slide-full h2 {
        font-size: 1.6rem;
      }
    
      .slide-full p {
        font-size: 1rem;
      }
    
      .dashboard-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
      }
    }
    /*-----------------------------------------*/
    /* ==== Modal Redes Sociales Mejorado ==== */
    /*-----------------------------------------*/
    .modal-redes {
      display: none;
      position: fixed;
      z-index: 9999;
      inset: 0;
      background: radial-gradient(circle at center, rgba(0,255,128,0.15), rgba(0,0,0,0.95));
      justify-content: center;
      align-items: center;
      animation: fondoBrillo 5s infinite alternate;
    }
    
    @keyframes fondoBrillo {
      from {background-color: rgba(0,0,0,0.95);}
      to {background-color: rgba(0,255,128,0.15);}
    }
    
    .modal-contenido-redes {
      background: linear-gradient(180deg, #0a0a0a, #111);
      border: 2px solid rgba(0,255,128,0.6);
      border-radius: 25px;
      padding: 40px 50px;
      text-align: center;
      color: #fff;
      box-shadow: 0 0 30px rgba(0,255,128,0.4);
      width: 90%;
      max-width: 420px;
      position: relative;
      animation: zoomIn 0.6s ease;
    }
    
    @keyframes zoomIn {
      from {transform: scale(0.8); opacity: 0;}
      to {transform: scale(1); opacity: 1;}
    }
    
    .logo-redes {
      width: 90px;
      margin-bottom: 15px;
      animation: resplandor 2s infinite alternate;
    }
    
    @keyframes resplandor {
      from {filter: drop-shadow(0 0 5px #00ff80);}
      to {filter: drop-shadow(0 0 20px #00ff80);}
    }
    
    .cerrar-redes {
      position: absolute;
      top: 12px;
      right: 18px;
      font-size: 28px;
      color: #fff;
      cursor: pointer;
      transition: color 0.3s;
    }
    .cerrar-redes:hover {
      color: #00ff80;
    }
    
    .modal-contenido-redes h2 {
      margin-top: 0;
      font-size: 26px;
      color: #00ff80;
      text-shadow: 0 0 10px #00ff80;
    }
    
    .modal-contenido-redes p {
      font-size: 16px;
      color: #ddd;
      margin-bottom: 25px;
    }
    
    .botones-redes {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
    }
    
    .btn-red {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #222;
      padding: 12px 22px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      color: #fff;
      transition: all 0.3s ease;
      border: 1px solid rgba(255,255,255,0.1);
    }
    
    .btn-red i {
      font-size: 18px;
    }
    
    .btn-red:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 0 15px rgba(0,255,128,0.5);
    }
    
    /* Colores por red */
    .btn-red.ig {background: linear-gradient(45deg, #fd1d1d, #833ab4);}
    .btn-red.tiktok {background: linear-gradient(45deg, #25F4EE, #FE2C55);}
    .btn-red.web {background: linear-gradient(45deg, #00ff80, #00cc66); color:#000;}
    .btn-red.linkedin {background: linear-gradient(45deg, #0077b5, #00a0dc);}
    .btn-red.threads {background: linear-gradient(45deg, #111, #000);}




    /*===================
    =     BOTONES       =
    ===================*/
    
    .btn {
      display: inline-block;
      background-color: var(--color-boton);
      color: white;
      padding: 14px 32px;
      border-radius: 30px;
      font-weight: bold;
      transition: transform 0.3s, background-color 0.3s;
      animation: pulse 2s infinite;
    }
    
    .btn:hover {
      background-color: var(--color-primario-hover);
      transform: scale(1.05);
    }
    
    
    /*===================
    =    SOBRE MÍ       =
    ===================*/
   /* === Perfiles dentro del cajón de contacto === */
    .perfiles-container {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      margin-bottom: 60px;
      align-items: flex-start;
      padding: 0 20px;
      transition: all 0.3s ease;
      z-index: 1;
    }
    
    /* Triángulos decorativos con degradado */
    .perfiles-container::before,
    .perfiles-container::after {
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 180px;            /* ancho base del triángulo */
      height: 600px;            /* alto total (300px hacia arriba + 300px hacia abajo) */
      opacity: 0.25;            /* un poco más visibles que antes */
      z-index: 0;
      pointer-events: none;
      clip-path: polygon(0 50%, 100% 0, 100% 100%); /* triángulo apuntando hacia dentro */
    }
    
    /* Triángulo izquierdo con degradado exterior → interior */
    .perfiles-container::before {
      left: 0;
      background: linear-gradient(to right, rgba(50,255,126,0) 0%, rgba(50,255,126,1) 100%);
    }
    
    /* Triángulo derecho con degradado exterior → interior */
    .perfiles-container::after {
      right: 0;
      transform: translateY(-50%) scaleX(-1); /* espejado horizontalmente */
      background: linear-gradient(to right, rgba(0,230,118,0) 0%, rgba(0,230,118,1) 100%);
    }
    
    .perfiles-container::before {
      left: 0; /* pegado al borde izquierdo */
      border-width: 300px 0 300px 180px; /* base ahora hacia adentro */
      border-color: transparent transparent transparent #32ff7e;
    }
    
    .perfiles-container::after {
      right: 0; /* pegado al borde derecho */
      border-width: 300px 180px 300px 0; /* base ahora hacia adentro */
      border-color: transparent #00e676 transparent transparent;
    }
    
    /* Responsive: en pantallas pequeñas quitamos los triángulos */
    @media (max-width: 768px) {
      .perfiles-container::before,
      .perfiles-container::after {
        display: none;
      }
    }

    /***********************/
    /* SECCION ANUNCIO MOVIL */
    /***********************/
    
    .app-section {
      width: 100%;
      padding: 80px 10%;
      background: #0f172a; /* fondo oscuro profesional */
    }
    
    .app-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 60px;
    }
    
    /* TEXTO */
    .app-text {
      flex: 1;
      color: #e5e7eb;
    }
    
    .app-text h2 {
      font-size: 2.4rem;
      margin-bottom: 20px;
      color: #ffffff;
    }
    
    .app-text p {
      font-size: 1.05rem;
      line-height: 1.7;
      margin-bottom: 15px;
      color: #cbd5f5;
    }
    
    /* MOCKUP MÓVIL */
    .app-mockup {
      flex: 1;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    /* RESPLANDOR */
    .app-mockup .glow {
      position: absolute;
      width: 320px;
      height: 560px;
      background: radial-gradient(
        circle,
        rgba(34,197,94,0.35) 0%,
        rgba(34,197,94,0.15) 40%,
        rgba(34,197,94,0.05) 60%,
        transparent 70%
      );
      filter: blur(30px);
      z-index: 1;
    }
    
    /* MARCO DEL MÓVIL */
    .phone-frame {
      position: relative;
      width: 260px;
      height: 520px; /* ALTURA REDUCIDA */
      background: #000;
      border-radius: 36px;
      padding: 14px;
      box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px #1f2937;
      z-index: 2;
    }
    
    /* IMAGEN DENTRO DEL MÓVIL */
    .phone-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 26px;
    }
    
    /* NOTCH SUPERIOR */
    .phone-frame .notch {
      position: absolute;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 10px;
      background: #000;
      border-radius: 20px;
      z-index: 3;
    }
    
    /* RESPONSIVE */
    @media (max-width: 900px) {
      .app-container {
        flex-direction: column;
        text-align: center;
      }
    
      .phone-frame {
        width: 230px;
        height: 460px;
      }
    
      .app-mockup .glow {
        width: 280px;
        height: 500px;
      }
    
      .app-text h2 {
        font-size: 2rem;
      }
    }

    
    /* === Cards de perfil más anchas === */
   .perfil-card {
      position: relative;
      z-index: 10; /* encima de los triángulos, debajo del modal */
      background: var(--color-card);
      padding: 25px;
      border-radius: 18px;
      text-align: center;
      width: 460px;
      max-width: 95%;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow: hidden;
    }

    
    .perfil-card::before {
      content: '';
      position: absolute;
      inset: -50%; /* Que cubra alrededor */
      border-radius: 50%;
      background: conic-gradient(
                  from 0deg,
                  #00e676 0deg 25deg,
                  transparent 25deg 180deg,
                  #32ff7e 180deg 205deg,
                  transparent 205deg 360deg
                );


      animation: rotateBorder 6s linear infinite;
    }
    
    @keyframes rotateBorder {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    .perfil-card::after {
      content: "";
      position: absolute;
      inset: 5px;
      background: var(--color-card);
      border-radius: 18px;
    }
    
    .perfil-card img,
    .perfil-card h3,
    .perfil-card p {
      position: relative;
      z-index: 2;
    }
    
    .perfil-card img {   
      height: 400px;       /* mantiene proporción */
      border-radius: 12px;
      margin-bottom: 15px;
      object-fit: contain;
    }
    
    .perfil-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 30px rgba(0, 255, 191, 0.3);
    }
    
    @media (max-width: 768px) {
      .perfil-card {
        width: 90%;
        max-width: none;
      }
    }

    /* === Estilos del modal === */
    /* === Fondo del modal === */
    .perfil-modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 99999; /* suficiente para estar encima de todo */
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    
    /* === Caja del contenido === */
    .modal-content {
      background: #ffffff;
      color: #333;
      max-width: 800px;
      width: 100%;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.4);
      padding: 25px;
      position: relative;
      animation: fadeIn 0.3s ease-in-out;
      overflow-y: auto;
      max-height: 90vh;
    }
    
    /* Animación suave al abrir */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* === Botón cerrar === */
    .cerrar {
      position: absolute;
      top: 15px; right: 20px;
      font-size: 28px;
      cursor: pointer;
      color: #666;
      transition: color 0.3s ease;
    }
    .cerrar:hover {
      color: var(--color-primario);
    }
    
    /* === Header profesional del modal === */
    .modal-header {
      display: flex;
      align-items: center;
      gap: 20px;                 /* separación entre imagen y texto */
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* línea suave */
      background: transparent;   /* transparente para integrarse con el modal */
      justify-content: flex-start; /* título a la izquierda */
    }
    
    /* Imagen del perfil */
    .modal-imagen img {
      width: 140px;   /* más grande que antes */
      height: 140px;  /* más grande que antes */
      border-radius: 50%;        /* imagen circular profesional */
      object-fit: cover;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* sombra elegante */
      transition: transform 0.3s ease;
    }
    
    /* Hover imagen */
    .modal-imagen img:hover {
      transform: scale(1.05);
    }
    
    /* Título y subtítulo */
    .modal-titulo h2 {
      margin: 0;
      font-size: 2rem;
      font-weight: 700;
      color: var(--color-blanco);
      text-align: left;   /* alineación izquierda en escritorio */
    }
    
    .modal-titulo h4 {
      margin: 5px 0 0;
      font-weight: 400;
      color: #ccc;        /* subtítulo más suave */
      font-size: 1rem;
      text-align: left;   /* alineación izquierda en escritorio */
    }
    
    /* Responsive: en móviles */
    @media (max-width: 768px) {
      .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
      }
    
      .modal-imagen {
        display: none;          /* ocultar imagen en móvil */
      }
    
      .modal-titulo h2 {
        font-size: 1.6rem;
        text-align: center;     /* título centrado en móvil */
      }
    
      .modal-titulo h4 {
        font-size: 0.95rem;
        text-align: center;     /* subtítulo centrado en móvil */
      }
    }



    
    /* === Enlaces de proyectos === */
    .proyectos-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 15px;
    }
    
    .btn-proyecto {
      background: var(--color-primario);
      color: white;
      padding: 10px 16px;
      border-radius: 10px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s ease;
    }
    .btn-proyecto:hover {
      background: #00ffbf;
      color: var(--color-primario);
      transform: translateY(-3px);
    }
    
    /* === Responsive (en móvil ocultamos la imagen) === */
    @media (max-width: 768px) {
      .modal-header {
        flex-direction: column;
        align-items: flex-start;
      }
      .modal-imagen {
        display: none;
      }
      .modal-titulo h2 {
        font-size: 1.5em;
      }
    }

    /*=====================
    =     SECCIONES       =
    =====================*/
    
    .section-title {
      font-size: 36px;
      margin-bottom: 20px;
      text-align: center;
      position: relative;
      z-index: 3;
    }

        .section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      margin: 10px auto 0;
      background-color: white;
      animation: growBar 1s ease-out forwards;
    }
    
    .section-subtitle {
      color: var(--color-primario-hover) !important;
      font-weight: bold;
      margin-bottom: 30px;
      text-align: center;
      z-index: 3;
    }
    
    .centered-text {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }
    
    
    /* SERVICIOS */
    
    #servicios p,
    #servicios .section-title {
      color: white;
    }
    
    #servicios .card,
    #servicios .card p {
      color: black;
    }
    
    #servicios .card {
      border-left: 6px solid var(--color-primario-hover);
    }
    
    /* Fondo sección servicios */
    #servicios {
      position: relative;
      padding: 80px 20px;
      background: radial-gradient(circle at top left, #0d3d3f 0%, var(--color-primario) 60%, #061a1a 100%);
      overflow: hidden;
      z-index: 1;
    }
    
    /* Patrón geométrico suave */
    #servicios::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 1px, transparent 1px),
                        linear-gradient(-45deg, rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 40px 40px;
      z-index: 0;
      opacity: 0.3;
    }
    
    /* Títulos y texto */
    #servicios .section-title {
      color: #fff;
      text-align: center;
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 40px;
      position: relative;
      z-index: 2;
    }
    
    #servicios p {
      color: #e0e0e0;
      text-align: center;
      max-width: 800px;
      margin: 0 auto 40px auto;
      position: relative;
      z-index: 2;
    }
    
    /* Cards */
    #servicios .card {
      background: #fff;
      border-left: 6px solid var(--color-primario-hover);
      border-radius: 16px;
      padding: 30px 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
      transition: all 0.3s ease;
      position: relative;
      z-index: 2;
    }
    
    #servicios .card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }


    
    /* CONTACTO */
    
    #contacto p,
    #contacto .section-title {
      color: white;
      z-index: 2;
    }
    
    /* REDES */
    
    #redes-sociales p,
    #redes-sociales .section-title {
      color: black;
    }
    
    
    /*=======================
    =     CARDS / GRID      =
    =======================*/
    
    .card {
      position: relative;
      z-index: 1;
    }
    
    .card-img {
      display: block;
      width: 100%;
      height: 250px;
      object-fit: cover;
      border-radius: 16px;
      margin-top: auto;
      margin-bottom: 10px;
    }
    
    .card-meta {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 5px;
      font-style: italic;
    }
    
    .content-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }
    
    .content-grid h3 {
      color: white;
    }

     /* === Tarjetas (cards) === */
        .card {
        background: var(--color-card);
        border-left: 6px solid var(--color-primario-hover);
        border-radius: 16px;
        padding: 28px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transition: all 0.35s ease;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.9s ease-out forwards;
        position: relative;
    }
    
    /* Hover limpio sin sombra animada */
    .card:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 16px 35px rgba(0, 255, 191, 0.2);
        border-left-color: #00ffaa; /* resalta el borde */
    }
    
    /* Animación de entrada */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.4s; }
    .card:nth-child(4) { animation-delay: 0.6s; }
    
    .card h3 {
        margin-bottom: 12px;
        color: var(--color-negro);
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .card p {
        color: var(--color-texto-card);
        line-height: 1.6;
        font-size: 1rem;
    }
    
    /* === Sección Contacto === */
      #contacto {
      background: linear-gradient(135deg, var(--color-primario) 0%, #0d3d3f 100%);
      padding: 80px 20px;
      position: relative;
      overflow: hidden;
    
      /* 🎯 Bordes inferiores redondeados */
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
    
      /* Opcional: si quieres un pequeño borde tipo “contenedor” */
      border-left: 2px solid rgba(255, 255, 255, 0.3);
      border-right: 2px solid rgba(255, 255, 255, 0.3);
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }

    
    /* efecto decorativo de fondo */
    #contacto::before {
      content: "";
      position: absolute;
      top: -50px;
      right: -50px;
      width: 200px;
      height: 200px;
      background: rgba(255,255,255,0.05);
      border-radius: 50%;
      z-index: 1;
    }
    #contacto::after {
      content: "";
      position: absolute;
      bottom: -80px;
      left: -80px;
      width: 300px;
      height: 300px;
      background: rgba(255,255,255,0.05);
      border-radius: 50%;
      z-index: 1;
    }
    
    .contact-form {
      max-width: 650px;
      margin: auto;
      margin-bottom: 20px;
      padding: 40px;
      background-color: var(--color-card);
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      z-index: 2;
    }
    
    .contact-form:hover {
      transform: translateY(-8px) scale(1.01);
      box-shadow: 0 20px 45px rgba(0, 255, 191, 0.25);
    }
    
    .contact-form h2 {
      text-align: center;
      margin-bottom: 25px;
      font-size: 1.8rem;
      color: var(--color-primario);
      font-weight: 700;
    }
    
    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 14px 16px;
      margin-bottom: 18px;
      border: 1px solid var(--color-borde-input);
      border-radius: 10px;
      font-family: inherit;
      background: #fafafa;
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
      transition: all 0.3s;
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--color-primario-hover);
      box-shadow: 0 0 10px rgba(10, 112, 117, 0.4);
      background: #fff;
      transform: scale(1.01);
    }
    
    /* Botón de enviar */
    .contact-form button {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 10px;
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      background: var(--color-primario-hover);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .contact-form button:hover {
      background: var(--color-primario);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 255, 191, 0.3);
    }

    
    /* === Redes sociales === */
    .social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      padding: 20px 0;
      position: relative;
      z-index: 2;
    }
    .social-button {
      background-color: var(--color-boton);
      color: white;
      font-size: 24px;
      width: 50px;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      position: relative;
      z-index: 2;
      transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 4px 10px rgba(0, 186, 193, 0.2);
    }
    .social-button:hover {
      background-color: var(--color-primario-hover);
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0, 186, 193, 0.4);
    }
    .social-button::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      box-shadow: 0 0 12px rgba(107, 163, 190, 0.6);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .social-button:hover::after {
      opacity: 1;
      animation: pulsate-glow 1.5s infinite;
    }
    
    /* === Modal bienvenida === */
    .modal {
      position: fixed;
      z-index: 9999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.5s ease;
    }
    .modal-content {
      background-color: rgba(0, 28, 34, 0.6);
      border: 2px solid rgba(0, 255, 191, 0.3);
      border-radius: 16px;
      padding: 2rem;
      text-align: center;
      color: var(--color-blanco);
      margin-top: 10px;
      margin-bottom: 10px;
      box-shadow:
        0 0 40px rgba(0, 255, 191, 0.5),
        0 0 80px rgba(0, 255, 191, 0.3),
        0 0 160px rgba(0, 255, 191, 0.2);
      backdrop-filter: blur(18px) saturate(180%);
      transition: all 0.4s ease;
    }
    .modal-logo {
      width: 200px;
    }
    
    /* === Ocultar modal en móviles === */
    @media (max-width: 768px) {
      .modal {
        display: none !important;
      }
    }
    
   /*=== Partículas ===*/
    #particles-js {
      position: fixed;
      top: 45px;                /* deja un hueco de 45px arriba */
      left: 50%;                /* centrado horizontal */
      transform: translateX(-50%);
      width: 85%;               /* mantiene margen lateral */
      height: calc(100vh - 45px); /* altura total menos el hueco superior */
      z-index: 0;               /* detrás de todo */
      pointer-events: none;     /* no bloquea clicks */
    }

    /******************/
    /* === Footer === */
    /******************/
    
    footer {
        display: flex;
        width: 100%;
        background-color: var(--color-secundario);
        color: white;
        text-align: center;
        padding: 25px;
        /*font-size: 14px;*/
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    @media screen and (max-width: 768px) {
      footer {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }
    }

    
        /* === Cookie consent === */
    #cookie-consent {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: var(--color-secundario);
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      z-index: 10000;
      display: none;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      animation: slideInUp 0.8s ease-out;
    }
    #cookie-consent button {
      margin-left: 10px;
      background: var(--color-primario-hover);
      color: white;
      border: none;
      padding: 5px 10px;
      cursor: pointer;
      border-radius: 3px;
    }
    
    /* === Hero título animado === */
    .hero-text h1 {
      text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
      animation: glow 2.5s ease-in-out infinite alternate;
    }
    
    /* === Secciones y animaciones === */
    .section-title {
      position: relative;
    }
    .section-title::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      transform: translate(-50%, -50%);
      /*background: radial-gradient(circle, rgba(106,227,255,0.15) 0%, transparent 70%);*/
      border-radius: 50%;
      z-index: 1;
    }
    section h2 {
      color: white;
    }
    
    /* === Botón con efecto de luz === */
    .btn {
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: all 0.4s ease;
    }
    .btn:hover {
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    .btn::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
      animation: shine 4s infinite;
      pointer-events: none;
    }
    
    /* === Alertas === */
    .alert {
      font-weight: bold;
      padding: 10px 15px;
      border-radius: 5px;
      margin-bottom: 15px;
    }
    .alert-success {
      color: #155724;
      background-color: #d4edda;
      border: 1px solid #c3e6cb;
    }
    .alert-error {
      color: #721c24;
      background-color: #f8d7da;
      border: 1px solid #f5c6cb;
    }
    
    /* === Categorías (Livewire) === */
    .categoria-card {
      width: 100%;
      background: var(--color-secundario);
      padding: 2rem;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
      margin-top: 2rem;
      color: white;
    }
    .categoria-title {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    
    /* === Keyframes === */
    @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeInDown { 0% {opacity: 0; transform: translateY(-20px);} 100% {opacity: 1; transform: translateY(0);} }
    @keyframes fadeInUp { 0% {opacity: 0; transform: translateY(20px);} 100% {opacity: 1; transform: translateY(0);} }
    @keyframes slideUp { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-20px); } }
    @keyframes growBar { from { width: 0; opacity: 0; } to { width: 60px; opacity: 1; } }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10,112,117,0.5); } 70% { box-shadow: 0 0 0 15px rgba(10,112,117,0); } 100% { box-shadow: 0 0 0 0 rgba(10,112,117,0); } }
    @keyframes pulsate-glow { 0%, 100% { box-shadow: 0 0 12px rgba(107,163,190,0.6); } 50% { box-shadow: 0 0 20px rgba(107,163,190,1); } }
    @keyframes glow {
      from { text-shadow: 0 0 5px rgba(106,227,255,0.4), 0 0 10px rgba(106,227,255,0.3); }
      to { text-shadow: 0 0 15px rgba(106,227,255,0.7), 0 0 25px rgba(106,227,255,0.5); }
    }
    @keyframes slideInUp {
      from { transform: translateY(100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes shine {
      0% { transform: translate(0, 0); }
      50% { transform: translate(50%, 50%); }
      100% { transform: translate(0, 0); }
    }

/*Select de Livewire*/
    /* Estilos para el contenedor */
    .categoria-card {
        width: 100%;
        background: linear-gradient(145deg, var(--color-secundario), #1c1c1c);
        padding: 2.5rem;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        margin-top: 4rem;
        margin-bottom:4rem;
        color: white;
        transition: all 0.4s ease-in-out;
    }
    
    .categoria-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    }
    
    .categoria-title {
        font-size: 2.4rem;
        font-weight: 800;
        margin-bottom: 2rem;
        text-align: center;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: linear-gradient(90deg,#ffffff , var(--color-primario-hover));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 3px 10px rgba(0,0,0,0.4);
    }

    
    .categoria-grid {
        display: flex;
        flex-wrap: wrap; /* ✅ permite salto de línea */
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    .categoria-grid > * {
        flex: 1 1 200px; /* cada botón ocupa mínimo 200px y se reparte */
        max-width: 250px; /* no se hacen gigantes */
    }


    
    /* Botones */
    .categoria-btn {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        padding: 0.9rem 1.2rem;
        background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
        border: 2px solid var(--color-card);
        border-radius: 14px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.35s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        min-width: 200px;
        color: var(--color-card);
        margin: 0.75rem;
        z-index: 1;
    }
    
    /* Destello blanco */
    .categoria-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
        transform: skewX(-20deg);
        transition: left 0.6s ease;
        z-index: 0;
    }
    
    .categoria-btn:hover::before {
        left: 130%;
    }
    
    /* Hover vistoso */
    .categoria-btn:hover {
        border-color: var(--color-primario-hover);
        color: #fff;
        transform: scale(1.1) translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 255, 150, 0.4);
    }
    
    /* Estado activo */
    .categoria-btn.active {
        border-color: var(--color-primario-hover);
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 255, 150, 0.5);
    }
    
    /* Animación glow sutil */
    .categoria-btn:hover,
    .categoria-btn.active {
        animation: glowPulse 1.5s infinite alternate;
    }
    
    @keyframes glowPulse {
        from {
            box-shadow: 0 0 8px rgba(0, 255, 150, 0.4);
        }
        to {
            box-shadow: 0 0 20px rgba(0, 255, 150, 0.8);
        }
    }



    
    .categoria-heading {
        font-size: 1.4rem;
        margin-top: 2rem;
        color:var(--color-card);
        text-align: center;
    }
    
    .posts-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .post-card {
        background: #fff;
        padding: 1rem;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease;
        margin-top: 20px;
    }
    
    .post-card:hover{
        height: auto;
    }
    
    .post-card:hover {
        transform: translateY(-4px);
    }
    
    
    .posts-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    /* Cada post-card como una doble página */
    .post-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        width: 100%;
    }
    
    /* Meta arriba centrado */
    .post-meta {
        font-size: 0.9rem;
        color: #777;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    /* Contenido como libro */
    .post-cont {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: stretch;
    }
    
    /* Mitades del libro */
    .post-text, .post-img {
        width: 48%;
        padding: 1rem;
        border-radius: 10px;
    }
    .post-text h3{
        margin-bottom: 10px;
    }
    
    .post-img{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Imagen */
    .post-img img {
        width: 95%;
        height: auto;
        border-radius: 8px;
        max-height: 400px;
        object-fit: cover;
    }
    
    /* ---- Paginas para blog izq y der ---- */
    
    
    .posts-grid .post-text {
        background: var(--color-card);
        border-left: 6px solid var(--color-primario-hover);
    }
    /* Impares: fondo rojo en texto (izquierda) */
    /*.posts-grid .post-card:nth-child(odd) .post-text {*/
    /*    background: var(--color-card);*/
    /*    border-left: 6px solid var(--color-primario-hover);*/
    /*}*/
    
    /* Pares: fondo rojo en imagen (derecha) */
    /*.posts-grid .post-card:nth-child(even) .post-img {*/
    /*    background: var(--color-card);*/
    /*    border-right: 6px solid var(--color-primario-hover);*/
    /*}*/
    
      @media screen and (max-width: 768px) {
        .post-cont {
            flex-direction: column;
            gap: 1rem; /* añade espacio entre texto e imagen */
        }
    
        .post-text, .post-img {
            width: 100%;
            padding: 0.5rem; /* menos padding para no forzar tanto */
        }
    
        .post-img img {
            max-height: 250px; /* evita imágenes enormes en móvil */
        }
    
        .post-card {
            padding: 1rem; /* menos relleno para que no ocupe todo el ancho */
        }
    }

    @media screen and (max-width: 768px) {
        .post-card {
            width: 95%;       /* no ocupar todo */
            margin: 10px auto;
            margin-bottom: 10px;
            padding: 1rem;    /* menos relleno */
        }
    }

    .post-meta {
        font-size: 0.9rem;
        color: #777;
        margin-bottom: 0.5rem;
    }
    
    .cargar-mas-btn {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        padding: 0.75rem 2rem;
        background-color: transparent;
        border: 2px solid var(--color-card);
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.04);
        color: var(--color-card);
        display: block;
        width: 40%;
        margin: 1rem auto;
    }
    
    /* Destello blanco */
    .cargar-mas-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
        transform: skewX(-20deg);
        transition: left 0.5s ease;
        z-index: 0;
    }
    
    .cargar-mas-btn:hover::before {
        left: 130%;
    }
    
    .cargar-mas-btn:hover {
        border-color: var(--color-primario-hover);
        color: #fff;
        transform: scale(1.2);
    }
    
    @media screen and (max-width:768px){
        .cargar-mas-btn{
            width: 60%;
        }
        section{
            padding: 0px 2px;
        }
    }



        
    /*Boton Redes sociales*/
    .floating-social {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 999;
      display: flex;
      flex-direction: column-reverse; /* Hace que el botón quede abajo */
      align-items: center;
      gap: 10px;
    }
    
    .toggle-button {
      background-color: #333;
      color: white;
      border: none;
      border-radius: 50%;
      width: 48px;
      height: 48px;
      font-size: 20px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s ease;
    }
    
    .toggle-button:hover {
      background-color: #555;
    }
    
    .social-floating-icons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px); /* Aparece desde abajo */
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .social-floating-icons.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    
    .social-icon {
      background-color: #fff;
      color: #333;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s, color 0.3s;
    }
    
    .social-icon:hover {
      background-color: #333;
      color: white;
    }

    /*=======================
    =     planificacion apartado     =
    =======================*/
    /* Contenedor general */
    .planificacion-container {
      max-width: 900px;             /* límite para que no se estire demasiado */
      width: 95%;                   /* ocupa casi todo pero con respiro */
      margin: 2rem auto;            /* centrado */
      padding: 2rem;                /* espacio interno suficiente */
      /*background: var(--color-blanco);*/
      border-radius: var(--border-radius);
      box-shadow: 0 6px 16px var(--shadow-light);
      font-family: var(--font-base);
      color: var(--color-texto);
      overflow-x: auto; 
    min-height: 100vh;
    }
    
    /* Título principal */
    .planificacion-container h2 {
      font-size: 2rem;
      font-weight: 700;
      color: var(--color-blanco);
      margin-bottom: 2rem;
      text-align: center;
    }
    
    /* Subtítulos por grupo muscular */
    .planificacion-container h3 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: var(--color-card);
      text-transform: capitalize;
      border-bottom: 2px solid var(--color-acento);
      padding-bottom: 0.25rem;
    }
    
    /* Ajustes de calendario dentro del contenedor */
    .planificacion-container .calendar {
      width: 100%;
      max-width: 700px;
      margin: 0 auto;               /* centrado */
      padding: 1.5rem;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(15px);
    }

    /******
    apartado para el calendario de los dias de entrenamiento
    ******/
   .calendar {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
        margin: 2rem auto;
        max-width: 100%;
        padding: 5px; /* padding pequeño para que no rompa en móvil */
        border-radius: 20px;
        background: #f9f9f9;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }


        
    /* Estilo para cada día */
   .calendar-day {
        padding: 0; /* Quitamos padding extra que desplaza */
        display: flex; /* Usamos flexbox para centrar contenido */
        justify-content: center; /* Centrado horizontal */
        align-items: center;     /* Centrado vertical */
        height: 50px;            /* Altura fija para uniformidad */
        border-radius: 12px;
        background: #fff;
        border: 1px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        text-align: center;
    }

    
    .calendar-day:hover {
        background: #eaf9f6; /* Suave verde agua en hover */
        transform: scale(1.05);
    }
        
    /* Día activo */
    .calendar-day.active {
        background: linear-gradient(135deg, #00ffc3, #00aaff);
        color: #fff;
        font-weight: bold;
        box-shadow: 0 0 12px rgba(0, 170, 255, 0.5);
        border: none;
    }
    
    /* Botón de alternar */
    .calendar-toggle {
        margin: 1rem auto;
        display: block;
        background: linear-gradient(135deg, #00ffc3, #00aaff);
        color: white;
        border: none;
        padding: 10px 18px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .calendar-toggle:hover {
        background: linear-gradient(135deg, #00aaff, #0077ff);
        transform: scale(1.05);
    }
    
    /* Encabezado de días (Su, Mo, Tu...) */
    .calendar-header {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        font-weight: 600;
        text-align: center;
        font-size: 1.1rem;
        color: var(--color-acento); /* Azul moderno */
    }
    
    /***** Apartado de planificación por día *****/
    
    .plan-group {
      display: flex;
      flex-direction: column;
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 2rem;
      background: linear-gradient(135deg, #f8f9fc, #ffffff);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }
    
    /* Bloque del grupo muscular */
    .muscle-box {
      background: linear-gradient(135deg, #00ffc3, #00aaff);
      color: #ffffff;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.2rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      padding: 2rem 1.2rem;
      min-width: 180px;
      position: relative;
      overflow: hidden;
      border-bottom: 6px solid #ffffff33; /* barra lateral suave y elegante */
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      text-align: center;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    
    /* Brillo diagonal animado */
    .muscle-box::after {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
      );
      transform: rotate(25deg);
      animation: shine 3.5s infinite linear;
      pointer-events: none;
    }
    
    @keyframes shine {
      from { transform: translateX(-50%) rotate(25deg); }
      to { transform: translateX(100%) rotate(25deg); }
    }
    
    /* Hover con efecto de elevación */
    .muscle-box:hover {
      transform: scale(1.03);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }

    
    /* Contenedor de ejercicios */
    .exercises-box {
      flex: 3;
      padding: 2rem;
      background: #f4f8fb;
      display: grid;
      gap: 1.5rem;
      border-left: 1px solid #e0e0e0;
    }
    
    /* Tarjetas individuales de ejercicios */
    .exercise-card {
      background: #ffffff;
      border: none;
      border-radius: 16px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      min-height: 180px;
    }
    
    /* Barra superior decorativa con tus colores */
    .exercise-card::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 5px;
      background: linear-gradient(90deg, #00ffc3, #00aaff);
      border-radius: 16px 16px 0 0;
    }
    
    /* Hover con efecto elevación */
    .exercise-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    }
    
    /* Título del ejercicio */
    .exercise-card h4 {
      margin: 0;
      font-size: 1.2rem;
      color: #00897b;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    
    /* Descripción */
    .exercise-card .description {
      font-size: 0.95rem;
      line-height: 1.5;
      color: #555;
      flex-grow: 1;
    }
    
    /* Info de series, reps, etc. */
    .exercise-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      font-size: 0.85rem;
      color: #555;
    }
    
    /* Insignias verdes/azules coherentes */
    .exercise-info span {
      background: #e0f7f4;
      color: #00796b;
      padding: 0.35rem 0.7rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    /******MODAL*******/
    .modal-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    .modal-content {
        padding: 40px;
        border-radius: 12px;
        width: 80%;
        max-width: 600px;
        position: relative;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: white;
    }
    
    /* Mejora visual del contenido del modal */
    .modal-content {
        color: #ffffff;                /* texto en blanco */
        line-height: 1.6;               /* más espacio entre líneas */
        letter-spacing: 0.3px;          /* ligera separación entre letras */
        font-family: 'Segoe UI', sans-serif;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* sombra suave para resaltar */
        background: inherit;            /* mantiene el fondo original que tenías */
    }
    
    /* Títulos dentro del modal */
    .modal-content h1,
    .modal-content h2,
    .modal-content h3 {
        color: #ffffff;                 /* títulos en blanco también */
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Párrafos y listas */
    .modal-content p {
        color: #ffffff;
        margin-bottom: 1.2rem;           /* espacio entre párrafos */
        text-align: justify;             /* alineación justificada para leer mejor */
    }
    
    .modal-content ul,
    .modal-content ol {
        margin: 0 0 1.2rem 1.5rem;
        padding: 0;
        color: #ffffff;
    }
    
    .modal-content li {
        margin-bottom: 0.5rem;
    }
    
    /* Botón de cierre */
    .modal-close {
        font-size: 24px;
        color: #ffffff;                  /* icono de cerrar en blanco */
        transition: color 0.3s;
    }
    
    .modal-close:hover {
        color: var(--color-primario-hover); /* usa tu color de marca al pasar el ratón */
    }

    .video-btn {
        display: inline-block;
        margin-top: 10px;
        padding: 8px 12px;
        background: #007bff;
        color: white;
        border-radius: 6px;
        text-decoration: none;
    }
    .video-btn:hover {
        background: #0056b3;
    }

    /* Cuadrícula general responsive */
    .plan-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }


    /* Bloqueador cuando no hay plan */
    .bloqueador {
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, rgba(10, 25, 25, 0.95), rgba(5, 15, 15, 0.95));
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      padding: 2rem;
    }
    
    /* Contenedor interno tipo card */
    .bloqueador .content {
      background: #ffffff;
      color: #333;
      border-radius: 20px;
      padding: 3rem 2.5rem;
      text-align: center;
      max-width: 480px;
      width: 100%;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
      animation: fadeIn 0.6s ease;
    }
    
    /* Emoji "alto ahí" */
    .bloqueador .emoji {
      font-size: 5rem;
      margin-bottom: 0.5rem;
      animation: bounce 1.5s infinite;
      filter: drop-shadow(0 4px 4px rgba(0,0,0,0.15));
    }
    
    /* Texto */
    .bloqueador .content h2 {
      font-size: 1.6rem;
      color: #2e7d32;
      margin-bottom: 0.3rem;
    }
    
    .bloqueador .content p {
      font-size: 1rem;
      color: #555;
      line-height: 1.4;
    }
    
    /* Botón contratar plan */
    .bloqueador button {
      background: linear-gradient(90deg, #00c853, #64dd17);
      color: #fff;
      padding: 0.9rem 2.5rem;
      border-radius: 2rem;
      font-weight: 700;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      margin-top: 1rem;
    }
    
    .bloqueador button:hover {
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    
    /* Animaciones */
    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }
    
    /* Responsive */
    @media (max-width: 600px) {
      .bloqueador .content {
        padding: 2.2rem 1.8rem;
      }
    
      .bloqueador .emoji {
        font-size: 4rem;
      }
    
      .bloqueador .content h2 {
        font-size: 1.3rem;
      }
    
      .bloqueador .content p {
        font-size: 0.95rem;
      }
    }
    
    
    /* Responsive */
    @media (max-width: 600px) {
      .planificacion-container h2 {
        font-size: 1.5rem;
      }
    
      .planificacion-container h3 {
        font-size: 1.1rem;
      }
    
      .planificacion-container table {
        font-size: 0.8rem;
      }
    }
    
    
.back-btn {
    display: none;
}


@media (display-mode: standalone) {
    .back-btn {
        display: flex; /* o block */
    }
}

