/* Estilos específicos para la Landing Page */

.scroll-reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.reveal-from-left {
    transform: translate3d(-56px, 0, 0);
}

.scroll-reveal.reveal-from-right {
    transform: translate3d(56px, 0, 0);
}

.scroll-reveal.reveal-from-bottom {
    transform: translate3d(0, 26px, 0);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.reveal-from-left,
    .scroll-reveal.reveal-from-right,
    .scroll-reveal.reveal-from-bottom {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero Section Inputs - Tema Oscuro/Glassmorphism */
.hero .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.hero .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.hero .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Input Groups */
.hero .input-group-addon {
    background-color: rgba(22 1 1 / 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: rgba(255, 255, 255, 0.8);
}

/* Labels y Textos */
.hero label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px; /* Más aire entre label e input */
}

.hero .help-block {
    color: rgba(255, 255, 255, 0.7);
}

.hero .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix Date Picker Icon Color */
.hero .advanced-panel input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.hero .advanced-panel input[type="datetime-local"] {
    color-scheme: dark;
}

/* Improve Placeholder Contrast */
.hero .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4); /* Un poco más visible */
    font-weight: 400;
}

/* Botones en Hero */
.hero .btn-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero .btn-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Advanced Panel Override */
.hero .panel-default {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Fix Input Heights in Advanced Panel & Styling */
.hero .advanced-panel .form-control {
    height: 38px !important;
    line-height: 1.5;
    border-radius: 8px;
    font-size: 0.95em;
    padding: 8px 15px; /* Aumentado padding interno */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    color: #fff;
}

/* Fix for dropdown options visibility in dark theme */
.hero .advanced-panel select.form-control option {
    background-color: #111827; /* Fondo oscuro igual que comparison section */
    color: #ffffff;
    padding: 10px;
}

.hero .advanced-panel select.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Icon Select specifically for Linktree */
.linktree-icon-select {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Inter', sans-serif !important;
    font-weight: 900 !important;
}

.linktree-icon-select option {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Inter', sans-serif !important;
    font-weight: 900 !important;
    background-color: #111827;
    color: #ffffff;
}

.hero .advanced-panel .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero .advanced-panel .input-group {
    display: flex; /* Flexbox para alineación perfecta */
    align-items: center;
    width: 100%;
}

.hero .advanced-panel .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 40px; /* Ancho mínimo para que respire */
    padding: 0; /* El centrado lo hace flexbox */
    border-radius: 8px 0 0 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em; /* Slash un poco más visible */
}

/* Ajuste específico para cuando el addon está antes del input */
.hero .advanced-panel .input-group .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    padding-left: 5px; /* Espacio sutil entre / y texto */
    width: 100%; /* Asegurar que ocupe el resto del espacio */
}

.hero .panel-default > .panel-heading {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 25px; /* Padding más controlado */
}

.hero .panel-title {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0; /* Eliminamos márgenes por defecto */
    line-height: 1.2; /* Altura de línea ajustada */
}

.hero .panel-body {
    border-top: none !important;
    padding: 25px 30px; /* Increased padding */
}

/* File Input Custom Style */
.hero .form-control.d-flex {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Botones de Tab - Improved Contrast */
.hero .btn-group .btn-default {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-group .btn-default:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero .btn-group .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Alertas en Hero */
.hero .alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #dbeafe;
}

.hero .alert-info a {
    color: #93c5fd;
    text-decoration: underline;
}

/* Premium Features Styling - Enhanced */
.hero .form-control:disabled,
.hero .form-control[readonly] {
    background-color: rgba(10, 10, 10, 0.6) !important; /* Fondo muy oscuro para contraste */
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none;
}

.hero .form-control:disabled::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); /* Gold gradient */
    color: #fff;
    font-size: 10px; /* Tamaño fijo y pequeño */
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-flex; /* Mejor alineación */
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap; /* Evita que se rompa en líneas */
    line-height: 1; /* Altura de línea compacta */
    height: auto; /* Evita estiramientos forzados */
    min-width: fit-content; /* Asegura que quepa el texto */
    align-self: center; /* Se centra en flex containers padres */
}

