/* ============================================================
   ESTILOS GENERALES
   ============================================================ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #222;
}

/* ============================================================
   HEADER PREMIUM MASCOALBA UNIFICADO
   ============================================================ */

header {
    background: linear-gradient(
        135deg,
        #000000 0%,
        #0a1a2f 35%,
        #cc0077 60%,
        #0078ff 100%
    );
    color: #fff;
    padding: 25px 20px; /* unificado: algo más de altura, manteniendo lateral */
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 25px rgba(204, 0, 119, 0.25);
}

header h4 {
    font-size: 60px;
    font-weight: 800;
    margin: 0;
    color: #ffff00;
}

header h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

header h2 {
    font-size: 20px;
    font-weight: 400;
    margin-top: 6px;
    color: #ffffff;
}

.logo-mariposa {
    width: 42px;
    height: 42px;
    vertical-align: middle;
}

header,
header h1,
header h2,
header h4,
nav.menu-principal a {
    font-family: 'Poppins', Arial, sans-serif !important;
}

/* ============================================================
   MENÚ PRINCIPAL — VERSIÓN PREMIUM MASCOALBA
   ============================================================ */

.menu-principal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent !important;
    overflow-x: auto;
    white-space: nowrap;
}

.menu-principal::-webkit-scrollbar {
    display: none;
}

.menu-principal a {
    background: transparent !important;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.menu-principal a:hover {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(2px);
}

/* ============================================================
   BOTONES DEL MENÚ (INDEX)
   ============================================================ */

.header-btn {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 18px 24px;
    border-radius: 8px;
    display: inline-block;
    background: transparent;
    font-size: 18px;
    transition: 0.25s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
}

/* ============================================================
   TARJETAS GENERALES INDEX
   ============================================================ */

.container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #FFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.desc {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #FFF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn:hover {
    background: #333;
}

/* ============================================================
   MENU02 HOVER
   ============================================================ */

#menu02 a {
    transition: color 0.2s ease;
}

#menu02 a:hover {
    color: yellow;
}

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */

@media (max-width: 480px) {
    header {
        font-size: 20px;
        padding: 15px;
    }

    .icon { font-size: 34px; }
    .title { font-size: 18px; }
    .desc { font-size: 14px; }

    .btn {
        padding: 9px 14px;
        font-size: 14px;
    }
}

/* ============================================================
   CONTACTO
   ============================================================ */

.contacto-container {
    max-width: 800px;
    margin: 10px auto;
    padding: 20px;
    text-align: center;
}

.contacto-titulo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contacto-texto {
    font-size: 16px;
    color: #444;
    margin-bottom: 25px;
}

.contacto-botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.contacto-btn {
    background: #000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.contacto-btn:hover {
    background: #333;
}

.adsense-placeholder {
    background: #eaeaea;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    border: 1px dashed #aaa;
}

.contacto-subtitulo {
    font-size: 15px;
    color: #777;
    margin-top: -5px;
    margin-bottom: 20px;
}

.contacto-icono {
    width: 90px;
    opacity: 0.9;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================================
   FORMULARIO ULTRA PREMIUM
   ============================================================ */

.form-ultra {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    animation: fadeSlide 0.7s ease;
    border: 1px solid #eaeaea;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-ultra h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.form-ultra p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.form-ultra .campo {
    margin-bottom: 22px;
}

.form-ultra label {
    font-weight: bold;
    color: #444;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-ultra input,
.form-ultra textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.25s ease;
}

.form-ultra input:focus,
.form-ultra textarea:focus {
    border-color: #ff6600;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,102,0,0.25);
    outline: none;
}

.form-ultra button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6600, #ff7f2a);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(255,102,0,0.35);
}

.form-ultra button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,102,0,0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-mascoalba {
    text-align: center;
    padding: 30px 20px;
    background: #000;
    color: #fff;
    margin-top: 40px;
    font-size: 14px;
}

.footer-mascoalba a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

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

.footer-links {
    margin-top: 8px;
    opacity: 0.9;
}

/* ============================================================
   MORSE.PHP — FONDO FORZADO
   ============================================================ */

body.morse-page main.morse-main {
    background: #000 !important;
    color: #fff !important;
}


/* ============================================================
   CABECERA UNIFICADA MASCOALBA / MAIN
   ============================================================ */

/* Solo afecta a morse, NO al index */
.morse-main {
    margin-top: 20px !important;
}


/* ============================================================
   TÍTULO HERRAMIENTAS
   ============================================================ */

.titulo-premium {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 20px 0 25px 0;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}








