* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #e2e8f0;
    scroll-behavior: smooth;
}

/* Header */
.dewebs-header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f1c40f;
}

.logo-img {
    height: 20px;
    width: 35px;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
}

.tagline {
    font-size: 0.8rem;
    color: #f97316;
    background: rgba(241, 196, 15, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.dewebs-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.dewebs-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.dewebs-nav a:hover {
    color: #f97316;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f97316;
}

/* Hero */
.hero-dewebs {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 196, 15, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-dewebs h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #f97316;
}

.hero-dewebs p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #f97316;
}

.stat .label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #0a0a1a;
    padding: 1rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

/* Contenedor general */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header i {
    font-size: 2.5rem;
    color: #f97316;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

section {
    scroll-margin-top: 80px;
}

/* Grids */
.web-grid, .apps-grid, .transformacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.web-card, .apps-card, .transformacion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: 0.3s;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.web-card:hover, .apps-card:hover, .transformacion-item:hover {
    transform: translateY(-5px);
    background: rgba(241, 196, 15, 0.05);
}

.web-card i, .apps-card i, .transformacion-item i {
    font-size: 2.5rem;
    color: #f97316;
    margin-bottom: 1rem;
}

.web-card h3, .apps-card h3, .transformacion-item h3 {
    margin-bottom: 0.5rem;
}

.web-card p, .apps-card p, .transformacion-item p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tags span {
    background: rgba(241, 196, 15, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Blog */
.section-blog {
    background: linear-gradient(135deg, #0f0f1f, #0a0a1a);
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #cbd5e1;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #f1c40f;
    color: #0a0a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.blog-card:hover {
    transform: translateY(-8px);
    background: rgba(241, 196, 15, 0.05);
}

.blog-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.blog-image i {
    color: #f97316;
    font-size: 2rem;
}

.blog-badge {
    display: inline-block;
    background: rgba(241, 196, 15, 0.2);
    color: #f97316;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.blog-card p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.read-more {
    background: transparent;
    border: none;
    color: #f97316;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
    color: #fff;
}

/* Modal */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: #0f0f1f;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    border: 1px solid #f1c40f;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #f97316;
}

.close-modal:hover {
    color: #fff;
}

.full-article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
}

.full-article h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.full-article .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.full-article .article-content {
    color: #cbd5e1;
    line-height: 1.8;
}

.full-article .article-content p {
    margin-bottom: 1rem;
}

.full-article .article-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: #f97316;
}

/* Comentarios */
.modal-comments h4 {
    margin-bottom: 1rem;
    color: #f97316;
}

#commentsSection {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comment strong {
    color: #f97316;
}

.comment p {
    margin: 0.5rem 0 0;
    color: #cbd5e1;
}

.comment small {
    color: #64748b;
    font-size: 0.75rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form input, 
.comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.3);
    padding: 0.8rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
}

.comment-form input:focus, 
.comment-form textarea:focus {
    outline: none;
    border-color: #f97316;
}

.comment-form button {
    background: #f1c40f;
    color: #0a0a1a;
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form button:hover {
    background: #e67e22;
}

/* CONTACTO */
.contacto-dewebs {
    background: #0f0f1f;
    padding: 60px 0;
}

.contacto-dewebs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto-wrapper {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(241, 196, 15, 0.2);
    flex-wrap: wrap;
}

.contacto-info {
    flex: 1;
    min-width: 250px;
}

.contacto-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.contacto-info h2 i {
    color: #f97316;
    margin-right: 10px;
}

.contacto-info p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-details div {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: rgba(241, 196, 15, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 18px;
}

.contacto-form {
    flex: 1.5;
    min-width: 300px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-radius: 16px;
    color: white;
    font-family: inherit;
    font-size: 15px;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #f97316;
}

.contacto-form select option {
    background: #1a1a2e;
    color: white;
}

.contacto-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #0a0a1a;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    gap: 15px;
}

.respuesta {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

/* Footer */
.dewebs-footer {
    background: #080814;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand i {
    font-size: 32px;
    color: #f97316;
}

.footer-brand span {
    font-size: 22px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #f97316;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #f1c40f;
    color: #0a0a1a;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(241, 196, 15, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

.back-home {
    color: #f97316;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .dewebs-nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    
    .dewebs-nav ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-dewebs h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .contacto-wrapper {
        padding: 20px;
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
/* ========== BOTÓN FLOTANTE PARA AGREGAR POST ========== */
.add-post-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #0a0a1a;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    transition: all 0.3s;
    z-index: 100;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-post-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

/* Modal para agregar artículo */
.modal-add-post {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-add-content {
    background: #0f0f1f;
    margin: 40px auto;
    max-width: 700px;
    border-radius: 24px;
    padding: 0;
    border: 1px solid #f1c40f;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
    background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
    border-radius: 24px 24px 0 0;
}

.modal-add-header h3 {
    color: #f1c40f;
    margin: 0;
}

.modal-add-header h3 i {
    margin-right: 10px;
}

.close-add-modal {
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}

.close-add-modal:hover {
    color: #f1c40f;
}

#formAddPost {
    padding: 25px;
}

.form-group-add {
    margin-bottom: 20px;
}

.form-group-add label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

.form-group-add input,
.form-group-add select,
.form-group-add textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
}

.form-group-add input:focus,
.form-group-add select:focus,
.form-group-add textarea:focus {
    outline: none;
    border-color: #f1c40f;
}

.form-group-add textarea {
    resize: vertical;
}

.form-group-add small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-submit-add {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #0a0a1a;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

/* Toast message */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 2001;
    display: none;
    animation: fadeInUp 0.3s ease;
    white-space: nowrap;
}

.toast-message.error {
    background: #ef4444;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-add-content {
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .add-post-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .toast-message {
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}
/* Ajuste para el modal del blog */
.blog-modal {
    display: none;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    color: #94a3b8;
}
/* ========== MODAL DE PORTAFOLIO ========== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.portfolio-modal-content {
    background: #0f0f1f;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 24px;
    border: 1px solid #f1c40f;
    animation: slideIn 0.3s ease;
}

.portfolio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
    background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
    border-radius: 24px 24px 0 0;
}

.portfolio-modal-header h3 {
    color: #f1c40f;
    margin: 0;
}

.portfolio-modal-header h3 i {
    margin-right: 10px;
}

.close-portfolio-modal {
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}

.close-portfolio-modal:hover {
    color: #f1c40f;
}

.portfolio-modal-body {
    padding: 25px;
}

/* Galería de imágenes */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border: 1px solid #f1c40f;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item .caption {
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Videos */
.portfolio-videos {
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
}

.video-card h4 {
    color: #f1c40f;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Demo links */
.demo-links {
    background: rgba(241, 196, 15, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.demo-links h4 {
    color: #f1c40f;
    margin-bottom: 15px;
}

.demo-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #0a0a1a;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

/* Lightbox para imágenes */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Botón ver portafolio */
.view-portfolio-btn {
    background: transparent;
    border: 1px solid #f1c40f;
    color: #f1c40f;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    transition: 0.3s;
    width: 100%;
}

.view-portfolio-btn:hover {
    background: #f1c40f;
    color: #0a0a1a;
}