.input-group.disabled-group {
    opacity: 1; /* Mantener opacidad para que el icono se vea bien, el input se encarga de verse disabled */
    position: relative;
}

.premium-locked-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #f59e0b;
    font-size: 1.1em;
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

/* Tooltip style override for this section if needed */
.hero .help-block {
    margin-top: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.hero .help-block i.text-warning {
    color: #f59e0b !important;
    margin-right: 6px;
    font-size: 1.1em;
}

.hero .help-block a.text-warning {
    color: #f59e0b !important;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.hero .help-block a.text-warning:hover {
    text-decoration: underline;
    color: #fbbf24 !important;
}

/* Alerta Final Estilizada */
.hero .alert-info {
    background-color: rgba(30, 58, 138, 0.6); /* Azul oscuro transparente */
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e0e7ff; /* Blanco azulado */
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.hero .alert-info i {
    font-size: 1.2em;
    color: #fff;
}

.hero .alert-info a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.features-section .section-header {
    margin-bottom: 60px;
}

.section-title {
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.15em;
    max-width: 600px;
    margin: 0 auto;
    color: #4b5563;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
}

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

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

.features-grid .feature-item {
    width: 100%;
    margin-bottom: 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827; /* Explicit dark color */
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.feature-card p {
    color: #4b5563; /* Explicit gray color */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Ensure icons look great */
.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card .feature-icon i {
    font-size: 1.75rem;
}

/* Estilo unificado para secciones estilo Hero */
.landing-section-theme {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.landing-section-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.landing-section-theme > .container {
    position: relative;
    z-index: 2;
}

.landing-section-theme.alt {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

/* Value Proposition Section - Dark Theme Update */
.value-prop-section {
    padding: var(--spacing-xl) 0;
    background-color: #111827; /* Fondo oscuro igual que comparison section */
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative background glow similar to hero/comparison */
.value-prop-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.value-prop-section .container {
    position: relative;
    z-index: 1;
}

.value-prop-section .section-title {
    color: #fff;
}

.section-lead {
    font-size: 1.15em;
    color: #9ca3af; /* Gris claro para texto secundario */
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
    .value-prop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.value-prop-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
    .value-prop-item-wide {
        grid-column: span 2;
    }
}

.value-prop-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.value-prop-item .icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa; /* Primary light */
    font-size: 1.2rem;
}

.value-prop-item .content {
    flex: 1;
}

.value-prop-item h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.value-prop-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Right side illustration - Dark Mode */
.value-prop-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: var(--spacing-lg);
}

.illustration-card {
    background: #1f2937; /* Gris oscuro */
    padding: var(--spacing-xl);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Sombra más fuerte */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.illustration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Barra superior de color */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.icon-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: 20px 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    background-color: #111827; /* Fondo del círculo más oscuro */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-circle:hover {
    transform: scale(1.1);
}

.icon-circle.upload {
    color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    animation: uploadPulse 2.8s ease-in-out infinite;
}

.icon-circle.link {
    color: #34d399; /* Success light */
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    animation: linkPulse 2.8s ease-in-out infinite;
}

.flow-line {
    flex-grow: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.32), rgba(16, 185, 129, 0.34));
    min-width: 50px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.14);
}

.flow-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.35) 28%, rgba(52, 211, 153, 0.55) 55%, transparent 100%);
    transform: translateX(-100%);
    animation: flowStream 2.4s linear infinite;
}

.flow-line::after {
    content: '\f061';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #93c5fd;
    font-size: 14px;
    background: #1f2937; /* Coincide con fondo de card */
    padding: 0 5px;
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.35);
    animation: arrowNudge 1.8s ease-in-out infinite;
}

.data-particle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-20px, -50%);
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #93c5fd 35%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
    opacity: 0;
}

.particle-1 {
    animation: dataTravel 2.2s linear infinite;
}