/* ============================================================
   TARJETAS MASCOALBA — VERSIÓN DEPURADA Y OPTIMIZADA
   ============================================================ */

:root {
  --container-max: 1600px;
  --gap: 26px;

  --card-radius: 14px;
  --card-bg: #ffffff;
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --card-padding: 18px;

  --title-color: #b30066;
  --title-size:1.05rem;
  --title-weight: 700;

  /* ⭐ Controla el tamaño de la descripción */
  --desc-size: .90rem;

  /* Botón */
  --btn-font: 0.68rem;
  --btn-height: 24px;
}

/* ===========================
   GRID RESPONSIVE
=========================== */
.tools-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 600px) {
  .tools-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .tools-container {
    grid-template-columns: repeat(7, 1fr);
  }

  .tools-container > *:nth-child(7n + 8) {
    grid-column: 1 / 2;
  }
}

/* ===========================
   TARJETA
=========================== */
.tool-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-padding);

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 110px;
  overflow: hidden;

  transition: 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ===========================
   TÍTULO
=========================== */
.tool-header h3 {
  margin: 0 0 6px 0;
  color: var(--title-color);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  line-height: 1.25;
  overflow-wrap: break-word;
}

/* ===========================
   DESCRIPCIÓN
=========================== */
.tool-body {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.tool-body p {
  margin: 0;
  font-size: var(--desc-size);   /* ⭐ tamaño pequeño */
  color: #444;
  line-height: 1.1;
  overflow-wrap: break-word;
}

/* ===========================
   FOOTER / BOTÓN
=========================== */
.tool-footer {
  margin-top: auto;       /* empuja el footer al fondo */
  display: flex;
  justify-content: center; /* centra el botón */
  padding-top: 8px;        /* margen superior */
}


.tool-btn {
  padding: 3px 8px;
  font-size: var(--btn-font);
  font-weight: 600;
  background: #111;
  color: #fff;
  border-radius: 6px;
  border: none;
  min-height: var(--btn-height);
  cursor: pointer;
  text-decoration: none;
  margin-right: 4px;
}

.tool-btn:hover {
  background: #222;
  color: #ffeb3b;
}

.tool-btn[disabled],
.tool-btn.disabled {
  background: #6c757d;
  opacity: 0.75;
  cursor: not-allowed;
}




/* ===========================
   MÓVIL
=========================== */
@media (max-width: 700px) {
  :root {
    --title-size: 0.90rem;
    --desc-size: 0.55rem;   /* ⭐ descripción más grande en móvil */
    --btn-font: 0.65rem;
    --card-padding: 16px;
  }

  .tool-card {
    min-height: 105px;
  }
}



/* CONTENEDOR CENTRADO */
.info-extra {
    margin: 50px auto 0 auto;
    max-width: 900px;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center; /* ← centra el botón */
}

/* TEXTO ALINEADO A LA IZQUIERDA */
#contenido-info {
    text-align: left; /* ← el texto queda a la izquierda */
}


























/* ============================================================
   CONTADOR DE VISITAS MASCOALBA — PREMIUM (50% tamaño)
   ============================================================ */

.flip-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #000;
    padding: 10px 16px;          /* antes 18px 28px → 50% */
    border-radius: 10px;         /* ligeramente más pequeño */

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    margin: 25px auto;
    text-align: center;

    max-width: 70%;              /* más compacto */
}

.flip-number {
    font-size: 1.2rem;           /* antes 2.4rem → 50% */
    font-weight: 800;
    color: #cc0077;
    animation: flip 0.6s ease;
    transform-origin: bottom;
}

.flip-label {
    margin-top: 4px;             /* antes 8px */
    font-size: 0.55rem;          /* antes 1rem → 50% */
    color: #fff;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* Animación */
@keyframes flip {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}


/* ============================================================
   BANNER DE COOKIES MASCOALBA — PREMIUM
   ============================================================ */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 480px;

    background: #ffffff;
    color: #222;

    padding: 22px 20px;
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.20);
    border: 1px solid rgba(0,0,0,0.08);

    display: none;
    z-index: 9999;

    font-family: 'Poppins', sans-serif;
    text-align: left;
}

#cookie-banner h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #cc0077;
}

#cookie-banner p {
    margin: 0 0 18px 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #333;
}

#cookie-banner .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#rejectCookies,
#acceptCookies {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.25s ease;
}

/* Botón gris */
#rejectCookies {
    background: #e0e0e0;
    color: #222;
}

#rejectCookies:hover {
    background: #cfcfcf;
}

