.instagram-container {
    max-width: 935px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #262626;
    background: white;
}

.instagram-container .profile-section {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.instagram-container .profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e1306c;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
}

.instagram-container .profile-pic-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e8e;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instagram-container .profile-pic-placeholder:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.profile-upload {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0095f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-upload:hover {
    background: #0074cc;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    background: white;
    padding: 0;
}

.profile-username {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #262626;
    background: white !important;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
}

.profile-username input {
    border: none;
    font-size: 40px;
    font-weight: 700;
    background: white !important;
    width: 100%;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    color: #262626;
}

.profile-username input:focus {
    outline: none;
    border-bottom-color: #0095f6;
    background: white !important;
}

.profile-bio {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    background: white;
}

.instagram-container .profile-bio textarea {
    width: 100%;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.profile-bio textarea:focus {
    outline: none;
    border-color: #0095f6;
}

.add-post-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.add-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.feed-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 30px;
}

.instagram-container .post {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-container .post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e8e;
    font-size: 48px;
    background: #f5f5f5;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post:hover .post-overlay {
    opacity: 1;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-weight: 600;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.post-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post:hover .post-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.control-btn.delete-post {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.control-btn.delete-post:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8e8e8e;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #262626;
}

.file-input-container {
    background: #f8f9fa;
    border: 2px dashed #dbdbdb;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-input-container:hover {
    border-color: #0095f6;
    background: #f8f9fa;
}

.file-input-container.dragover {
    border-color: #0095f6;
    background: #e3f2fd;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0095f6;
    color: white;
}

.btn-primary:hover {
    background: #0074cc;
}

.btn-secondary {
    background: #f0f0f0;
    color: #262626;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.post-detail-modal .modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
}

.post-detail-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dbdbdb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-detail-content {
    padding: 20px;
}

.post-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.post-action {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #262626;
    transition: all 0.3s ease;
}

.post-action:hover {
    color: #e1306c;
    transform: scale(1.2);
}

.post-detail-bio {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.post-detail-bio textarea {
    width: 100%;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.post-detail-bio textarea:focus {
    outline: none;
    border-color: #0095f6;
}

.empty-feed-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dbdbdb;
}

.empty-feed-message h3 {
    margin-bottom: 10px;
    color: #262626;
    font-size: 24px;
}

.empty-feed-message p {
    margin-bottom: 5px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-pic-container {
        width: 120px;
        height: 120px;
    }

    .instagram-container {
        padding: 10px;
    }

    .profile-section {
        padding: 20px;
    }

    .feed-section {
        gap: 2px;
    }

    .post-detail-modal .modal-content {
        max-width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .profile-username {
        font-size: 38px;
    }
    
    .profile-username input {
        font-size: 38px;
		background: white !important;  /* Agregar esta línea */
        color: #262626 !important;
    }
    
    .add-post-btn {
        width: 100%;
        text-align: center;
    }
}