/* dashboard.css - ESTILOS ESPECÍFICOS PARA DASHBOARD MORPHEO */

/* ===== CONTENEDOR PRINCIPAL ===== */
.morpheo-dashboard {
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILIDADES DE ESPACIADO ===== */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-mr-2 { margin-right: 0.5rem; }
.dashboard-ml-2 { margin-left: 0.5rem; }

/* ===== HERO SECTION ===== */
.dashboard-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.dashboard-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    z-index: -2;
}

.dashboard-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

.dashboard-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .dashboard-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.dashboard-hero-text {
    max-width: 600px;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.dashboard-badge-primary {
    background: rgba(37, 99, 235, 0.2);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.dashboard-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.dashboard-gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-text-accent {
    color: #06b6d4;
    -webkit-text-fill-color: #06b6d4;
}

.dashboard-description {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.dashboard-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.dashboard-btn-block {
    display: block;
    width: 100%;
}

.dashboard-btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.dashboard-btn-outline {
    background: transparent;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-btn-outline:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.dashboard-btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-btn-whatsapp:hover {
    background: #128C7E;
}

/* ===== CODE VISUAL ===== */
.dashboard-code-visual {
    background: #1e293b;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-code-dots {
    display: flex;
    gap: 0.5rem;
}

.dashboard-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.dashboard-dot-red { background: #ff5f56; }
.dashboard-dot-yellow { background: #ffbd2e; }
.dashboard-dot-green { background: #27ca3f; }

.dashboard-code-title {
    color: #94a3b8;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.dashboard-code-body {
    padding: 1.25rem;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.dashboard-img-zoom {
    transition: transform 0.5s ease;
}

.dashboard-img-zoom:hover {
    transform: scale(1.05);
}

/* ===== STATS SECTION ===== */
.dashboard-stats {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.dashboard-stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-10px);
}

.dashboard-stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.dashboard-bg-gradient {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.dashboard-stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    color: #f8fafc;
}

.dashboard-stat-label {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.dashboard-services {
    padding: 4rem 0;
}

.dashboard-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-section-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-service-card {
    background: #1e293b;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.dashboard-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #2563eb;
}

.dashboard-service-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.dashboard-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dashboard-service-card:hover .dashboard-service-img img {
    transform: scale(1.1);
}

.dashboard-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-service-card:hover .dashboard-service-overlay {
    opacity: 1;
}

.dashboard-service-icon {
    font-size: 3rem;
    color: #06b6d4;
    transform: scale(0);
    transition: transform 0.4s ease 0.2s;
}

.dashboard-service-card:hover .dashboard-service-icon {
    transform: scale(1) rotate(360deg);
}

.dashboard-service-content {
    padding: 1.5rem;
}

.dashboard-service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.dashboard-service-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dashboard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ===== COUNTER SECTION ===== */
.dashboard-counter {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* EL CONTADOR TIENE SUS PROPIOS ESTILOS EN contador.css */

.dashboard-cta-card {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

.dashboard-cta-text {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.8;
}

.dashboard-cta-text .dashboard-text-accent {
    color: #06b6d4;
}

/* ===== PROCESS SECTION ===== */
.dashboard-process {
    padding: 4rem 0;
}

.dashboard-process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.dashboard-process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #2563eb, transparent);
}

@media (max-width: 768px) {
    .dashboard-process-timeline::before {
        left: 35px;
    }
}

@media (max-width: 576px) {
    .dashboard-process-timeline::before {
        display: none;
    }
}

.dashboard-process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

@media (max-width: 576px) {
    .dashboard-process-step {
        flex-direction: column;
        gap: 1rem;
    }
}

.dashboard-step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .dashboard-step-number {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .dashboard-step-number {
        align-self: center;
    }
}

.dashboard-step-content {
    flex: 1;
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-process-step:hover .dashboard-step-content {
    border-color: #2563eb;
    transform: translateX(10px);
}

@media (max-width: 576px) {
    .dashboard-process-step:hover .dashboard-step-content {
        transform: translateX(0);
        transform: translateY(-5px);
    }
}

.dashboard-step-icon {
    font-size: 2rem;
    color: #06b6d4;
    margin-bottom: 1rem;
}

.dashboard-step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.dashboard-step-description {
    color: #94a3b8;
    line-height: 1.6;
}

.dashboard-section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===== PROJECTS SECTION ===== */
.dashboard-projects {
    padding: 4rem 0;
}

.dashboard-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-project-card {
    background: #1e293b;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.dashboard-project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #06b6d4;
}

.dashboard-project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.dashboard-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dashboard-project-card:hover .dashboard-project-img img {
    transform: scale(1.1);
}

.dashboard-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-project-card:hover .dashboard-project-overlay {
    opacity: 1;
}

.dashboard-project-tech {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-tech-tag {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard-project-content {
    padding: 1.5rem;
}

.dashboard-project-category {
    display: inline-block;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.dashboard-project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.dashboard-project-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dashboard-project-link:hover {
    color: #06b6d4;
    transform: translateX(5px);
}

/* ===== MASONIC SECTION ===== */
.dashboard-masonic {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-masonic-content {
    padding: 2rem;
    text-align: center;
}

.dashboard-masonic-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .dashboard-masonic-icons {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.dashboard-masonic-icon {
    font-size: 2.5rem;
    color: #06b6d4;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-masonic-icon:hover {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

.dashboard-masonic-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.dashboard-contact {
    padding: 4rem 0;
}

.dashboard-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-contact-card {
    padding: 2rem;
    background: #1e293b;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.dashboard-contact-card:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-5px);
}

.dashboard-contact-icon {
    font-size: 2.5rem;
    color: #06b6d4;
    margin-bottom: 1rem;
}

.dashboard-contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.dashboard-contact-link {
    color: #06b6d4;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.dashboard-contact-link:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.dashboard-contact-text {
    color: #94a3b8;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.dashboard-contact-note {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

.dashboard-contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        visibility: hidden; 
    }
    to { 
        opacity: 1; 
        visibility: visible; 
    }
}

@keyframes fadeUp {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateX(30px);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateY(50px);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateX(-50px);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: scale(0.8);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: scale(1);
    }
}

@keyframes flipIn {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: perspective(1000px) rotateX(90deg);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: perspective(1000px) rotateX(0);
    }
}

@keyframes flipUp {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: perspective(1000px) rotateX(-90deg);
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: perspective(1000px) rotateX(0);
    }
}

/* Clases de animación */
[data-dashboard-animate] {
    opacity: 0;
    visibility: hidden;
}

[data-dashboard-animate="fade-in"].animated {
    animation: fadeIn 0.8s ease forwards;
}

[data-dashboard-animate="fade-up"].animated {
    animation: fadeUp 0.6s ease forwards;
}

[data-dashboard-animate="fade-left"].animated {
    animation: fadeLeft 0.6s ease forwards;
}

[data-dashboard-animate="fade-right"].animated {
    animation: fadeRight 0.6s ease forwards;
}

[data-dashboard-animate="slide-up"].animated {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-dashboard-animate="slide-right"].animated {
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-dashboard-animate="zoom-in"].animated {
    animation: zoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-dashboard-animate="flip-in"].animated {
    animation: flipIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-dashboard-animate="flip-up"].animated {
    animation: flipUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2.5rem;
    }
    
    .dashboard-section-title {
        font-size: 2rem;
    }
    
    .dashboard-buttons {
        flex-direction: column;
    }
    
    .dashboard-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-section-title {
        font-size: 1.75rem;
    }
    
    .dashboard-description,
    .dashboard-section-subtitle {
        font-size: 1.1rem;
    }
    
    .dashboard-container {
        padding: 0 0.75rem;
    }
    
    .dashboard-contact-actions {
        flex-direction: column;
    }
    
    .dashboard-contact-actions .dashboard-btn {
        width: 100%;
    }
}