/* Botón Mascoalba */
#acceptCookies {
    background: #cc0077;
    color: #fff;
}

#acceptCookies:hover {
    background: #a80060;
}

/* ======== MENÚ AJUSTADO PARA MÓVIL — ESTÉTICA PREMIUM ======== */
@media (max-width: 600px) {
    .menu-principal {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 5px;
        max-width: 360px;
        margin: 0 auto;
    }

    .menu-principal a {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
        width: 48%;
        text-align: left;
        box-sizing: border-box;
    }
}

/* ============================
   MAIN SOLO PARA INDEX
============================ */
.main-index {
    max-width: 800px;
    margin: 40px auto;
    font-family: Arial;
}

@media (max-width: 768px) {
    .main-index {
        padding: 0 20px;
        box-sizing: border-box;
    }
}

/* ============================
   INTRO — CENTRADO REAL
============================ */
.intro {
    max-width: 700px;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 20px;
}

.intro p {
    text-align: center !important;
    margin: 0 auto !important;
}

.intro a.btn {
    display: inline-block;
    margin-top: 20px;
}

html, body {
    overflow-x: hidden;
}


/* ============================
   RESETEO GLOBAL
============================ */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* ============================================================
   TARJETAS GENERALES INDEX
   ============================================================ */

.container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    color: #000;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

.desc {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: #333;
}

/* ============================================================
   MODO OSCURO — TARJETAS DEL MENÚ02
   ============================================================ */

.dark-content .card {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #333;
}

.dark-content .title {
    color: #ff00ff;
}

.dark-content .desc {
    color: #dddddd;
}

.dark-content .icon {
    color: #ffffff;
}

.dark-content .btn {
    background: #ffd84d;
    color: #000;
    border: 1px solid #e6c23f;
}

.dark-content .btn:hover {
    background: #ffcc33;
}


.apps-title {
    color: #ffffff;      /* Blanco */
    text-align: center;  /* Centrado */
    font-size: 2.2rem;   /* Más grande */
    margin-bottom: 25px; /* Espacio inferior */
}


/* ================================
   🎧 REPRODUCTOR ULTRA‑PREMIUM
   ================================ */

.music-premium {
    width: 100%; /* 🔥 Pantalla completa */
    max-width: 100%; /* 🔥 Sin límites */
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0; /* 🔥 Estilo barra premium */
    padding: 25px 20px;
    margin: 0; /* 🔥 Sin márgenes */
    backdrop-filter: blur(8px);
    color: white;
    box-shadow: 0 0 25px rgba(255,255,255,0.12);
    position: relative;
}



/* Header */
.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-title {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Ecualizador */
.eq-bars {
    display: flex;
    gap: 3px;
    height: 18px;
}

.eq-bars span {
    width: 4px;
    background: #ff4fcf; /* 💖 Rosa Mascoalba */
    border-radius: 2px;
    animation: eqAnim 1s infinite ease-in-out;
    transform-origin: bottom;
    opacity: 0;
}


.eq-bars span:nth-child(1) { animation-delay: 0s; }
.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }
.eq-bars span:nth-child(4) { animation-delay: 0.6s; }

@keyframes eqAnim {
    0%   { height: 3px; opacity: 0.4; }
    50%  { height: 18px; opacity: 1; }
    100% { height: 3px; opacity: 0.4; }
}

/* Botones */
.music-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.music-btn:hover {
    background: #111;
}

.music-btn:active {
    background: #fdd835;
    color: #000;
}

.hidden {
    display: none !important;
}

/* Barra de progreso */
.seek-bar {
    width: 100%;
    margin: 18px 0;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #fdd835, #ff4fcf);
}

/* Volumen */
.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-bar {
    width: 100%;
}

#volumeIcon {
    font-size: 1.3rem;
}


/* Evita que el editor empuje la sección de herramientas */
.tools-section {
    margin-top: 0 !important;
    padding-top: 20px;
}

/* Elimina el espacio gigante que deja el editor */
.tool-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* El wrapper del editor deja un hueco enorme: lo corregimos */
.editor-output-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* El iframe también empuja hacia abajo */
.output-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

iframe#outputFrame {
    height: 350px !important; /* antes era enorme */
}

/* Eliminar espacio que genera menu02 dentro del Shadow DOM */
#menu02-wrapper {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forzar que el contenido del shadow no empuje */
#menu02-wrapper::part(container),
#menu02-wrapper::part(wrapper),
#menu02-wrapper::part(root) {
    margin: 0 !important;
    padding: 0 !important;
}

#menu03,
.tools-section,
.tools-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