.particle-2 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #ecfeff 0%, #67e8f9 40%, #10b981 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
    animation: dataTravel 2.2s linear infinite 0.7s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #bfdbfe 45%, #60a5fa 100%);
    animation: dataTravel 2.2s linear infinite 1.35s;
}

@keyframes dataTravel {
    0% {
        left: 0%;
        opacity: 0;
        transform: translate(-20px, -50%) scale(0.7);
    }
    12% {
        opacity: 1;
    }
    78% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
        transform: translate(8px, -50%) scale(1);
    }
}

@keyframes flowStream {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes arrowNudge {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(4px);
    }
}

@keyframes uploadPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 28px rgba(59, 130, 246, 0.35);
        transform: scale(1.03);
    }
}

@keyframes linkPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 28px rgba(16, 185, 129, 0.38);
        transform: scale(1.05);
    }
}

.card-label {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.cta-wrapper .auth-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.cta-wrapper .auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

/* =========================================
   Comparison Section Styles
   ========================================= */
.comparison-section {
    background-color: #111827; /* Dark Background */
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo sutil */
.comparison-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-section .section-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.comparison-section .lead {
    color: #9ca3af;
    margin-bottom: 50px;
}

/* Tabla Container */
.comparison-table-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Headers */
.comparison-table th {
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.th-feature {
    text-align: left;
    color: #fff;
    width: 40%;
    background: transparent;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-top-left-radius: 12px;
}

.th-competitor {
    text-align: center;
    color: #9ca3af;
    background: transparent;
    width: 30%;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-left: none;
}

.th-linkbox {
    text-align: center;
    color: #2563eb;
    background: #fff;
    width: 30%;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Celdas */
.comparison-table td {
    padding: 20px 25px;
    vertical-align: middle;
    font-size: 1.1rem;
}

/* Columna Features */
.td-feature {
    color: #e5e7eb;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Columna Competidores */
.td-competitor {
    text-align: center;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Columna LinkBox Highlight */
.td-linkbox {
    background: #fff;
    text-align: center;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Sombra lateral */
    z-index: 10;
    position: relative;
}

/* Iconos */
.icon-check {
    color: #10b981; /* Green */
    font-size: 1.3em;
}

.icon-cross {
    color: #ef4444; /* Red */
    font-size: 1.3em;
    opacity: 0.6;
}

.text-brand {
    color: #2563eb;
    font-weight: 800;
}

/* Ajustes de bordes y esquinas para el diseño "Card" de LinkBox */
.comparison-table tr:last-child .td-linkbox {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Creation Section (New Tabbed UI)
   ========================================= */
.creation-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 100px 0;
    position: relative;
}

.main-creation-card {
    background: #ffffff;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    overflow: hidden;
}

.creation-tabs {
    background: #ffffff;
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.creation-tabs button {
    flex: 1;
    padding: 24px 16px;
    border: none;
    background: transparent;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    outline: none !important;
}

.creation-tabs button i {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.creation-tabs button:hover {
    color: #1e293b;
    background: #f8fafc;
}

.creation-tabs button:hover i {
    opacity: 1;
    transform: translateY(-2px);
}

.active-tab {
    color: #2563eb !important;
}

.active-tab i {
    color: #2563eb;
    opacity: 1 !important;
}

.active-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: #2563eb;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(37, 99, 235, 0.2);
}

.creation-form-container {
    background: #0f172a; /* Deep dark blue/black */
    padding: 48px;
    color: #ffffff;
}

/* Custom Form Styles for Dark Theme */
.creation-form-container .form-label {
    color: #94a3b8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.creation-form-container .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%; /* Ensure 100% width */
}

.creation-form-container .input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.creation-form-container .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #3b82f6 !important; /* Blue icons for better visibility */
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.creation-form-container .form-control,
.creation-form-container .form-select {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 16px 20px;
    font-size: 1.1rem;
    height: auto;
    width: 100%; /* Ensure 100% width */
}

/* Specific styling for social select to avoid white text on light background issues */
.custom-social-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

.custom-social-select option {
    background-color: #1e293b !important;
    color: #ffffff !important;
    padding: 10px;
}

.creation-form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3); /* Better contrast for placeholders */
}

.creation-form-container .form-control:focus {
    box-shadow: none !important;
}

/* Linktree Items */
.linktree-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.linktree-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Linktree Responsive Editor */
.linktree-item-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.linktree-item-icon-col {
    flex: 0 0 40%;
    min-width: 0; /* Prevents flex items from overflowing */
}

.linktree-item-label-col {
    flex: 1;
    min-width: 0;
}

.linktree-item-url-row {
    width: 100%;
}

@media (max-width: 768px) {
    .linktree-item-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .linktree-item-icon-col,
    .linktree-item-label-col {
        width: 100% !important;
        flex: none !important;
    }
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.2);
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 60px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
}

.upload-zone:hover, .upload-zone.dragging {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
    transform: scale(1.01);
}

.upload-zone i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.upload-zone h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.upload-zone p {
    color: #94a3b8;
    margin-bottom: 0;
}

/* Advanced Section */
.advanced-toggle {
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.advanced-toggle:hover {
    color: #ffffff;
}

.advanced-toggle i {
    transition: transform 0.3s ease;
}

/* Success Celebration Styles V2 (Basado en imagen) */
.success-celebration-v2 {
    background: #0f172a; /* Fondo azul oscuro profundo */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 350px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem !important;
    animation: celebrateCardExpanded 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes celebrateCardExpanded {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; filter: blur(10px); }
    60% { transform: scale(1.05) translateY(-10px); opacity: 1; filter: blur(0); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.success-circle-container {
    width: 100%;
    margin-top: -20px;
    perspective: 1000px;
}

.success-circle {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    color: #000000;
    font-size: 3.2rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
    animation: successIconPopExtra 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    margin: 0 auto;
    position: relative;
}

@keyframes successIconPopExtra {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.celebration-content-v2 h3 {
    animation: fadeInUpExtra 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.celebration-content-v2 p {
    animation: fadeInUpExtra 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.link-bar-container {
    animation: fadeInUpExtra 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

.action-buttons-centered {
    animation: fadeInUpExtra 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both;
}

@keyframes fadeInUpExtra {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Efecto de pulso continuo para el icono de éxito */
.success-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
    z-index: -1;
    animation: pulseJoy 2.5s infinite;
}

@keyframes pulseJoy {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Contenedor del cohete para permitir movimiento libre */
.rocket-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Animación del cohete volando por todo el contenedor */
.rocket-fly {
    display: inline-block;
    position: absolute;
    font-size: 2.5rem;
    animation: rocketRoaming 12s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.6));
}

@keyframes rocketRoaming {
    /* Punto 0: Inicio cerca del texto (Centro) */
    0% {
        top: 0%;
        left: 100%;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.6));
    }
    
    /* Punto 1: Se aleja hacia arriba a la izquierda y se hace pequeño */
    20% {
        top: -150px;
        left: -150px;
        transform: translate(-20px, -20px) scale(0.6) rotate(-45deg);
        filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.4));
    }
    
    /* Punto 2: Cruza hacia abajo a la derecha y se acerca (más grande) */
    40% {
        top: 250px;
        left: 200px;
        transform: translate(30px, 30px) scale(1.4) rotate(135deg);
        filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.8));
    }
    
    /* Punto 3: Sube al centro-derecha, tamaño normal */
    60% {
        top: -80px;
        left: 350px;
        transform: translate(10px, -10px) scale(0.9) rotate(45deg);
        filter: drop-shadow(0 0 12px rgba(255, 165, 0, 0.5));
    }
    
    /* Punto 4: Baja al centro-izquierda y se acerca mucho */
    80% {
        top: 180px;
        left: -250px;
        transform: translate(-15px, 15px) scale(1.6) rotate(-120deg);
        filter: drop-shadow(0 0 25px rgba(255, 165, 0, 0.9));
    }
    
    /* Punto 5: Regresa al inicio */
    100% {
        top: 0%;
        left: 100%;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.6));
    }
}

@keyframes successIconPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.celebration-content-v2 {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    z-index: 2;
}

.link-bar-container {
    background: #0b1120; /* Color más oscuro para la barra */
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    height: 70px;
    margin: 20px 0;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-bar-container .link-url {
    color: #3b82f6 !important;
    font-size: 1.3rem;
    font-weight: 500;
    padding-left: 15px;
}

.btn-copiar-custom {
    background: #3b82f6 !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 30px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-copiar-custom:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-close-red-round {
    background: #ef4444 !important; /* Rojo vibrante */
    color: #ffffff !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* Redondo */
    font-size: 0.9rem;
    transition: all 0.2s ease;
    top: 15px !important;
    right: 15px !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

.btn-close-red-round:hover {
    background: #dc2626 !important; /* Rojo más oscuro al pasar el mouse */
    transform: scale(1.1) rotate(90deg);
}

.action-buttons-centered {
    width: 100%;
    margin: 0 auto;
}

.btn-qr-custom {
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-weight: 800 !important;
    font-size: 1rem;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-qr-custom:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
}

.btn-abrir-custom {
    color: #3b82f6 !important;
    font-weight: 800 !important;
    font-size: 1.1rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-abrir-custom:hover {
    color: #60a5fa !important;
    transform: translateX(3px);
}

.celebration-content-v2 h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.celebration-content-v2 p {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

.advanced-toggle.active i {
    transform: rotate(180deg);
}

.advanced-options-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    margin-top: 20px;
}

/* Buttons */
.btn-generate {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 18px 48px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-generate:active {
    transform: translateY(-1px);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.tab-content-fade {
    animation: fadeIn 0.4s ease-out;
}

.animate-in {
    animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.linktree-items-scroll::-webkit-scrollbar {
    width: 6px;
}

.linktree-items-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.linktree-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.linktree-items-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Form Labels in Advanced Section */
.creation-form-container .advanced-grid .form-label {
    color: #ffffff;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Upload Zone Layout Fixes */
.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 40px !important;
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.upload-icon-wrapper {
    position: relative;
    z-index: 1;
}

.upload-text-wrapper h4 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.upload-info-wrapper .badge {
    font-weight: 500;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.upload-info-wrapper .text-primary {
    font-size: 1.1rem;
}

/* Linktree Editor Section Layout */
.linktree-editor-section h5 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.linktree-editor-section .btn-primary {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    font-weight: 600;
    margin-left: 20px;
}

/* Specific styling for the custom slug prefix */
.creation-form-container .input-group-text {
    font-size: 0.95rem;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    min-width: 50px;
    justify-content: center;
}

/* Result Card Enhancement */
.result-display {
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.result-display .form-control {
    letter-spacing: 0.5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #3b82f6 !important;
}

/* Accessibility: Ensure enough contrast for labels and help text */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important; /* Increase opacity for WCAG compliance */
}

/* Responsividad */
@media (max-width: 767px) {
    .creation-section {
        padding: 60px 0;
    }

    .creation-tabs {
        flex-direction: column;
        padding: 10px;
    }
    
    .creation-tabs button {
        text-align: left;
        padding: 18px 24px !important;
        border-radius: 12px;
        margin-bottom: 5px;
        border-bottom: none !important;
        justify-content: flex-start;
        background: rgba(0, 0, 0, 0.03);
    }
    
    .active-tab {
        background: rgba(37, 99, 235, 0.08) !important;
    }

    .active-tab::after {
        display: none; 
    }
    
    .creation-tabs button i {
        min-width: 25px;
    }

    .creation-form-container {
        padding: 30px 20px;
    }

    .main-creation-card {
        border-radius: 16px !important;
    }

    .btn-generate {
        width: 100%;
        padding: 15px 30px;
    }
}

/* =========================================
   Dashboard Features Grid (Restored)
   ========================================= */
.dashboard-features {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.dashboard-features .section-title {
    margin-bottom: 15px;
    color: #111827;
}

.dashboard-features .lead {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 40px;
    color: #374151; /* Gris oscuro más visible sobre fondo claro */
    font-size: 1.15rem;
}

.dashboard-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .dashboard-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .dashboard-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-detail-card {
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-detail-card .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.feature-detail-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Feature Specific Colors */
.feature-detail-card .icon-wrapper.analytics { background: #e0f2fe; color: #0284c7; }
.feature-detail-card .icon-wrapper.management { background: #f0fdf4; color: #16a34a; }
.feature-detail-card .icon-wrapper.qr { background: #fff7ed; color: #ea580c; }
.feature-detail-card .icon-wrapper.security { background: #fef2f2; color: #dc2626; }
.feature-detail-card .icon-wrapper.api { background: #f5f3ff; color: #7c3aed; }
.feature-detail-card .icon-wrapper.profile { background: #eff6ff; color: #2563eb; }

.feature-detail-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #111827;
}

.feature-detail-card p {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.5;
}

/* Comparison Table Helper */
.comparison-table-responsive {
    border: none !important;
    overflow-x: visible !important;
}


/* Result Card Glassmorphism - Redesign */
.result-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.result-card .panel-heading {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 18px 25px;
}

.result-card .panel-title {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.result-card .close {
     position: absolute;
     top: 12px;
     right: 12px;
     width: 32px;
     height: 32px;
     line-height: 28px;
     text-align: center;
     background: rgba(255, 255, 255, 0.15) !important;
     backdrop-filter: blur(4px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 50% !important;
     font-size: 20px;
     font-weight: 300;
     color: #fff !important;
     text-shadow: none;
     opacity: 0.8 !important;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     padding: 0;
     margin: 0;
     outline: none !important;
     z-index: 100;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
 }
 
 .result-card .close:hover {
     background: rgba(255, 255, 255, 0.3) !important;
     opacity: 1 !important;
     transform: rotate(90deg) scale(1.1);
     border-color: rgba(255, 255, 255, 0.5);
 }

 .result-card .close span {
     line-height: 1;
     margin-top: -2px;
 }

.result-card .panel-body {
    padding: 30px;
    background: transparent !important;
}

/* QR Code Styling */
.qr-container {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-wrapper {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.qr-wrapper:hover {
    transform: scale(1.05);
}

.qr-wrapper img {
    image-rendering: pixelated;
}

/* Input Group in Result */
.result-input-group {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.result-input-group .form-control {
    background: rgba(15, 23, 42, 0.6) !important; /* Darker bg for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 54px;
    font-size: 1.1em;
    font-family: 'Inter', monospace;
    border-right: none;
    padding-left: 20px;
    flex: 1;
}

.result-input-group .input-group-btn {
    display: block;
}

.result-input-group .input-group-btn .btn {
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    padding: 0 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9em;
    border-radius: 0 8px 8px 0 !important;
}

/* Actions Buttons */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-actions .btn {
    padding: 12px 28px;
    font-weight: 600;
    margin: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-actions .btn i {
    margin-right: 8px;
}

.result-actions .btn-outline-light {
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
}

.result-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.result-actions .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff !important;
}

.result-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

/* Animation */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Improve Hero Description Clarity */
.hero-description {
    color: #ffffff !important;
    font-weight: 500; /* Más peso para mayor claridad */
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7); /* Sombra reforzada para contraste */
    font-size: 1.3em; /* Un poco más grande */
    max-width: 750px;
    opacity: 1;
    margin-bottom: 30px;
}


/* Dark Background for Hero to make white text visible */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
    color: #fff;
}

/* Ensure Grid Pattern is subtle */
.hero::before {
    opacity: 0.1 !important;
}

/* Glassmorphism Card for Shortener Form (Overrides main.css white bg) */
.shortener-form {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Enhance Tabs Visibility */
.url-shortener-form .btn-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.url-shortener-form .btn-group .btn {
    border: none !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

.url-shortener-form .btn-group .btn-primary {
    background: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.url-shortener-form .btn-group .btn-default {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.url-shortener-form .btn-group .btn-default:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
